{"slug":"deepseek-r1-0528","name":"R1 0528","family":"deepseek","family_name":"DeepSeek","developer":"DeepSeek","color":"#1e3a8a","status":"active","released":"2025-05-28","snapshot_of":null,"open":true,"context":163840,"max_output":32000,"knowledge_cutoff":null,"modalities":["text"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":"deepseek-ai/DeepSeek-R1-0528","speed":37,"latency":1.93,"short":"An open-weights reasoning model from DeepSeek, released May 2025, priced below the registry median. Its benchmark results are weak across the registry, most sharply on ARC-AGI-2.","strengths":["Blended price $0.91 per million tokens, below the $1.01 median","Context window of 164k tokens with up to 32k response tokens","Supports tool calling and structured output","Open weights, ranked 44th of 194 on intelligence points per dollar"],"weaknesses":["ARC-AGI-2 score of 1.1%, last of 68 models tested","Intelligence index 47.4, 95th of 114 against a 59.5 median","OTIS Mock AIME 66.4%, 90th of 95 against a 94.2% median"],"best_for":"Low-cost agents needing tool calls and structured output, where a 164k context matters more than top benchmark scores.","long":"R1 0528 is DeepSeek's open-weights reasoning model, released May 28, 2025. It accepts text only, supports tool calling and structured output, and has a 164k context window with up to 32k response tokens. It is served through OpenRouter, Novita and Fireworks.\n\nIts main appeal is cost. At $0.50 per million input tokens and $2.15 per million output tokens, its blended price of $0.91 sits under the registry median, and it ranks 44th of 194 on intelligence points per dollar.\n\nBenchmark results are weak against the registry. Its intelligence index of 47.4 ranks 95th of 114 against a median of 59.5. It scored 76.3% on GPQA Diamond and 66.4% on OTIS Mock AIME, both well below median, and 1.1% on ARC-AGI-2, last of 68 models tested. Its LMArena rating is close to the median.","described":true,"gateway":false,"byok":true,"string":"openrouter:deepseek/deepseek-r1-0528","input":0.5,"output":2.15,"cache_read":0.35,"blended":0.9125,"efficiency":51.9,"bench":{"index":47.4,"gpqa":76.3,"aime":66.4,"arc_agi_2":1.1,"lmarena":1427.7},"offers":[{"provider":"openrouter","name":"OpenRouter","model_id":"deepseek/deepseek-r1-0528","api":["openai"],"input":0.5,"output":2.15,"cache_read":0.35,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:deepseek/deepseek-r1-0528","gateway_string":null},{"provider":"novita","name":"Novita","model_id":"deepseek/deepseek-r1-0528","api":["openai"],"input":0.7,"output":2.5,"cache_read":0.35,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":163840,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":null,"gateway_string":null},{"provider":"fireworks","name":"Fireworks","model_id":"deepseek-r1-0528","api":["openai"],"input":3,"output":8,"cache_read":null,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":160000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"fireworks:deepseek-r1-0528","gateway_string":null}],"ranks":{"intelligence":92,"popularity":132,"efficiency":44,"speed":161,"price":90},"top_score":0.4741,"about":["An open-weights reasoning model from DeepSeek, released May 2025, priced below the registry median. Its benchmark results are weak across the registry, most sharply on ARC-AGI-2.","R1 0528 is DeepSeek's open-weights reasoning model, released May 28, 2025. It accepts text only, supports tool calling and structured output, and has a 164k context window with up to 32k response tokens. It is served through OpenRouter, Novita and Fireworks.","Its main appeal is cost. At $0.50 per million input tokens and $2.15 per million output tokens, its blended price of $0.91 sits under the registry median, and it ranks 44th of 194 on intelligence points per dollar.","Benchmark results are weak against the registry. Its intelligence index of 47.4 ranks 95th of 114 against a median of 59.5. It scored 76.3% on GPQA Diamond and 66.4% on OTIS Mock AIME, both well below median, and 1.1% on ARC-AGI-2, last of 68 models tested. Its LMArena rating is close to the median."],"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:deepseek/deepseek-r1-0528', 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:deepseek/deepseek-r1-0528', 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:deepseek/deepseek-r1-0528',\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:deepseek/deepseek-r1-0528')\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:deepseek/deepseek-r1-0528'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport OPENROUTER_API_KEY='...'\n\npi --model 'openrouter/deepseek/deepseek-r1-0528'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'deepseek/deepseek-r1-0528' \\\n  -c model_provider='openrouter' \\\n  -c model_providers.openrouter.name='OpenRouter' \\\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('deepseek/deepseek-r1-0528'),\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":"gpqa","name":"GPQA Diamond","unit":"%","desc":"Graduate-level science questions, multiple choice","category":"reasoning","floor":25,"ceiling":97,"url":"https://epoch.ai/benchmarks/gpqa-diamond","credit":"Epoch AI (CC BY 4.0)"},{"id":"aime","name":"OTIS Mock AIME","unit":"%","desc":"Competition mathematics problems with exact answers","category":"reasoning","floor":0,"ceiling":100,"url":"https://epoch.ai/benchmarks/otis-mock-aime-2024-2025","credit":"Epoch AI (CC BY 4.0)"},{"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":"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)"}],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}