Hugging Face
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://router.huggingface.co/v1models.dev, read
- Authentication
- Authorization: Bearer, with the key in
HF_TOKENmodels.dev, read - Structured output
- Unknown
- Tool calling
- 76 of 78 listed models The share of this provider's models that models.dev records with tool calling. models.dev, read
- Rate limits
- Unknown
- Prices
- Unknown
- Data retention
- Unknown
- Documentation
- Read the page models.dev, read
- Output limits Baltor recorded
- Unknown
Harness setup
Replace MiniMaxAI/MiniMax-M2 with the model you want.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"huggingface": {
"npm": "@ai-sdk/openai-compatible",
"name": "Hugging Face",
"options": {
"baseURL": "https://router.huggingface.co/v1",
"apiKey": "{env:HF_TOKEN}"
},
"models": {
"MiniMaxAI/MiniMax-M2": {
"name": "MiniMaxAI/MiniMax-M2"
}
}
}
}
}- 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": {
"huggingface": {
"baseUrl": "https://router.huggingface.co/v1",
"api": "openai-completions",
"apiKey": "$HF_TOKEN",
"models": [
{
"id": "MiniMaxAI/MiniMax-M2"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Codex speaks only the Responses API, and Hugging Face 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
Claude Code sends Anthropic Messages requests, and Hugging Face documents no such address. A gateway that translates to that API can sit in between.
- 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 |
|---|---|---|---|---|
MiniMax-M2 MiniMaxAI/MiniMax-M2 | 0.300 USD | 1.20 USD | 204,800 | older than 30 days |
MiniMax-M2.1 MiniMaxAI/MiniMax-M2.1 | 0.300 USD | 1.20 USD | 204,800 | older than 30 days |
MiniMax-M2.5 MiniMaxAI/MiniMax-M2.5 | 0.300 USD | 1.20 USD | 204,800 | older than 30 days |
MiniMax-M2.7 MiniMaxAI/MiniMax-M2.7 | 0.300 USD | 1.20 USD | 204,800 | older than 30 days |
MiniMax-M3 MiniMaxAI/MiniMax-M3 | 0.300 USD | 1.20 USD | 524,288 | older than 30 days |
Qwen2.5-Coder-32B-Instruct Qwen/Qwen2.5-Coder-32B-Instruct | 0.060 USD | 0.200 USD | 131,072 | older than 30 days |
Qwen3 235B-A22B Qwen/Qwen3-235B-A22B | 0.200 USD | 0.800 USD | 40,960 | |
Qwen3 235B-A22B Instruct 2507 Qwen/Qwen3-235B-A22B-Instruct-2507 | 0.855 USD | 2.56 USD | 262,144 | older than 30 days |
Qwen3-235B-A22B-Thinking-2507 Qwen/Qwen3-235B-A22B-Thinking-2507 | 0.300 USD | 3.00 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.290 USD | 0.590 USD | 131,072 | |
Qwen3-Coder 30B-A3B Instruct Qwen/Qwen3-Coder-30B-A3B-Instruct | 0.070 USD | 0.260 USD | 262,144 | |
Qwen3-Coder-480B-A35B-Instruct Qwen/Qwen3-Coder-480B-A35B-Instruct | 2.00 USD | 2.00 USD | 262,144 | older than 30 days |
Qwen3-Coder-Next Qwen/Qwen3-Coder-Next | 0.200 USD | 1.50 USD | 262,144 | older than 30 days |
Qwen 3 Embedding 4B Qwen/Qwen3-Embedding-4B | 0.010 USD | 0 USD | 32,000 | older than 30 days |
Qwen 3 Embedding 8B Qwen/Qwen3-Embedding-8B | 0.010 USD | 0 USD | 32,000 | older than 30 days |
Qwen3-Next-80B-A3B-Instruct Qwen/Qwen3-Next-80B-A3B-Instruct | 0.250 USD | 1.00 USD | 262,144 | older than 30 days |
Qwen3-Next-80B-A3B-Thinking Qwen/Qwen3-Next-80B-A3B-Thinking | 0.300 USD | 2.00 USD | 262,144 | older than 30 days |
Qwen3 VL 235B A22B Instruct Qwen/Qwen3-VL-235B-A22B-Instruct | 0.300 USD | 1.50 USD | 131,072 | older than 30 days |
Qwen3 VL 235B A22B Thinking Qwen/Qwen3-VL-235B-A22B-Thinking | 0.980 USD | 3.95 USD | 131,072 | older than 30 days |
Qwen3.5 122B-A10B Qwen/Qwen3.5-122B-A10B | 0.400 USD | 3.20 USD | 262,144 | older than 30 days |
Qwen3.5 27B Qwen/Qwen3.5-27B | 0.300 USD | 2.40 USD | 262,144 | older than 30 days |
Qwen3.5 35B-A3B Qwen/Qwen3.5-35B-A3B | 0.250 USD | 2.00 USD | 262,144 | older than 30 days |
Qwen3.5-397B-A17B Qwen/Qwen3.5-397B-A17B | 0.600 USD | 3.60 USD | 262,144 | older than 30 days |
Qwen3.5 9B Qwen/Qwen3.5-9B | 0.170 USD | 0.250 USD | 262,144 | older than 30 days |
Qwen3.6 27B Qwen/Qwen3.6-27B | 0.470 USD | 3.19 USD | 262,144 | older than 30 days |
Qwen3.6 35B-A3B Qwen/Qwen3.6-35B-A3B | 0.150 USD | 0.950 USD | 262,144 | older than 30 days |
Qwen3.8 2.4T A95B Qwen/Qwen3.8-2.4T-A95B | 2.50 USD | 6.25 USD | 262,144 | older than 30 days |
Qwen3.8 27B Qwen/Qwen3.8-27B | 0.400 USD | 3.00 USD | 262,144 | older than 30 days |
MiMo-V2-Flash XiaomiMiMo/MiMo-V2-Flash | 0.100 USD | 0.300 USD | 262,144 | older than 30 days |
MiMo-V2.5 XiaomiMiMo/MiMo-V2.5 | 0.400 USD | 2.00 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 |
DeepSeek-R1 deepseek-ai/DeepSeek-R1 | 0.700 USD | 2.50 USD | 64,000 | older than 30 days |
DeepSeek-R1-0528 deepseek-ai/DeepSeek-R1-0528 | 3.00 USD | 5.00 USD | 163,840 | older than 30 days |
DeepSeek-V3 deepseek-ai/DeepSeek-V3 | 0.400 USD | 1.30 USD | 64,000 | older than 30 days |
DeepSeek V3 0324 deepseek-ai/DeepSeek-V3-0324 | 0.270 USD | 1.12 USD | 163,840 | older than 30 days |
DeepSeek-V3.1 deepseek-ai/DeepSeek-V3.1 | 0.270 USD | 1.00 USD | 131,072 | older than 30 days |
DeepSeek-V3.2 deepseek-ai/DeepSeek-V3.2 | 0.280 USD | 0.400 USD | 163,840 | older than 30 days |
DeepSeek V4 Flash deepseek-ai/DeepSeek-V4-Flash | 0.140 USD | 0.280 USD | 1,048,576 | older than 30 days |
DeepSeek V4 Flash 0731 deepseek-ai/DeepSeek-V4-Flash-0731 | 0.140 USD | 0.280 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 | 0.435 USD | 0.870 USD | 1,048,576 | older than 30 days |
DeepSeek V4 Pro 0813 deepseek-ai/DeepSeek-V4-Pro-0813 | 1.32 USD | 3.96 USD | 1,000,000 | older than 30 days |
DeepSeek V4.1 Flash deepseek-ai/DeepSeek-V4.1-Flash | 0.300 USD | 1.20 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.130 USD | 0.400 USD | 262,144 | older than 30 days |
Gemma 4 31B IT google/gemma-4-31B-it | 0.140 USD | 0.400 USD | 262,144 | older than 30 days |
Llama-3.1-8B-Instruct meta-llama/Llama-3.1-8B-Instruct | 0.060 USD | 0.060 USD | 131,072 | older than 30 days |
Llama-3.3-70B-Instruct meta-llama/Llama-3.3-70B-Instruct | 0.590 USD | 0.790 USD | 131,072 | older than 30 days |
Kimi-K2-Instruct moonshotai/Kimi-K2-Instruct | 1.00 USD | 3.00 USD | 131,072 | older than 30 days |
Kimi-K2-Instruct-0905 moonshotai/Kimi-K2-Instruct-0905 | 1.00 USD | 3.00 USD | 262,144 | older than 30 days |
Kimi-K2-Thinking moonshotai/Kimi-K2-Thinking | 0.600 USD | 2.50 USD | 262,144 | older than 30 days |
Kimi-K2.5 moonshotai/Kimi-K2.5 | 0.600 USD | 3.00 USD | 262,144 | older than 30 days |
Kimi-K2.6 moonshotai/Kimi-K2.6 | 0.950 USD | 4.00 USD | 262,144 | older than 30 days |
Kimi K2.7 Code moonshotai/Kimi-K2.7-Code | 0.950 USD | 4.00 USD | 262,144 | older than 30 days |
Kimi K3 moonshotai/Kimi-K3 | 3.00 USD | 15.00 USD | 1,000,000 | older than 30 days |
GPT OSS 120B openai/gpt-oss-120b | 0.250 USD | 0.690 USD | 131,072 | older than 30 days |
GPT OSS 20B openai/gpt-oss-20b | 0.100 USD | 0.500 USD | 131,072 | older than 30 days |
Step 3.5 Flash stepfun-ai/Step-3.5-Flash | 0.100 USD | 0.300 USD | 262,144 | 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.140 USD | 0.580 USD | 262,144 | older than 30 days |
Hy4 preview tencent/Hy4-preview | 0.834 USD | 2.50 USD | 1,000,000 | |
Inkling thinkingmachines/Inkling | 1.00 USD | 4.05 USD | 1,048,576 | older than 30 days |
Inkling Small thinkingmachines/Inkling-Small | 0.500 USD | 1.20 USD | 524,288 | older than 30 days |
GLM-4.5 zai-org/GLM-4.5 | 0.600 USD | 2.20 USD | 131,072 | older than 30 days |
GLM-4.5-Air zai-org/GLM-4.5-Air | 0.130 USD | 0.850 USD | 131,072 | older than 30 days |
GLM-4.5V zai-org/GLM-4.5V | 0.600 USD | 1.80 USD | 65,536 | older than 30 days |
GLM-4.6 zai-org/GLM-4.6 | 0.550 USD | 2.20 USD | 204,800 | older than 30 days |
GLM-4.6V-Flash zai-org/GLM-4.6V-Flash | 0.300 USD | 0.900 USD | 131,072 | older than 30 days |
GLM-4.7 zai-org/GLM-4.7 | 0.600 USD | 2.20 USD | 204,800 | older than 30 days |
GLM-4.7-Flash zai-org/GLM-4.7-Flash | 0 USD | 0 USD | 200,000 | older than 30 days |
GLM-5 zai-org/GLM-5 | 1.00 USD | 3.20 USD | 202,752 | older than 30 days |
GLM-5.1 zai-org/GLM-5.1 | 1.00 USD | 3.20 USD | 202,752 | older than 30 days |
GLM-5.2 zai-org/GLM-5.2 | 1.40 USD | 4.40 USD | 262,144 | older than 30 days |
GLM-5.3 zai-org/GLM-5.3 | 1.40 USD | 4.40 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
- 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.