1.6 KiB
1.6 KiB
| summary | read_when | ||
|---|---|---|---|
| Use DeepInfra's unified API to access the most popular open source models in OpenClaw |
|
DeepInfra
DeepInfra provides a unified API that routes requests to the most popular open source models behind a single endpoint and API key. It is OpenAI-compatible, so most OpenAI SDKs work by switching the base URL.
Getting an API key
- Go to https://deepinfra.com/
- Sign in or create an account
- Navigate to Dashboard / Keys and generate a new API key or use the auto created one
CLI setup
openclaw onboard --deepinfra-api-key <key>
Or set the environment variable:
export DEEPINFRA_API_KEY="<your-deepinfra-api-key>" # pragma: allowlist secret
Config snippet
{
env: { DEEPINFRA_API_KEY: "<your-deepinfra-api-key>" }, // pragma: allowlist secret
agents: {
defaults: {
model: { primary: "deepinfra/openai/gpt-oss-120b" },
},
},
}
Available models
OpenClaw dynamically discovers available DeepInfra models at startup. Use
/models deepinfra to see the full list of models available with your account.
Any model available on DeepInfra.com can be used with the deepinfra/ prefix:
deepinfra/MiniMaxAI/MiniMax-M2.5
deepinfra/zai-org/GLM-5
deepinfra/moonshotai/Kimi-K2.5
...and many more
Notes
- Model refs are
deepinfra/<provider>/<model>(e.g.,deepinfra/Qwen/Qwen3-Max). - Default model:
deepinfra/openai/gpt-oss-120b - Base URL:
https://api.deepinfra.com/v1/openai/