{"slug":"solar-pro4","name":"Solar Pro 4","family":"upstage","family_name":"Upstage","developer":"Upstage","color":"#8b29a3","status":"active","released":"2026-08-06","snapshot_of":null,"open":false,"context":524288,"max_output":131072,"knowledge_cutoff":"2026-02","modalities":["text"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":null,"speed":70,"latency":1.23,"short":"A low-cost, closed-weights text model from Upstage, released August 2026. Price is the main draw, while its single benchmark result sits near the bottom of the registry.","strengths":["Blended price of $0.26 per million tokens, well below the $1.01 median","Supports tool calling, reasoning mode and structured output","524k context window and responses up to 131k tokens","Popularity rank of 49 of 194"],"weaknesses":["LMArena text score of 1388, 100th of 114, below the 1438 median","Only one benchmark result, so quality is hard to judge","Accepts text input only and is offered by a single provider, OpenRouter"],"best_for":"Cost-sensitive agents that need tool calling and structured output, where top answer quality matters less.","long":"Solar Pro 4 is a closed-weights model from Upstage, released in August 2026 and offered only through OpenRouter. Its main appeal is price: $0.15 per million input tokens and $0.60 per million output, a blended $0.26 against a registry median of about $1.01. It accepts text only and supports tool calling, reasoning mode and structured output, with a 524k context window.\n\nQuality evidence is thin. Its only benchmark, LMArena text, gives 1388 against a median of 1438, ranking 100th of 114. No intelligence index score is available, so value per dollar cannot be assessed.\n\nTesting it on the target workload is advisable before adoption.","described":true,"gateway":false,"byok":true,"string":"openrouter:upstage/solar-pro4","input":0.15,"output":0.6,"cache_read":0.03,"blended":0.2625,"efficiency":null,"bench":{"lmarena":1388.3},"offers":[{"provider":"openrouter","name":"OpenRouter","model_id":"upstage/solar-pro4","api":["openai"],"input":0.15,"output":0.6,"cache_read":0.03,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":524288,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:upstage/solar-pro4","gateway_string":null}],"ranks":{"intelligence":null,"popularity":49,"efficiency":null,"speed":87,"price":38},"top_score":0.3357,"about":["A low-cost, closed-weights text model from Upstage, released August 2026. Price is the main draw, while its single benchmark result sits near the bottom of the registry.","Solar Pro 4 is a closed-weights model from Upstage, released in August 2026 and offered only through OpenRouter. Its main appeal is price: $0.15 per million input tokens and $0.60 per million output, a blended $0.26 against a registry median of about $1.01. It accepts text only and supports tool calling, reasoning mode and structured output, with a 524k context window.","Quality evidence is thin. Its only benchmark, LMArena text, gives 1388 against a median of 1438, ranking 100th of 114. No intelligence index score is available, so value per dollar cannot be assessed.","Testing it on the target workload is advisable before adoption."],"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:upstage/solar-pro4', 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:upstage/solar-pro4', 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:upstage/solar-pro4',\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:upstage/solar-pro4')\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:upstage/solar-pro4'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport OPENROUTER_API_KEY='...'\n\npi --model 'openrouter/upstage/solar-pro4'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'upstage/solar-pro4' \\\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('upstage/solar-pro4'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[{"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}}