Kimi K3.1 Pro
An open-weights multimodal model from Moonshot AI with a very large context window. It ranks near the top on competition mathematics but costs well above the registry median.
Spec sheet
- Family
- Moonshot AI
- Released
- 23 Oct 20261 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
- 71.9#18
- Input price
- $2 / 1M
- Output price
- $10 / 1M
- Blended price (3:1)
- $4 / 1M
- Index points per $
- 18#81
- Speed
- 48 tokens/sec#127
- Popularity
- #7 of 194by usage
- Providers
- 5
- Weights on
- moonshotai/Kimi-K3.1-Pro
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.1-pro | $2 | $0.2 | $10 | $4 |
| Doubleword | gateway/doubleword:moonshotai/Kimi-K3.1-Pro | $2 | $0.2 | $10 | $4 | |
| Novita | BYOK | – | $2 | $0.2 | $10 | $4 |
| OpenRouter | BYOK | openrouter:moonshotai/kimi-k3.1-pro | $2 | $0.2 | $10 | $4 |
| Together AI | BYOK | together:moonshotai/Kimi-K3.1-Pro | $2 | $0.2 | $10 | $4 |
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/doubleword:moonshotai/Kimi-K3.1-Pro', 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/doubleword:moonshotai/Kimi-K3.1-Pro', 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/doubleword:moonshotai/Kimi-K3.1-Pro', 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/doubleword:moonshotai/Kimi-K3.1-Pro') 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/doubleword:moonshotai/Kimi-K3.1-Pro'
# npm install -g @openai/codex export PYDANTIC_AI_GATEWAY_API_KEY='...' codex --model 'moonshotai/Kimi-K3.1-Pro' \ -c model_provider='gateway' \ -c model_providers.gateway.name='Pydantic AI Gateway' \ -c model_providers.gateway.base_url='https://gateway.pydantic.dev/proxy/doubleword/v1' \ -c model_providers.gateway.env_key='PYDANTIC_AI_GATEWAY_API_KEY'
// npm install ai @ai-sdk/openai-compatible import { createOpenAICompatible } from '@ai-sdk/openai-compatible' import { generateText } from 'ai' process.env.PYDANTIC_AI_GATEWAY_API_KEY = '...' const doubleword = createOpenAICompatible({ baseURL: 'https://gateway.pydantic.dev/proxy/doubleword', apiKey: process.env.PYDANTIC_AI_GATEWAY_API_KEY, }) const { text } = await generateText({ model: doubleword('moonshotai/Kimi-K3.1-Pro'), system: 'Be concise, reply with one sentence.', prompt: 'Where does "hello world" come from?', }) console.log(text)
Ask Kimi K3.1 Pro 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.1 Pro by giving the agent a Pydantic model. Run it with uv run structured_output.py.
Give Kimi K3.1 Pro two tools to call, one of which reads the agent's dependencies. Run it with uv run tools.py.
Stream Kimi K3.1 Pro's reply to the terminal as it is generated. Run it with uv run streaming.py.
Chat with Kimi K3.1 Pro in your terminal using pax, the TUI for pydantic-ai-harness. Coming soon.
Run OpenAI's Codex CLI on Kimi K3.1 Pro through Pydantic AI Gateway.
Call Kimi K3.1 Pro from TypeScript with the Vercel AI SDK, through Pydantic AI Gateway.
Compare
Score against blended price per 1M tokens (log scale). Kimi K3.1 Pro Qwen3.8 Max (0902) other models
About Kimi K3.1 Pro
Description written by an LLM from the data on this pageAn open-weights multimodal model from Moonshot AI with a very large context window. It ranks near the top on competition mathematics but costs well above the registry median.
Kimi K3.1 Pro is an open-weights model from Moonshot AI, released in October 2026. It accepts text, image and video, supports tool calling, reasoning and structured output, and has a very large context window. Five providers serve it.
Its strongest results are in mathematics and science. It scores 100% on OTIS Mock AIME, first of 95 models tested, and 94.2% on GPQA Diamond, 15th of 94. Its Intelligence index of 71.9 ranks 19th of 114, well above the median. Agentic and chat results are mid-table, with LMArena 34th of 114.
Cost is the main drawback. Blended pricing is $4 per million tokens, about four times the registry median, with output at $10 per million. Its price ranks 147th of 194.
Strengths
- 100% on OTIS Mock AIME, first of 95 models tested
- Intelligence index 71.9, 19th of 114, well above median
- 94.2% on GPQA Diamond, 15th of 94 models tested
- SciCode 60.8%, 9th of 96 models tested
Weaknesses
- Blended price $4 per million tokens, about four times the median
- Price rank 147th of 194, among the more expensive models
- LMArena rating 34th of 114, only slightly above median
Best for
Math-heavy reasoning and long-document agent work where per-token cost is not the main concern.