{"slug":"solar-mini4","name":"Solar Mini 4","family":"upstage","family_name":"Upstage","developer":"Upstage","color":"#8b29a3","status":"active","released":"2026-09-22","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":84,"latency":1.84,"short":"A closed, text-only model from Upstage with a very large 524k context window and tool calling, priced among the cheapest in the registry. It has no benchmark results.","strengths":["Blended price of $0.09 per million tokens, 3rd cheapest of 194","Context window of 524k tokens, larger than most listed models","Supports tool calling, structured output and reasoning mode","Output responses of up to 131k tokens"],"weaknesses":["No benchmark results, so quality cannot be compared with other models","Available from a single provider, OpenRouter","Accepts text input only, with no image or audio support"],"best_for":"High-volume, cost-sensitive agents handling long text inputs, where tool calling and structured output matter more than benchmark-proven quality.","long":"Solar Mini 4 is a closed-weight model from Upstage, released in September 2026. Its main appeal is price: input costs $0.05 per million tokens and output $0.20 per million, which places it 3rd cheapest of the 194 models in the registry. Its blended rate of $0.09 per million tokens is well below the registry median of about $1.01.\n\nThe model offers a 524k-token context window and can produce responses up to 131k tokens long. It supports tool calling, structured output and a reasoning mode, which covers the features most agents rely on. It accepts text only. Its knowledge cutoff is February 2026.\n\nThe registry holds no benchmark results for this model, so its quality cannot be judged against others. It is available only through OpenRouter and is not built into the Pydantic AI Gateway. Its popularity ranks 19th of 194.","described":true,"gateway":false,"byok":true,"string":"openrouter:upstage/solar-mini4","input":0.05,"output":0.2,"cache_read":0.005,"blended":0.0875,"efficiency":null,"bench":{},"offers":[{"provider":"openrouter","name":"OpenRouter","model_id":"upstage/solar-mini4","api":["openai"],"input":0.05,"output":0.2,"cache_read":0.005,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":524288,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:upstage/solar-mini4","gateway_string":null}],"ranks":{"intelligence":null,"popularity":19,"efficiency":null,"speed":62,"price":3},"top_score":0.4071,"about":["A closed, text-only model from Upstage with a very large 524k context window and tool calling, priced among the cheapest in the registry. It has no benchmark results.","Solar Mini 4 is a closed-weight model from Upstage, released in September 2026. Its main appeal is price: input costs $0.05 per million tokens and output $0.20 per million, which places it 3rd cheapest of the 194 models in the registry. Its blended rate of $0.09 per million tokens is well below the registry median of about $1.01.","The model offers a 524k-token context window and can produce responses up to 131k tokens long. It supports tool calling, structured output and a reasoning mode, which covers the features most agents rely on. It accepts text only. Its knowledge cutoff is February 2026.","The registry holds no benchmark results for this model, so its quality cannot be judged against others. It is available only through OpenRouter and is not built into the Pydantic AI Gateway. Its popularity ranks 19th of 194."],"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-mini4', 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-mini4', 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-mini4',\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-mini4')\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-mini4'","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-mini4'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'upstage/solar-mini4' \\\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-mini4'),\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}}