DeepInfra 提供一个统一 API,可通过单一端点和 API key 将请求路由到最热门的开源模型和前沿模型。它兼容 OpenAI,因此大多数 OpenAI SDK 只需切换 base 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 key
- 前往 https://deepinfra.com/
- 登录或创建账户
- 导航到 Dashboard / Keys,生成新的 API key,或使用自动创建的 API key
CLI 设置
配置片段
支持的 OpenClaw 表面
内置插件会注册所有符合当前 OpenClaw 提供商契约的 DeepInfra 表面:| 表面 | 默认模型 | OpenClaw 配置/工具 |
|---|---|---|
| Chat / 模型提供商 | deepseek-ai/DeepSeek-V3.2 | agents.defaults.model |
| 图像生成/编辑 | 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 | 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 - Base URL:
https://api.deepinfra.com/v1/openai - 原生视频生成使用
https://api.deepinfra.com/v1/inference/<model>。