Baltor Get started

Endpoints

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/v1 models.dev, read
Authentication
Authorization: Bearer, with the key in HF_TOKEN models.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.

ModelInputOutputContextAs of
MiniMax-M2 MiniMaxAI/MiniMax-M20.300 USD1.20 USD204,800 older than 30 days
MiniMax-M2.1 MiniMaxAI/MiniMax-M2.10.300 USD1.20 USD204,800 older than 30 days
MiniMax-M2.5 MiniMaxAI/MiniMax-M2.50.300 USD1.20 USD204,800 older than 30 days
MiniMax-M2.7 MiniMaxAI/MiniMax-M2.70.300 USD1.20 USD204,800 older than 30 days
MiniMax-M3 MiniMaxAI/MiniMax-M30.300 USD1.20 USD524,288 older than 30 days
Qwen2.5-Coder-32B-Instruct Qwen/Qwen2.5-Coder-32B-Instruct0.060 USD0.200 USD131,072 older than 30 days
Qwen3 235B-A22B Qwen/Qwen3-235B-A22B0.200 USD0.800 USD40,960
Qwen3 235B-A22B Instruct 2507 Qwen/Qwen3-235B-A22B-Instruct-25070.855 USD2.56 USD262,144 older than 30 days
Qwen3-235B-A22B-Thinking-2507 Qwen/Qwen3-235B-A22B-Thinking-25070.300 USD3.00 USD262,144 older than 30 days
Qwen3 30B A3B Qwen/Qwen3-30B-A3B0.120 USD0.500 USD40,960 older than 30 days
Qwen3 32B Qwen/Qwen3-32B0.290 USD0.590 USD131,072
Qwen3-Coder 30B-A3B Instruct Qwen/Qwen3-Coder-30B-A3B-Instruct0.070 USD0.260 USD262,144
Qwen3-Coder-480B-A35B-Instruct Qwen/Qwen3-Coder-480B-A35B-Instruct2.00 USD2.00 USD262,144 older than 30 days
Qwen3-Coder-Next Qwen/Qwen3-Coder-Next0.200 USD1.50 USD262,144 older than 30 days
Qwen 3 Embedding 4B Qwen/Qwen3-Embedding-4B0.010 USD0 USD32,000 older than 30 days
Qwen 3 Embedding 8B Qwen/Qwen3-Embedding-8B0.010 USD0 USD32,000 older than 30 days
Qwen3-Next-80B-A3B-Instruct Qwen/Qwen3-Next-80B-A3B-Instruct0.250 USD1.00 USD262,144 older than 30 days
Qwen3-Next-80B-A3B-Thinking Qwen/Qwen3-Next-80B-A3B-Thinking0.300 USD2.00 USD262,144 older than 30 days
Qwen3 VL 235B A22B Instruct Qwen/Qwen3-VL-235B-A22B-Instruct0.300 USD1.50 USD131,072 older than 30 days
Qwen3 VL 235B A22B Thinking Qwen/Qwen3-VL-235B-A22B-Thinking0.980 USD3.95 USD131,072 older than 30 days
Qwen3.5 122B-A10B Qwen/Qwen3.5-122B-A10B0.400 USD3.20 USD262,144 older than 30 days
Qwen3.5 27B Qwen/Qwen3.5-27B0.300 USD2.40 USD262,144 older than 30 days
Qwen3.5 35B-A3B Qwen/Qwen3.5-35B-A3B0.250 USD2.00 USD262,144 older than 30 days
Qwen3.5-397B-A17B Qwen/Qwen3.5-397B-A17B0.600 USD3.60 USD262,144 older than 30 days
Qwen3.5 9B Qwen/Qwen3.5-9B0.170 USD0.250 USD262,144 older than 30 days
Qwen3.6 27B Qwen/Qwen3.6-27B0.470 USD3.19 USD262,144 older than 30 days
Qwen3.6 35B-A3B Qwen/Qwen3.6-35B-A3B0.150 USD0.950 USD262,144 older than 30 days
Qwen3.8 2.4T A95B Qwen/Qwen3.8-2.4T-A95B2.50 USD6.25 USD262,144 older than 30 days
Qwen3.8 27B Qwen/Qwen3.8-27B0.400 USD3.00 USD262,144 older than 30 days
MiMo-V2-Flash XiaomiMiMo/MiMo-V2-Flash0.100 USD0.300 USD262,144 older than 30 days
MiMo-V2.5 XiaomiMiMo/MiMo-V2.50.400 USD2.00 USD262,144 older than 30 days
MiMo-V2.5-Pro XiaomiMiMo/MiMo-V2.5-Pro1.00 USD3.00 USD1,048,576 older than 30 days
DeepSeek-R1 deepseek-ai/DeepSeek-R10.700 USD2.50 USD64,000 older than 30 days
DeepSeek-R1-0528 deepseek-ai/DeepSeek-R1-05283.00 USD5.00 USD163,840 older than 30 days
DeepSeek-V3 deepseek-ai/DeepSeek-V30.400 USD1.30 USD64,000 older than 30 days
DeepSeek V3 0324 deepseek-ai/DeepSeek-V3-03240.270 USD1.12 USD163,840 older than 30 days
DeepSeek-V3.1 deepseek-ai/DeepSeek-V3.10.270 USD1.00 USD131,072 older than 30 days
DeepSeek-V3.2 deepseek-ai/DeepSeek-V3.20.280 USD0.400 USD163,840 older than 30 days
DeepSeek V4 Flash deepseek-ai/DeepSeek-V4-Flash0.140 USD0.280 USD1,048,576 older than 30 days
DeepSeek V4 Flash 0731 deepseek-ai/DeepSeek-V4-Flash-07310.140 USD0.280 USD1,048,576 older than 30 days
DeepSeek V4 Flash Vision Exp deepseek-ai/DeepSeek-V4-Flash-Vision-Exp0.440 USD1.32 USD1,048,576
DeepSeek V4 Pro deepseek-ai/DeepSeek-V4-Pro0.435 USD0.870 USD1,048,576 older than 30 days
DeepSeek V4 Pro 0813 deepseek-ai/DeepSeek-V4-Pro-08131.32 USD3.96 USD1,000,000 older than 30 days
DeepSeek V4.1 Flash deepseek-ai/DeepSeek-V4.1-Flash0.300 USD1.20 USD1,048,576
Gemma 3 12B IT google/gemma-3-12b-it0.050 USD0.150 USD131,072 older than 30 days
Gemma 3 27B IT google/gemma-3-27b-it0.080 USD0.160 USD131,072 older than 30 days
Gemma 3 4B IT google/gemma-3-4b-it0.050 USD0.100 USD131,072 older than 30 days
Gemma 4 26B A4B IT google/gemma-4-26B-A4B-it0.130 USD0.400 USD262,144 older than 30 days
Gemma 4 31B IT google/gemma-4-31B-it0.140 USD0.400 USD262,144 older than 30 days
Llama-3.1-8B-Instruct meta-llama/Llama-3.1-8B-Instruct0.060 USD0.060 USD131,072 older than 30 days
Llama-3.3-70B-Instruct meta-llama/Llama-3.3-70B-Instruct0.590 USD0.790 USD131,072 older than 30 days
Kimi-K2-Instruct moonshotai/Kimi-K2-Instruct1.00 USD3.00 USD131,072 older than 30 days
Kimi-K2-Instruct-0905 moonshotai/Kimi-K2-Instruct-09051.00 USD3.00 USD262,144 older than 30 days
Kimi-K2-Thinking moonshotai/Kimi-K2-Thinking0.600 USD2.50 USD262,144 older than 30 days
Kimi-K2.5 moonshotai/Kimi-K2.50.600 USD3.00 USD262,144 older than 30 days
Kimi-K2.6 moonshotai/Kimi-K2.60.950 USD4.00 USD262,144 older than 30 days
Kimi K2.7 Code moonshotai/Kimi-K2.7-Code0.950 USD4.00 USD262,144 older than 30 days
Kimi K3 moonshotai/Kimi-K33.00 USD15.00 USD1,000,000 older than 30 days
GPT OSS 120B openai/gpt-oss-120b0.250 USD0.690 USD131,072 older than 30 days
GPT OSS 20B openai/gpt-oss-20b0.100 USD0.500 USD131,072 older than 30 days
Step 3.5 Flash stepfun-ai/Step-3.5-Flash0.100 USD0.300 USD262,144 older than 30 days
Step 3.7 Flash stepfun-ai/Step-3.7-Flash0.200 USD1.15 USD262,144 older than 30 days
Hy3 tencent/Hy30.140 USD0.580 USD262,144 older than 30 days
Hy4 preview tencent/Hy4-preview0.834 USD2.50 USD1,000,000
Inkling thinkingmachines/Inkling1.00 USD4.05 USD1,048,576 older than 30 days
Inkling Small thinkingmachines/Inkling-Small0.500 USD1.20 USD524,288 older than 30 days
GLM-4.5 zai-org/GLM-4.50.600 USD2.20 USD131,072 older than 30 days
GLM-4.5-Air zai-org/GLM-4.5-Air0.130 USD0.850 USD131,072 older than 30 days
GLM-4.5V zai-org/GLM-4.5V0.600 USD1.80 USD65,536 older than 30 days
GLM-4.6 zai-org/GLM-4.60.550 USD2.20 USD204,800 older than 30 days
GLM-4.6V-Flash zai-org/GLM-4.6V-Flash0.300 USD0.900 USD131,072 older than 30 days
GLM-4.7 zai-org/GLM-4.70.600 USD2.20 USD204,800 older than 30 days
GLM-4.7-Flash zai-org/GLM-4.7-Flash0 USD0 USD200,000 older than 30 days
GLM-5 zai-org/GLM-51.00 USD3.20 USD202,752 older than 30 days
GLM-5.1 zai-org/GLM-5.11.00 USD3.20 USD202,752 older than 30 days
GLM-5.2 zai-org/GLM-5.21.40 USD4.40 USD262,144 older than 30 days
GLM-5.3 zai-org/GLM-5.31.40 USD4.40 USD1,048,576 older than 30 days
GLM-5.3-Flash zai-org/GLM-5.3-Flash0.150 USD0.500 USD1,048,576

Sources of this page