Skip to content

Providers / Moonshot AI (Kimi)

Moonshot AI (Kimi)

Moonshot AI makes the Kimi models, a family of open-weight models aimed at coding and agent work. The current line is Kimi K3. The earlier K2 line includes a general model, K2.6, and a coding model, K2.7 Code. Recent Kimi models accept text, images and video.

Models

USD per 1M tokens · prices as of 2026-11-21

ModelBest forInputOutputContext
Kimi K2.6General writing, analysis and chat · Screenshots or video in the prompt$1.1515$4.7831256K
Kimi K2.7 CodeA model trained for code · Screenshots or video in the prompt$1.1515$4.7831256K
Kimi K3Agent work over large codebases (read-heavy) · Long, write-heavy generations · Screenshots or video in the prompt$3.2900$16.4498256K

Which model for which job

JobUseInput / output per 1MWhy
Agent work over large codebases (read-heavy)Kimi K3$3.2900 / $16.4498Input is cheap relative to output
Long, write-heavy generationsKimi K3Another model, or K3 with reasoning off$3.2900 / $16.4498K3 output is priced high
A model trained for codeKimi K2.7 Code$1.1515 / $4.7831Coding model built on K2.6; thinking is always on (older, deprecated)
General writing, analysis and chatKimi K2.6$1.1515 / $4.7831Thinking can be switched off; Moonshot recommends it over K2.7 Code for these (older, deprecated)
Screenshots or video in the promptKimi K2.6Kimi K2.7 CodeKimi K3$1.1515 / $4.7831$1.1515 / $4.7831$3.2900 / $16.4498Image and video input

Data handling

What Moonshot publishes

What Yunshu does

Pricing notes

Use it in your coding tool

Paste these settings to use Kimi K2.6. Swap in any Moonshot AI model ID from the table above.

export ANTHROPIC_BASE_URL=https://api.yunshurouter.com
export ANTHROPIC_AUTH_TOKEN=YOUR_YUNSHU_KEY
export ANTHROPIC_MODEL=kimi-k2.6
export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1

Run these in your shell before starting Claude Code, or put them in ~/.claude/settings.json (see the guide). No /v1 in the address: Claude Code adds it. The last line stops Claude Code sending fields only Anthropic models accept. Full guide →

Questions

How do I use Kimi K3 with Claude Code?
Can I use the Kimi API outside China?
What is the difference between Kimi K3, K2.7 Code and K2.6?
Does Moonshot store my prompts?