Use Kimi K3 in Claude Code: setup and pricing
Set ANTHROPIC_BASE_URL and the model to run Kimi K3 (kimi-k3) in Claude Code. $2.70 input / $13.50 output per 1M tokens, with a config you can paste.
- Model ID
kimi-k3- Input / 1M
- $2.70
- Output / 1M
- $13.50
- Context
- —
Set up Claude Code with Kimi K3
- Create an API key in the BigModel.io console and give it a spend limit; agents send long contexts.
- Put the block below in ~/.claude/settings.json with your key. All three model slots point at models you can call; background tasks use the haiku slot.
- Run claude in your project. /status shows the base URL and kimi-k3 as the model.
~/.claude/settings.json
{
"env": {
"ANTHROPIC_BASE_URL": "https://bigmodel.io",
"ANTHROPIC_AUTH_TOKEN": "sk-your-bigmodel-key",
"ANTHROPIC_MODEL": "kimi-k3",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "kimi-k3",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "kimi-k3",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "deepseek-v4-flash"
}
}Use ANTHROPIC_AUTH_TOKEN, not ANTHROPIC_API_KEY, and never commit this file with the key in it.
Check the key and model first
This request should return a short reply. If it fails, the tool will fail the same way.
curl https://bigmodel.io/v1/messages \
-H "Authorization: Bearer $BIGMODEL_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model":"kimi-k3","max_tokens":64,"messages":[{"role":"user","content":"ping"}]}'401 means the key is wrong, 404 the model ID; fix 401 · fix 404 · /v1/messages errors
What it costs
Kimi K3 costs $2.70 per 1M input tokens and $13.50 per 1M output tokens, $0.30 per 1M cached input tokens. A typical agent turn with 20K tokens in and 2K out costs about $0.081; 100 turns about $8.10. Kimi K3 pricing →