{"slug":"deepseek-v3.2","name":"DeepSeek V3.2","family":"deepseek","family_name":"DeepSeek","developer":"DeepSeek","color":"#1e3a8a","status":"active","released":"2025-12-01","snapshot_of":null,"open":true,"context":128000,"max_output":147456,"knowledge_cutoff":"2024-07","modalities":["text"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":"deepseek-ai/DeepSeek-V3.2","speed":28,"latency":1.46,"short":"An open-weights model from DeepSeek, released December 2025, with a very low price and a modest context window. Its benchmark scores mostly sit in the lower half of the registry, though it ranks well on efficiency.","strengths":["Blended price of $0.26 per million tokens, far below the $1.01 median","Efficiency rank 15 of 194 on intelligence points per dollar","Open weights with tool calling, reasoning mode and structured output","Largest response of 147k tokens, above its 128k context window"],"weaknesses":["Intelligence index 42.0, 104th of 114 and well below the 59.5 median","ARC-AGI-2 at 4.0%, 64th of 68 against a 61.3% median","Hosted by only two providers, DeepSeek and OpenRouter, and not built into the Gateway"],"best_for":"Cost-sensitive agents and bulk tasks where tool calling and structured output matter more than top benchmark scores.","long":"DeepSeek V3.2 is an open-weights model from DeepSeek, released in December 2025. Its main appeal is price: at a blended $0.26 per million tokens it costs about a quarter of the registry median, and it ranks 15th of 194 on intelligence points per dollar. It accepts text only and offers a 128k context window with tool calling, structured output and a reasoning mode.\n\nCapability is weaker. Its intelligence index of 42.0 places it 104th of 114, and it trails the median on most individual tests, including ARC-AGI-2 and APEX-Agents. Its LMArena rating is near the median, at 72nd of 114.\n\nIt suits agents where cost per token dominates and the tasks are not demanding. It is available only through DeepSeek and OpenRouter and is not built into the Gateway.","described":true,"gateway":false,"byok":true,"string":"deepseek:deepseek-v3.2","input":0.2288,"output":0.3432,"cache_read":null,"blended":0.2574,"efficiency":163.2,"bench":{"index":42,"arc_agi_2":4,"terminal":39.6,"webdev":1324.7,"apex":21.3,"lmarena":1424.5,"eci":146.3},"offers":[{"provider":"deepseek","name":"DeepSeek","model_id":"deepseek-v3.2","api":["openai"],"input":0.2288,"output":0.3432,"cache_read":null,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":128000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"deepseek:deepseek-v3.2","gateway_string":null},{"provider":"openrouter","name":"OpenRouter","model_id":"deepseek/deepseek-v3.2","api":["openai"],"input":0.26,"output":0.38,"cache_read":0.13,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:deepseek/deepseek-v3.2","gateway_string":null}],"ranks":{"intelligence":101,"popularity":45,"efficiency":15,"speed":171,"price":37},"top_score":0.6952,"about":["An open-weights model from DeepSeek, released December 2025, with a very low price and a modest context window. Its benchmark scores mostly sit in the lower half of the registry, though it ranks well on efficiency.","DeepSeek V3.2 is an open-weights model from DeepSeek, released in December 2025. Its main appeal is price: at a blended $0.26 per million tokens it costs about a quarter of the registry median, and it ranks 15th of 194 on intelligence points per dollar. It accepts text only and offers a 128k context window with tool calling, structured output and a reasoning mode.","Capability is weaker. Its intelligence index of 42.0 places it 104th of 114, and it trails the median on most individual tests, including ARC-AGI-2 and APEX-Agents. Its LMArena rating is near the median, at 72nd of 114.","It suits agents where cost per token dominates and the tasks are not demanding. It is available only through DeepSeek and OpenRouter and is not built into the 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['DEEPSEEK_API_KEY'] = '...'\n\nagent = Agent('deepseek:deepseek-v3.2', 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['DEEPSEEK_API_KEY'] = '...'\n\n\nclass CityLocation(BaseModel):\n    city: str\n    country: str\n\n\nagent = Agent('deepseek:deepseek-v3.2', 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['DEEPSEEK_API_KEY'] = '...'\n\nagent = Agent(\n    'deepseek:deepseek-v3.2',\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['DEEPSEEK_API_KEY'] = '...'\n\nagent = Agent('deepseek:deepseek-v3.2')\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 DEEPSEEK_API_KEY='...'\n\nuvx pax --model 'deepseek:deepseek-v3.2'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport DEEPSEEK_API_KEY='...'\n\npi --model 'deepseek/deepseek-v3.2'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport DEEPSEEK_API_KEY='...'\n\ncodex --model 'deepseek-v3.2' \\\n  -c model_provider='deepseek' \\\n  -c model_providers.deepseek.name='DeepSeek' \\\n  -c model_providers.deepseek.base_url='https://api.deepseek.example/v1' \\\n  -c model_providers.deepseek.env_key='DEEPSEEK_API_KEY'","soon":false},{"file":"ai_sdk.ts","lang":"ts","code":"// npm install ai @ai-sdk/deepseek\nimport { createDeepSeek } from '@ai-sdk/deepseek'\nimport { generateText } from 'ai'\n\nprocess.env.DEEPSEEK_API_KEY = '...'\n\nconst deepseek = createDeepSeek({ apiKey: process.env.DEEPSEEK_API_KEY })\n\nconst { text } = await generateText({\n  model: deepseek('deepseek-v3.2'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[{"id":"index","name":"Intelligence index","unit":"","desc":"Our composite of the benchmarks below, 0-100","category":"reference","floor":0,"ceiling":100,"url":"/methodology/","credit":"Pydantic, from the sources credited below"},{"id":"arc_agi_2","name":"ARC-AGI-2","unit":"%","desc":"Abstract visual puzzles that test learning a new rule from a few examples","category":"reasoning","floor":0,"ceiling":100,"url":"https://arcprize.org/leaderboard","credit":"ARC Prize, via Epoch AI (CC BY 4.0)"},{"id":"terminal","name":"Terminal-Bench","unit":"%","desc":"Tasks completed in a terminal; the best result of any agent using the model","category":"coding","floor":0,"ceiling":100,"url":"https://www.tbench.ai/leaderboard/terminal-bench/2.0","credit":"Terminal-Bench, via Epoch AI (CC BY 4.0)"},{"id":"webdev","name":"WebDev Arena","unit":"","desc":"Rating from human votes on web apps the models built","category":"coding","floor":1000,"ceiling":1900,"url":"https://web.lmarena.ai/leaderboard","credit":"LMArena, via Epoch AI (CC BY 4.0)"},{"id":"apex","name":"APEX-Agents","unit":"%","desc":"Long professional tasks (banking, consulting, law) passed on the first attempt","category":"agents","floor":0,"ceiling":100,"url":"https://epoch.ai/benchmarks","credit":"Mercor, via Epoch AI (CC BY 4.0)"},{"id":"lmarena","name":"LMArena text","unit":"","desc":"Rating from blind human votes between pairs of chat responses","category":"preference","floor":1100,"ceiling":1600,"url":"https://lmarena.ai/leaderboard/text","credit":"LMArena (CC BY 4.0)"},{"id":"eci","name":"Epoch Capabilities Index","unit":"","desc":"Epoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index","category":"reference","floor":80,"ceiling":180,"url":"https://epoch.ai/benchmarks/eci","credit":"Epoch AI (CC BY 4.0)"}],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}