{"slug":"kimi-k2-0905","name":"Kimi K2 0905","family":"moonshot","family_name":"Moonshot AI","developer":"Moonshot AI","color":"#7c5cff","status":"active","released":"2025-09-05","snapshot_of":"kimi-k2","open":true,"context":262144,"max_output":98304,"knowledge_cutoff":null,"modalities":["text"],"output_modalities":["text"],"reasoning":false,"tools":true,"structured_output":true,"huggingface":"moonshotai/Kimi-K2-Instruct-0905","speed":34,"latency":0.71,"short":"An open-weights text model from Moonshot AI, released September 2025, with a 262k-token context window and tool calling. It has no benchmark results in the registry, so it is described here by its specifications and price.","strengths":["262k-token context window","Open weights with tool calling and structured output supported","Input costs $0.60 per million tokens"],"weaknesses":["No benchmark results recorded, so capability cannot be compared","Ranks 159 of 194 for popularity","Only two providers listed, Novita and OpenRouter"],"best_for":"Agents that need a large context window, tool calling and open weights, where benchmark evidence is not required.","long":"Kimi K2 0905 is an open-weights text model made by Moonshot AI and released in September 2025. It accepts text only, supports tool calling and structured output, and has no reasoning mode. Its context window is 262k tokens and its largest response is 98k tokens, which is generous for a model of this kind.\n\nThe registry holds no benchmark results for this model, so there is no measured basis for judging its intelligence against other models. Its ranks are a middle-to-low placement on price and a low placement on popularity, at 99 of 194 and 159 of 194 respectively. Its blended price of $1.08 per million tokens is slightly above the registry median of about $1.01, with input at $0.60 and output at $2.50 per million tokens.\n\nA developer choosing this model should weigh the large context window and tool support against the absence of benchmark evidence. It is available through Novita and OpenRouter, and it is not built into the Pydantic AI Gateway.","described":true,"gateway":false,"byok":true,"string":"openrouter:moonshotai/kimi-k2-0905","input":0.6,"output":2.5,"cache_read":null,"blended":1.075,"efficiency":null,"bench":{},"offers":[{"provider":"novita","name":"Novita","model_id":"moonshotai/kimi-k2-0905","api":["openai"],"input":0.6,"output":2.5,"cache_read":null,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":262144,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":null,"gateway_string":null},{"provider":"openrouter","name":"OpenRouter","model_id":"moonshotai/kimi-k2-0905","api":["openai"],"input":0.6,"output":2.5,"cache_read":null,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":262144,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:moonshotai/kimi-k2-0905","gateway_string":null}],"ranks":{"intelligence":null,"popularity":159,"efficiency":null,"speed":163,"price":99},"top_score":0.0738,"about":["An open-weights text model from Moonshot AI, released September 2025, with a 262k-token context window and tool calling. It has no benchmark results in the registry, so it is described here by its specifications and price.","Kimi K2 0905 is an open-weights text model made by Moonshot AI and released in September 2025. It accepts text only, supports tool calling and structured output, and has no reasoning mode. Its context window is 262k tokens and its largest response is 98k tokens, which is generous for a model of this kind.","The registry holds no benchmark results for this model, so there is no measured basis for judging its intelligence against other models. Its ranks are a middle-to-low placement on price and a low placement on popularity, at 99 of 194 and 159 of 194 respectively. Its blended price of $1.08 per million tokens is slightly above the registry median of about $1.01, with input at $0.60 and output at $2.50 per million tokens.","A developer choosing this model should weigh the large context window and tool support against the absence of benchmark evidence. It is available through Novita and OpenRouter, and it is not built into the Pydantic AI Gateway."],"examples":[{"file":"hello.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent('openrouter:moonshotai/kimi-k2-0905', instructions='Be concise, reply with one sentence.')\n\nresult = agent.run_sync('Where does \"hello world\" come from?')\nprint(result.output)","soon":false},{"file":"structured_output.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic import BaseModel\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\n\nclass CityLocation(BaseModel):\n    city: str\n    country: str\n\n\nagent = Agent('openrouter:moonshotai/kimi-k2-0905', output_type=CityLocation)\n\nresult = agent.run_sync('Where were the olympics held in 2012?')\nprint(result.output)\n#> city='London' country='United Kingdom'","soon":false},{"file":"tools.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\nimport random\n\nfrom pydantic_ai import Agent, RunContext\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent(\n    'openrouter:moonshotai/kimi-k2-0905',\n    deps_type=str,\n    instructions=\"You're a dice game, roll the die and see if it matches the user's guess.\",\n)\n\n\n@agent.tool_plain\ndef roll_dice() -> str:\n    \"\"\"Roll a six-sided die and return the result.\"\"\"\n    return str(random.randint(1, 6))\n\n\n@agent.tool\ndef get_player_name(ctx: RunContext[str]) -> str:\n    \"\"\"Get the player's name.\"\"\"\n    return ctx.deps\n\n\nresult = agent.run_sync('My guess is 4', deps='Anne')\nprint(result.output)","soon":false},{"file":"streaming.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport asyncio\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent('openrouter:moonshotai/kimi-k2-0905')\n\n\nasync def main():\n    async with agent.run_stream('Explain prompt caching in three bullet points.') as response:\n        async for text in response.stream_text(delta=True):\n            print(text, end='', flush=True)\n\n\nasyncio.run(main())","soon":false},{"file":"pax.sh","lang":"sh","code":"export OPENROUTER_API_KEY='...'\n\nuvx pax --model 'openrouter:moonshotai/kimi-k2-0905'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport OPENROUTER_API_KEY='...'\n\npi --model 'openrouter/moonshotai/kimi-k2-0905'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'moonshotai/kimi-k2-0905' \\\n  -c model_provider='openrouter' \\\n  -c model_providers.openrouter.name='Novita' \\\n  -c model_providers.openrouter.base_url='https://api.openrouter.example/v1' \\\n  -c model_providers.openrouter.env_key='OPENROUTER_API_KEY'","soon":false},{"file":"ai_sdk.ts","lang":"ts","code":"// npm install ai @ai-sdk/openai-compatible\nimport { createOpenAICompatible } from '@ai-sdk/openai-compatible'\nimport { generateText } from 'ai'\n\nprocess.env.OPENROUTER_API_KEY = '...'\n\nconst openrouter = createOpenAICompatible({\n  name: 'openrouter',\n  baseURL: 'https://api.openrouter.example/v1',\n  apiKey: process.env.OPENROUTER_API_KEY,\n})\n\nconst { text } = await generateText({\n  model: openrouter('moonshotai/kimi-k2-0905'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}