DeepInfra
A hosted service with its own key and prices. This page lists the addresses it answers, the facts its documentation states, and the setup of each harness.
Addresses and facts
- OpenAI Chat Completions:
https://api.deepinfra.com/v1/openaiprovider documentation, read - Anthropic Messages:
https://api.deepinfra.com/anthropicprovider documentation, read
- Authentication
- Authorization: Bearer, with the key in
DEEPINFRA_TOKENprovider documentation, read - Structured output
- provider documentation, read
- Tool calling
- provider documentation, read
- Rate limits
- Read the page provider documentation, read
- Prices
- Read the page provider documentation, read
- Data retention
- Inputs and outputs are held in memory only while a request runs, with the exceptions the page lists for some partner models. Read the page provider documentation, read
- Documentation
- Unknown
- Output limits Baltor recorded
- Unknown
Harness setup
Replace ByteDance/Seed-2.0-code with the model you want.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"deepinfra": {
"npm": "@ai-sdk/openai-compatible",
"name": "DeepInfra",
"options": {
"baseURL": "https://api.deepinfra.com/v1/openai",
"apiKey": "{env:DEEPINFRA_TOKEN}"
},
"models": {
"ByteDance/Seed-2.0-code": {
"name": "ByteDance/Seed-2.0-code"
}
}
}
}
}- OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.
From OpenCode documentation, read .
Pi
Put this in ~/.pi/agent/models.json:
{
"providers": {
"deepinfra": {
"baseUrl": "https://api.deepinfra.com/v1/openai",
"api": "openai-completions",
"apiKey": "$DEEPINFRA_TOKEN",
"models": [
{
"id": "ByteDance/Seed-2.0-code"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Codex speaks only the Responses API, and DeepInfra documents no Responses address. A gateway that offers one can sit in between.
- Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.
From Codex documentation, read .
Claude Code
Put this in ~/.claude/settings.json, or variables in your shell:
export ANTHROPIC_BASE_URL="https://api.deepinfra.com/anthropic"
export ANTHROPIC_AUTH_TOKEN="$DEEPINFRA_TOKEN"
export ANTHROPIC_MODEL="ByteDance/Seed-2.0-code"
claude- Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.
From Claude Code documentation, read .
Models it lists
Prices in US dollars per million tokens, input and output, as models.dev, read records them.
| Model | Input | Output | Context | As of |
|---|---|---|---|---|
Seed 2.0 Code ByteDance/Seed-2.0-code | 0.500 USD | 3.00 USD | 256,000 | older than 30 days |
Seed 2.0 Mini ByteDance/Seed-2.0-mini | 0.100 USD | 0.400 USD | 256,000 | older than 30 days |
Seed 2.0 Pro ByteDance/Seed-2.0-pro | 0.500 USD | 3.00 USD | 256,000 | older than 30 days |
MiniMax M2.5 MiniMaxAI/MiniMax-M2.5 | 0.150 USD | 1.15 USD | 196,608 | older than 30 days |
MiniMax-M2.7 MiniMaxAI/MiniMax-M2.7 | 0.250 USD | 1.00 USD | 196,608 | older than 30 days |
MiniMax-M3 MiniMaxAI/MiniMax-M3 | 0.280 USD | 1.10 USD | 524,288 | older than 30 days |
Qwen3 235B-A22B Instruct 2507 Qwen/Qwen3-235B-A22B-Instruct-2507 | 0.090 USD | 0.550 USD | 262,144 | older than 30 days |
Qwen3 30B A3B Qwen/Qwen3-30B-A3B | 0.120 USD | 0.500 USD | 40,960 | older than 30 days |
Qwen3 32B Qwen/Qwen3-32B | 0.080 USD | 0.280 USD | 40,960 | |
Qwen3 Coder 480B A35B Instruct Turbo Qwen/Qwen3-Coder-480B-A35B-Instruct-Turbo | 0.300 USD | 1.00 USD | 262,144 | older than 30 days |
Qwen3 Max Qwen/Qwen3-Max | 1.20 USD | 6.00 USD | 256,000 | older than 30 days |
Qwen3-Next 80B-A3B Instruct Qwen/Qwen3-Next-80B-A3B-Instruct | 0.090 USD | 1.10 USD | 262,144 | |
Qwen3 VL 235B A22B Instruct Qwen/Qwen3-VL-235B-A22B-Instruct | 0.200 USD | 0.880 USD | 262,144 | older than 30 days |
Qwen3.5 122B-A10B Qwen/Qwen3.5-122B-A10B | 0.290 USD | 2.40 USD | 262,144 | older than 30 days |
Qwen3.5 27B Qwen/Qwen3.5-27B | 0.260 USD | 2.60 USD | 262,144 | older than 30 days |
Qwen 3.5 35B A3B Qwen/Qwen3.5-35B-A3B | 0.140 USD | 1.00 USD | 262,144 | older than 30 days |
Qwen 3.5 397B A17B Qwen/Qwen3.5-397B-A17B | 0.450 USD | 3.00 USD | 262,144 | older than 30 days |
Qwen3.5 9B Qwen/Qwen3.5-9B | 0.100 USD | 0.150 USD | 262,144 | older than 30 days |
Qwen3.6 27B Qwen/Qwen3.6-27B | 0.320 USD | 3.20 USD | 262,144 | older than 30 days |
Qwen3.6 35B A3B Qwen/Qwen3.6-35B-A3B | 0.100 USD | 0.950 USD | 262,144 | older than 30 days |
Qwen3.7 Max Qwen/Qwen3.7-Max | 2.50 USD | 7.50 USD | 256,000 | older than 30 days |
Qwen3.8 2.4T A95B Qwen/Qwen3.8-2.4T-A95B | 2.00 USD | 6.00 USD | 262,144 | older than 30 days |
Qwen3.8 27B Qwen/Qwen3.8-27B | 0.200 USD | 2.50 USD | 262,144 | older than 30 days |
Qwen3.8 Flash Qwen/Qwen3.8-Flash | 0.113 USD | 0.382 USD | 1,000,000 | |
Qwen3.8 Max Qwen/Qwen3.8-Max | 1.65 USD | 4.95 USD | 256,000 | older than 30 days |
MiMo-V2.5 XiaomiMiMo/MiMo-V2.5 | 0.140 USD | 0.280 USD | 262,144 | older than 30 days |
MiMo-V2.5-Pro XiaomiMiMo/MiMo-V2.5-Pro | 1.00 USD | 3.00 USD | 1,048,576 | older than 30 days |
MiMo-V2.6-Flash XiaomiMiMo/MiMo-V2.6-Flash | 0.140 USD | 0.280 USD | 1,048,576 | |
MiMo-V2.6-Pro XiaomiMiMo/MiMo-V2.6-Pro | 0.435 USD | 0.870 USD | 1,048,576 | |
DeepSeek-R1-0528 deepseek-ai/DeepSeek-R1-0528 | 0.500 USD | 2.15 USD | 163,840 | older than 30 days |
DeepSeek-V3 deepseek-ai/DeepSeek-V3 | 0.320 USD | 0.890 USD | 163,840 | older than 30 days |
DeepSeek V3 0324 deepseek-ai/DeepSeek-V3-0324 | 0.240 USD | 0.900 USD | 163,840 | older than 30 days |
DeepSeek-V3.1 deepseek-ai/DeepSeek-V3.1 | 0.250 USD | 0.950 USD | 163,840 | older than 30 days |
DeepSeek-V3.2 deepseek-ai/DeepSeek-V3.2 | 0.260 USD | 0.380 USD | 163,840 | older than 30 days |
DeepSeek V4 Flash deepseek-ai/DeepSeek-V4-Flash | 0.090 USD | 0.180 USD | 1,048,576 | older than 30 days |
DeepSeek V4 Flash 0731 deepseek-ai/DeepSeek-V4-Flash-0731 | 0.060 USD | 0.180 USD | 1,048,576 | older than 30 days |
DeepSeek V4 Flash Vision Exp deepseek-ai/DeepSeek-V4-Flash-Vision-Exp | 0.440 USD | 1.32 USD | 1,048,576 | |
DeepSeek V4 Pro deepseek-ai/DeepSeek-V4-Pro | 1.30 USD | 2.60 USD | 1,048,576 | older than 30 days |
DeepSeek V4 Pro 0813 deepseek-ai/DeepSeek-V4-Pro-0813 | 1.30 USD | 2.60 USD | 1,048,576 | older than 30 days |
DeepSeek V4.1 Flash deepseek-ai/DeepSeek-V4.1-Flash | 0.200 USD | 0.600 USD | 1,048,576 | |
Gemma 3 12B IT google/gemma-3-12b-it | 0.050 USD | 0.150 USD | 131,072 | older than 30 days |
Gemma 3 27B IT google/gemma-3-27b-it | 0.080 USD | 0.160 USD | 131,072 | older than 30 days |
Gemma 3 4B IT google/gemma-3-4b-it | 0.050 USD | 0.100 USD | 131,072 | older than 30 days |
Gemma 4 26B A4B IT google/gemma-4-26B-A4B-it | 0.070 USD | 0.340 USD | 262,144 | older than 30 days |
Gemma 4 31B IT google/gemma-4-31B-it | 0.130 USD | 0.380 USD | 262,144 | older than 30 days |
Gemma 4 E4B IT google/gemma-4-E4B-it | 0.020 USD | 0.100 USD | 131,072 | older than 30 days |
Llama 3.3 70B Turbo meta-llama/Llama-3.3-70B-Instruct-Turbo | 0.100 USD | 0.320 USD | 131,072 | older than 30 days |
Llama 4 Maverick 17B FP8 meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8 | 0.200 USD | 0.800 USD | 1,048,576 | older than 30 days |
Llama 4 Scout 17B meta-llama/Llama-4-Scout-17B-16E-Instruct | 0.100 USD | 0.300 USD | 327,680 | older than 30 days |
Kimi K2.5 moonshotai/Kimi-K2.5 | 0.450 USD | 2.25 USD | 262,144 | older than 30 days |
Kimi K2.6 moonshotai/Kimi-K2.6 | 0.750 USD | 3.50 USD | 262,144 | older than 30 days |
Kimi K2.7 Code moonshotai/Kimi-K2.7-Code | 0.680 USD | 3.40 USD | 262,144 | older than 30 days |
Kimi K3 moonshotai/Kimi-K3 | 2.85 USD | 14.25 USD | 1,048,576 | older than 30 days |
Llama 3.3 Nemotron Super 49B v1.5 nvidia/Llama-3.3-Nemotron-Super-49B-v1.5 | 0.400 USD | 0.400 USD | 131,072 | older than 30 days |
Nemotron 3 Nano 30B A3B nvidia/Nemotron-3-Nano-30B-A3B | 0.050 USD | 0.200 USD | 262,144 | older than 30 days |
Nemotron 3 Nano Omni 30B A3B Reasoning nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning | 0.200 USD | 0.800 USD | 262,144 | older than 30 days |
GPT OSS 120B openai/gpt-oss-120b | 0.037 USD | 0.170 USD | 131,072 | older than 30 days |
GPT OSS 20B openai/gpt-oss-20b | 0.030 USD | 0.140 USD | 131,072 | older than 30 days |
Step 3.7 Flash stepfun-ai/Step-3.7-Flash | 0.200 USD | 1.15 USD | 262,144 | older than 30 days |
Hy3 tencent/Hy3 | 0.130 USD | 0.530 USD | 262,144 | older than 30 days |
Inkling thinkingmachines/Inkling | 0.950 USD | 4.05 USD | 524,288 | older than 30 days |
Inkling Small thinkingmachines/Inkling-Small | 0.450 USD | 1.20 USD | 524,288 | older than 30 days |
GLM-4.6 zai-org/GLM-4.6 | 0.500 USD | 2.00 USD | 202,752 | older than 30 days |
GLM-4.7 zai-org/GLM-4.7 | 0.400 USD | 1.75 USD | 202,752 | older than 30 days |
GLM-4.7-Flash zai-org/GLM-4.7-Flash | 0.060 USD | 0.400 USD | 202,752 | older than 30 days |
GLM-5 zai-org/GLM-5 | 0.600 USD | 2.08 USD | 202,752 | older than 30 days |
GLM-5.1 zai-org/GLM-5.1 | 1.05 USD | 3.50 USD | 202,752 | older than 30 days |
GLM-5.2 zai-org/GLM-5.2 | 0.750 USD | 2.40 USD | 1,048,576 | older than 30 days |
GLM-5.3 zai-org/GLM-5.3 | 0.900 USD | 4.00 USD | 1,048,576 | older than 30 days |
GLM-5.3-Flash zai-org/GLM-5.3-Flash | 0.150 USD | 0.500 USD | 1,048,576 |
Sources of this page
- docs.deepinfra.com/chat/overview, read
- docs.deepinfra.com/integrations/anthropic, read
- docs.deepinfra.com/chat/structured-outputs, read
- docs.deepinfra.com/chat/tool-calling, read
- docs.deepinfra.com/account/rate-limits, read
- deepinfra.com/pricing, read
- docs.deepinfra.com/account/data-privacy, read
- models.dev/api.json, read
Paid links
No link in this directory is a paid link or an ad, and no listing is paid for. The order and the contents of every list come from the sources named on this page.