{"slug":"sonar-pro-search","name":"Sonar Pro Search","family":"perplexity","family_name":"Perplexity","developer":"Perplexity","color":"#338fcc","status":"active","released":"2025-10-30","snapshot_of":null,"open":false,"context":200000,"max_output":8000,"knowledge_cutoff":null,"modalities":["text","image"],"output_modalities":["text"],"reasoning":true,"tools":false,"structured_output":true,"huggingface":null,"speed":31,"latency":9.65,"short":"A closed, search-oriented model from Perplexity, accepting text and image input with a 200k context window. It has no benchmark results in the registry, so its profile rests on specifications and price.","strengths":["200k context window with structured output support","Accepts both text and image input","Available from Perplexity and OpenRouter"],"weaknesses":["No tool calling support","Blended price of $6 per million tokens, well above the $1 median","Ranks 179 of 194 on popularity and no benchmark results"],"best_for":"Search-grounded question answering and report generation where structured output is needed and tool calling is not.","long":"Sonar Pro Search is a closed-weight model from Perplexity, released October 2025. It accepts text and image input, offers a 200k token context window, and can produce responses up to 8k tokens. It supports reasoning mode and structured output, but not tool calling, which limits its use in agents that rely on calling external functions.\n\nPricing is $3 per million input tokens and $15 per million output tokens, a blended rate of $6 per million at the 3 to 1 ratio. That is several times the registry median blended price of about $1. The model ranks 163 of 194 on price and 179 of 194 on popularity. It is offered through Perplexity and OpenRouter and is not built into the Pydantic AI Gateway.\n\nThe registry holds no benchmark results for this model, so its intelligence and value cannot be compared with others. Its knowledge cutoff is also not recorded.","described":true,"gateway":false,"byok":true,"string":"openrouter:perplexity/sonar-pro-search","input":3,"output":15,"cache_read":null,"blended":6,"efficiency":null,"bench":{},"offers":[{"provider":"perplexity","name":"Perplexity","model_id":"sonar-pro-search","api":["openai"],"input":3,"output":15,"cache_read":null,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":null,"gateway_string":null},{"provider":"openrouter","name":"OpenRouter","model_id":"perplexity/sonar-pro-search","api":["openai"],"input":3,"output":15,"cache_read":null,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":200000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:perplexity/sonar-pro-search","gateway_string":null}],"ranks":{"intelligence":null,"popularity":179,"efficiency":null,"speed":168,"price":163},"top_score":0.0262,"about":["A closed, search-oriented model from Perplexity, accepting text and image input with a 200k context window. It has no benchmark results in the registry, so its profile rests on specifications and price.","Sonar Pro Search is a closed-weight model from Perplexity, released October 2025. It accepts text and image input, offers a 200k token context window, and can produce responses up to 8k tokens. It supports reasoning mode and structured output, but not tool calling, which limits its use in agents that rely on calling external functions.","Pricing is $3 per million input tokens and $15 per million output tokens, a blended rate of $6 per million at the 3 to 1 ratio. That is several times the registry median blended price of about $1. The model ranks 163 of 194 on price and 179 of 194 on popularity. It is offered through Perplexity and OpenRouter and is not built into the Pydantic AI Gateway.","The registry holds no benchmark results for this model, so its intelligence and value cannot be compared with others. Its knowledge cutoff is also not recorded."],"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:perplexity/sonar-pro-search', 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:perplexity/sonar-pro-search', 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:perplexity/sonar-pro-search',\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:perplexity/sonar-pro-search')\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:perplexity/sonar-pro-search'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport OPENROUTER_API_KEY='...'\n\npi --model 'openrouter/perplexity/sonar-pro-search'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'perplexity/sonar-pro-search' \\\n  -c model_provider='openrouter' \\\n  -c model_providers.openrouter.name='Perplexity' \\\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('perplexity/sonar-pro-search'),\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}}