DeepInfra 提供一個統一 API,可將請求路由到最受歡迎的開源與前沿模型,並透過單一端點和 API 金鑰使用。它與 OpenAI 相容,因此多數 OpenAI SDK 只要切換基底 URL 即可運作。Documentation Index
Fetch the complete documentation index at: https://docs2.openclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
取得 API 金鑰
- 前往 https://deepinfra.com/
- 登入或建立帳號
- 導覽至 Dashboard / Keys,產生新的 API 金鑰,或使用自動建立的金鑰
CLI 設定
Config 片段
支援的 OpenClaw 介面
隨附的 Plugin 會註冊所有符合目前 OpenClaw 供應商合約的 DeepInfra 介面:| 介面 | 預設模型 | OpenClaw 設定/工具 |
|---|---|---|
| 聊天 / 模型供應商 | deepseek-ai/DeepSeek-V3.2 | agents.defaults.model |
| 圖片生成/編輯 | black-forest-labs/FLUX-1-schnell | image_generate, agents.defaults.imageGenerationModel |
| 媒體理解 | moonshotai/Kimi-K2.5 for images | 傳入圖片理解 |
| 語音轉文字 | openai/whisper-large-v3-turbo | 傳入音訊轉錄 |
| 文字轉語音 | hexgrad/Kokoro-82M | messages.tts.provider: "deepinfra" |
| 影片生成 | Pixverse/Pixverse-T2V | video_generate, agents.defaults.videoGenerationModel |
| 記憶嵌入 | BAAI/bge-m3 | agents.defaults.memorySearch.provider: "deepinfra" |
可用模型
OpenClaw 會在啟動時動態探索可用的 DeepInfra 模型。使用/models deepinfra 查看完整的可用模型清單。
DeepInfra.com 上任何可用模型都可以搭配 deepinfra/ 前綴使用:
注意事項
- 模型參照為
deepinfra/<provider>/<model>(例如deepinfra/Qwen/Qwen3-Max)。 - 預設模型:
deepinfra/deepseek-ai/DeepSeek-V3.2 - 基底 URL:
https://api.deepinfra.com/v1/openai - 原生影片生成使用
https://api.deepinfra.com/v1/inference/<model>。