Perplexity Sonar Chat is a paid API for AI agents from Perplexity at perplexity.mpp.paywithlocus.com, paid per call via MPP, Model-dependent (~$0.005–$0.02) (dynamic), status unknown (last checked 2026-10-10).
Sends a chat message to Perplexity's Sonar models with real-time web search grounding and returns an AI-generated response with citations
Generate chat completions with Sonar models. Features real-time web search grounding, citations, structured output, and reasoning capabilities.
Returns a chat completion response containing the AI-generated answer grounded in real-time web search results, along with source citations, optionally related follow-up questions, and optionally image results. The response follows a standard chat completion format with model metadata and usage stats.
POSThttps://perplexity.mpp.paywithlocus.com/perplexity/chat?utm_source=zero.xyzPrefer this endpoint when you need AI-generated answers grounded in real-time web content with citations, especially for questions about recent events, current data, or topics requiring live web search. Choose sonar-deep-research for comprehensive multi-step research tasks, sonar-reasoning-pro for complex reasoning with web grounding, or sonar for fast everyday queries. Prefer over generic LLMs when freshness and source attribution matter.
{
"model": "sonar",
"messages": [
{
"role": "user",
"content": "What are the latest developments in artificial intelligence this week?"
}
],
"max_tokens": 1000,
"temperature": 0.7,
"return_images": false,
"search_recency_filter": "week",
"return_related_questions": true
}| Field | Type | Description |
|---|---|---|
| modelrequired | string | Metered x402 Sonar model ID: 'sonar', 'sonar-pro', or 'sonar-reasoning-pro'. Deep Research is excluded because its autonomous usage cannot be safely preauthorized. |
| top_p | number | Nucleus sampling threshold (0.0–1.0) |
| messagesrequired | array | Conversation messages. Each: { role: "system"|"user"|"assistant", content: "text" } or multimodal with image_url content blocks. |
| max_tokensrequired | number | Maximum output tokens (up to 128000). Required to bound metered x402 authorization. |
| temperature | number | Sampling temperature (0.0–2.0) |
| return_images | boolean | Include image results in the response |
| response_format | object | Structured output. { type: "json_schema", json_schema: { name: "...", schema: {...} } } |
| reasoning_effort | string | Reasoning effort level (sonar-reasoning-pro only): 'minimal', 'low', 'medium', 'high' |
| web_search_options | object | Web search configuration: { search_context_size: 'low'|'medium'|'high', search_type: 'fast', user_location: { country: '...', city: '...' } }. Metered x402 excludes pro/auto because they can trigger uncapped multi-step usage and require streaming. |
| search_domain_filter | array | Restrict search to specific domains |
| search_recency_filter | string | Time filter for search results: 'hour', 'day', 'week', 'month', 'year' |
| search_language_filter | array | Filter search results by language (ISO 639-1 codes) |
| return_related_questions | boolean | Include related follow-up questions in the response |
{
"data": {
"id": "8024ff7d-00d7-4326-b96d-65a51508a0b8",
"model": "sonar",
"usage": {
"cost": {
"total_cost": 0.00534,
"request_cost": 0.005,
"input_tokens_cost": 0.00001,
"output_tokens_cost": 0.00033
},
"total_tokens": 343,
"prompt_tokens": 12,
"completion_tokens": 331,
"search_context_size": "low"
},
"object": "chat.completion",
"choices": [
{
"delta": {
"role": "assistant",
"content": ""
},
"index": 0,
"message": {
"role": "assistant",
"content": "The biggest **AI developments this week** in the available results are Anthropic’s new research showing that AI systems are becoming more capable of improving AI itself, plus broader industry signals around faster task completion, autonomous research, and escalating cyber-defense implications.[1]\n\n- Anthropic says model capability is accelerating, with the length of tasks models can reliably complete on their own **doubling roughly every four months** and longer-horizon autonomy improving in 2026.[1]\n- The same research says Claude’s success on open-ended tasks reached **76% in May 2026**, up sharply over six months, and that by April 2026 Claude had already demonstrated an **end-to-end open-ended research project**.[1]\n- Anthropic also reports that in the second quarter of 2026, the typical engineer was merging **8× as much code per day** as in 2024, largely because Claude is writing much of the code with human review.[1]\n- On security, Anthropic says its latest model found **more than ten thousand high- and critical-severity software vulnerabilities** in early use, which it describes as shifting the bottleneck from discovering flaws to patching them quickly enough.[1]\n- Separate reporting in the results also points to ongoing AI-policy and deployment moves, including a possible **OpenAI move toward a public listing**, expanded access to Anthropic’s **Claude Mythos** in selected regions, and debate over AI safety and infrastructure constraints.[2]\n\nIf you want, I can turn this into a **short daily AI briefing** or split it into **research, products, policy, and safety** headlines."
},
"finish_reason": "stop"
}
],
"created": 1781064054,
"citations": [
"https://www.anthropic.com/institute/recursive-self-improvement",
"https://techxplore.com/machine-learning-ai-news/",
"https://www.energy.gov/topics/artificial-intelligence",
"https://www.britannica.com/technology/artificial-intelligence",
"https://www.instagram.com/reel/DZPKj_FTr5q/"
],
"search_results": [
{
"url": "https://www.anthropic.com/institute/recursive-self-improvement",
"date": "2026-06-10",
"title": "When AI builds itself - Anthropic",
"source": "web",
"snippet": "Using public benchmarks and previously unreported data from within Anthropic, The Anthropic Institute is showing that AI is already accelerating the development ...",
"last_updated": "2026-06-10"
},
{
"url": "https://techxplore.com/machine-learning-ai-news/",
"date": "2026-06-08",
"title": "News on Artificial Intelligence and Machine Learning - Tech Xplore",
"source": "web",
"snippet": "MIT researchers channel AI to turn hand gestures into robot training data · OpenAI makes move to go public one week after rival Anthropic · Germany to create AI ...",
"last_updated": "2026-06-09"
},
{
"url": "https://www.energy.gov/topics/artificial-intelligence",
"date": "2026-06-04",
"title": "Artificial Intelligence | Department of Energy",
"source": "web",
"snippet": "Adversarial testing: We are leading the way by developing adversarial testing of AI models and systems, particularly against chemical, biological, radiological, ...",
"last_updated": "2026-06-08"
},
{
"url": "https://www.britannica.com/technology/artificial-intelligence",
"date": "2026-06-10",
"title": "Artificial intelligence (AI) | Definition, Examples, Types, Applications ...",
"source": "web",
"snippet": "Artificial intelligence (AI) is the ability of a digital computer or computer-controlled robot to perform tasks commonly associated with intelligent beings.",
"last_updated": "2026-06-09"
},
{
"url": "https://www.instagram.com/reel/DZPKj_FTr5q/",
"date": "2026-06-06",
"title": "APU's Artificial Intelligence Club (AIC) recently held AI Marathon ...",
"source": "web",
"snippet": "From thought-provoking panel discussions to interactive booths and hands-on workshops, participants explored the latest developments in AI while gaining ..."
}
],
"related_questions": [
"How is Anthropic's Claude Mythos being used in cyber safety",
"What are the implications of AI models potentially escaping human control",
"How does the new AI model Multinex enhance low-light image quality",
"What are the ethical concerns surrounding AI age estimation for asylum seekers",
"How are humanoid robots from China being used in everyday applications"
]
},
"success": true
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"