Providers
DeepInfra
DeepInfra 透過單一 OpenAI 相容端點和 API 金鑰,將請求路由至熱門的開放原始碼與前沿模型。大多數 OpenAI SDK 只要切換基礎 URL 即可搭配使用。
安裝外掛
openclaw plugins install @openclaw/deepinfra-provideropenclaw gateway restart取得 API 金鑰
- 在 deepinfra.com 登入
- 前往 Dashboard / Keys 並產生金鑰,或使用自動建立的金鑰
命令列介面設定
openclaw onboard --deepinfra-api-key <key>或者設定環境變數:
export DEEPINFRA_API_KEY="<your-deepinfra-api-key>" # pragma: allowlist secret設定片段
{ env: { DEEPINFRA_API_KEY: "<your-deepinfra-api-key>" }, // pragma: allowlist secret agents: { defaults: { model: { primary: "deepinfra/deepseek-ai/DeepSeek-V4-Flash" }, }, },}支援的功能介面
設定 DEEPINFRA_API_KEY 後,聊天、影像生成與影片生成會從 https://api.deepinfra.com/v1/openai/models?sort_by=openclaw&filter=with_meta 即時重新整理其模型目錄。其他功能介面在遷移至相同的即時目錄之前,會使用下列靜態預設值。
| 功能介面 | 預設模型 | OpenClaw 設定/工具 |
|---|---|---|
| 聊天/模型供應商 | 即時目錄中第一個標記為聊天的項目(靜態備援為 deepseek-ai/DeepSeek-V4-Flash) |
agents.defaults.model |
| 影像生成/編輯 | 即時目錄中第一個標記為 image-gen 的項目(靜態備援為 black-forest-labs/FLUX-1-schnell) |
image_generate, agents.defaults.imageGenerationModel |
| 媒體理解 | 影像使用 moonshotai/Kimi-K2.5 |
傳入影像理解 |
| 語音轉文字 | openai/whisper-large-v3-turbo |
傳入音訊轉錄 |
| 文字轉語音 | hexgrad/Kokoro-82M |
messages.tts.provider: "deepinfra" |
| 影片生成 | 靜態備援為 Pixverse/Pixverse-T2V(DeepInfra 目前沒有即時的影片生成項目) |
video_generate, agents.defaults.videoGenerationModel |
| 記憶嵌入 | BAAI/bge-m3 |
agents.defaults.memorySearch.provider: "deepinfra" |
DeepInfra 也提供重新排序、分類、物件偵測及其他原生模型類型。OpenClaw 尚未為這些類別提供供應商合約,因此此外掛不會註冊它們。
可用模型
設定金鑰後,OpenClaw 會動態探索 DeepInfra 模型。使用 /models deepinfra 或 openclaw models list --provider deepinfra 查看目前的清單。
deepinfra.com 上的任何模型都可搭配 deepinfra/ 前綴使用:
deepinfra/deepseek-ai/DeepSeek-V4-Flashdeepinfra/deepseek-ai/DeepSeek-V3.2deepinfra/MiniMaxAI/MiniMax-M2.5deepinfra/moonshotai/Kimi-K2.5deepinfra/nvidia/NVIDIA-Nemotron-3-Super-120B-A12Bdeepinfra/zai-org/GLM-5.1...以及更多模型注意事項
- 模型參照格式為
deepinfra/<provider>/<model>(例如deepinfra/Qwen/Qwen3-Max)。 - 預設聊天模型:
deepinfra/deepseek-ai/DeepSeek-V4-Flash - 基礎 URL:
https://api.deepinfra.com/v1/openai - 原生影片生成使用
https://api.deepinfra.com/v1/inference/<model>。
相關內容
Was this useful?