Kimi K3
Open-weights model from Moonshot AI with a 1M context window and image and video input. Strong on web app building and scientific coding, but priced well above the registry median.
Spec sheet
- Family
- Moonshot AI
- Released
- 16 Jul 20264 months ago
- Weights
- Open
- Context window
- 1M tokens
- Largest response
- 1M tokens
- Accepts
- text, image, video
- Supports
- tools, reasoning, structured output
- Knowledge cutoff
- –
- Intelligence index
- 67.1#33
- Input price
- $3 / 1M
- Output price
- $15 / 1M
- Blended price (3:1)
- $6 / 1M
- Index points per $
- 11.2#94
- Speed
- 87.5 tokens/sec#53
- Popularity
- #21 of 194by usage
- Providers
- 9
- Weights on
- moonshotai/Kimi-K3
Benchmarks
Score · rank among models testedThe tick on each bar marks the registry median; hover over a bar for the numbers. Sources and how the index is computed: methodology.
Providers and prices
$ per 1M tokens · from genai-prices| Provider | Gateway | Pydantic AI model string | Input | Cached input | Output | Blended |
|---|---|---|---|---|---|---|
| Moonshot AI | BYOK | moonshotai:kimi-k3 | $3 | $0.3 | $15 | $6 |
| AWS Bedrock | gateway/bedrock:global.moonshotai.kimi-k3 | $3 | $0.3 | $15 | $6 | |
| Doubleword | gateway/doubleword:moonshotai/kimi-k3 | $3 | $0.3 | $15 | $6 | |
| Baseten | BYOK | – | $3 | $0.3 | $15 | $6 |
| Fireworks | BYOK | fireworks:kimi-k3 | $3 | $0.3 | $15 | $6 |
| Novita | BYOK | – | $3 | $0.3 | $15 | $6 |
| OpenRouter | BYOK | openrouter:moonshotai/kimi-k3 | $3 | $0.3 | $15 | $6 |
| Perplexity | BYOK | – | $3 | $0.3 | $15 | $6 |
| Together AI | BYOK | together:moonshotai/Kimi-K3 | $3 | $0.3 | $15 | $6 |
Every provider charges the same. Blended price assumes three input tokens for each output token.
Example code
# /// script # dependencies = ["pydantic-ai"] # /// import os from pydantic_ai import Agent os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...' agent = Agent('gateway/bedrock:global.moonshotai.kimi-k3', instructions='Be concise, reply with one sentence.') result = agent.run_sync('Where does "hello world" come from?') print(result.output)
# /// script # dependencies = ["pydantic-ai"] # /// import os from pydantic import BaseModel from pydantic_ai import Agent os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...' class CityLocation(BaseModel): city: str country: str agent = Agent('gateway/bedrock:global.moonshotai.kimi-k3', output_type=CityLocation) result = agent.run_sync('Where were the olympics held in 2012?') print(result.output) #> city='London' country='United Kingdom'
# /// script # dependencies = ["pydantic-ai"] # /// import os import random from pydantic_ai import Agent, RunContext os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...' agent = Agent( 'gateway/bedrock:global.moonshotai.kimi-k3', deps_type=str, instructions="You're a dice game, roll the die and see if it matches the user's guess.", ) @agent.tool_plain def roll_dice() -> str: """Roll a six-sided die and return the result.""" return str(random.randint(1, 6)) @agent.tool def get_player_name(ctx: RunContext[str]) -> str: """Get the player's name.""" return ctx.deps result = agent.run_sync('My guess is 4', deps='Anne') print(result.output)
# /// script # dependencies = ["pydantic-ai"] # /// import asyncio import os from pydantic_ai import Agent os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...' agent = Agent('gateway/bedrock:global.moonshotai.kimi-k3') async def main(): async with agent.run_stream('Explain prompt caching in three bullet points.') as response: async for text in response.stream_text(delta=True): print(text, end='', flush=True) asyncio.run(main())
export PYDANTIC_AI_GATEWAY_API_KEY='...' uvx pax --model 'gateway/bedrock:global.moonshotai.kimi-k3'
// npm install ai @ai-sdk/amazon-bedrock import { createAmazonBedrock } from '@ai-sdk/amazon-bedrock' import { generateText } from 'ai' process.env.PYDANTIC_AI_GATEWAY_API_KEY = '...' const bedrock = createAmazonBedrock({ baseURL: 'https://gateway.pydantic.dev/proxy/bedrock', apiKey: process.env.PYDANTIC_AI_GATEWAY_API_KEY, }) const { text } = await generateText({ model: bedrock('global.moonshotai.kimi-k3'), system: 'Be concise, reply with one sentence.', prompt: 'Where does "hello world" come from?', }) console.log(text)
Ask Kimi K3 a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.
Get validated, typed output from Kimi K3 by giving the agent a Pydantic model. Run it with uv run structured_output.py.
Give Kimi K3 two tools to call, one of which reads the agent's dependencies. Run it with uv run tools.py.
Stream Kimi K3's reply to the terminal as it is generated. Run it with uv run streaming.py.
Chat with Kimi K3 in your terminal using pax, the TUI for pydantic-ai-harness. Coming soon.
Call Kimi K3 from TypeScript with the Vercel AI SDK, through Pydantic AI Gateway.
Compare
Score against blended price per 1M tokens (log scale). Kimi K3 GLM 5.3 other models
About Kimi K3
Description written by an LLM from the data on this pageOpen-weights model from Moonshot AI with a 1M context window and image and video input. Strong on web app building and scientific coding, but priced well above the registry median.
Kimi K3 is an open-weights model from Moonshot AI, released July 2026. It accepts text, image and video, has a 1M-token context window, and supports tool calling, structured output and a reasoning mode. Its strongest results are web app building, 9th of 85 on WebDev Arena, and scientific programming, 12th of 96 on SciCode. Its overall intelligence index of 67.1 ranks 34th of 114, above the median of 59.5.
The main drawbacks are price and agentic work. Its blended cost of $6 per million tokens is about six times the registry median and ranks 163rd of 194. It scores 47.8% on APEX-Agents, 38th of 60 and below the median, and sits just under the median on ARC-AGI-2. Nine providers host it, so the choice of host affects cost.
Strengths
- WebDev Arena rating 1674.3, 9th of 85
- SciCode score 59.5%, 12th of 96
- Open weights, 1M context window and 1M maximum output tokens
- Accepts text, image and video, with tool calling and structured output
Weaknesses
- Blended price $6 per million tokens, 163rd of 194 on price
- APEX-Agents score 47.8%, 38th of 60 and below the median
- ARC-AGI-2 score 60.4%, 36th of 68 and just below the median
Best for
Web development and scientific coding agents that need long context or image and video input.