{"id":"perplexity-sonar","object":"model","created":1735689600,"owned_by":"perplexity","display_name":"Perplexity Sonar","author":"perplexity","author_name":"Perplexity","author_logo":"https://media.empiriolabs.ai/provider-logos/perplexity.png","provider":"perplexity","provider_name":"Perplexity","provider_logo":"https://media.empiriolabs.ai/provider-logos/perplexity.png","description":"Real-time web-connected search with accurate citations and customizable sources for up-to-date AI search integration in production apps.","aliases":["perplexity/sonar"],"modality":"text","type":"search","category":"research","category_label":null,"modality_label":null,"modalities":["text","image","document"],"input_modalities":["text","image","document"],"output_modalities":["text"],"features":["web_search"],"structured_output":null,"native_inference":false,"weight_precision":null,"hugging_face_id":null,"hugging_face_revision":null,"license_credit":null,"batch_supported":null,"batch_discount_pct":null,"context_window":919327,"context_length":919327,"max_output_tokens":null,"model_released_at":null,"is_new":false,"is_featured":false,"discount":null,"capabilities":{"streaming":true,"system_prompt":true,"web_search":true,"images":true,"audio":false,"video":false,"three_d":false,"reasoning":true},"supported_parameters":[{"name":"max_tokens","label":"Max Tokens","type":"number","description":"Maximum tokens in the response, at least 16. When omitted, the model's own default applies.","required":false,"metadata":{},"min":16,"max":32768},{"name":"search_context_size","label":"Search Context Size","type":"enum","description":"Higher context gives better answers but increases the base fee per request.","required":false,"metadata":{},"default":"medium","options":["low","medium","high"]},{"name":"search_mode","label":"Search Mode","type":"enum","description":"Filter search results by source type. Academic limits search to scholarly publishers. SEC adds financial filings and company data.","required":false,"metadata":{},"default":"default","options":["default","academic","sec"]},{"name":"search_domain_filter","label":"Search Domain Filter","type":"string","description":"Comma-separated domains. Prefix with '-' to exclude. Max 200.","required":false,"metadata":{}},{"name":"max_results","label":"Max Search Results","type":"number","description":"Most results each web search returns. More results give more sources to draw on.","required":false,"metadata":{},"default":10,"min":1,"max":50},{"name":"search_after_date","label":"Search After Date","type":"string","description":"Only include sources published after this date. Use MM/DD/YYYY or YYYY-MM-DD.","required":false,"metadata":{}},{"name":"search_before_date","label":"Search Before Date","type":"string","description":"Only include sources published before this date. Use MM/DD/YYYY or YYYY-MM-DD.","required":false,"metadata":{}},{"name":"search_recency_filter","label":"Search Recency Filter","type":"enum","description":"Relative time filter. Cannot be combined with specific dates.","required":false,"metadata":{},"default":"none","options":["none","hour","day","week","month","year"]},{"name":"last_updated_after_filter","label":"Last Updated After Filter","type":"string","description":"Only include sources last updated after this date. Use MM/DD/YYYY or YYYY-MM-DD.","required":false,"metadata":{}},{"name":"last_updated_before_filter","label":"Last Updated Before Filter","type":"string","description":"Only include sources last updated before this date. Use MM/DD/YYYY or YYYY-MM-DD.","required":false,"metadata":{}},{"name":"country","label":"Country","type":"string","description":"Two-letter ISO 3166-1 code (e.g. US, GB) for biasing results to a country.","required":false,"metadata":{}},{"name":"region","label":"Region","type":"string","description":"State or province name for location bias.","required":false,"metadata":{}},{"name":"city","label":"City","type":"string","description":"City name for location bias.","required":false,"metadata":{}},{"name":"latitude","label":"Latitude","type":"number","description":"Latitude for location bias, in decimal degrees.","required":false,"metadata":{}},{"name":"longitude","label":"Longitude","type":"number","description":"Longitude for location bias, in decimal degrees.","required":false,"metadata":{}},{"name":"disable_formatting","label":"Disable Formatting","type":"boolean","description":"Return the answer without EmpirioLabs formatting: citations stay as plain [N] markers, and no References, Images or Videos block is added. search_results and citations are still returned.","required":false,"metadata":{},"default":false}],"supported_endpoints":["POST /v1/chat/completions","POST /v1/responses","POST /v1/messages","POST /v1/search","POST /v1beta/models/perplexity-sonar:generateContent"],"pricing":{"prompt":"0.0000024","completion":"0.0000024","image":"0","request":"0.012","input_cache_read":"0.0000024"},"pricing_rows":[{"spec":"per 1M prompt tokens","label":"Input","value":"$2.40"},{"spec":"per 1M generated tokens","label":"Output","value":"$2.40"},{"spec":"per request","label":"Base Fee (Low Context)","value":"$0.012"},{"spec":"per request","label":"Base Fee (Medium Context)","value":"$0.019"},{"spec":"per request","label":"Base Fee (High Context)","value":"$0.029"}],"unit_pricing":[{"unit":"1m_tokens","usd":"2.4","label":"Input"},{"unit":"1m_tokens","usd":"2.4","label":"Output"},{"unit":"request","usd":"0.012","label":"Base Fee (Low Context)"},{"unit":"request","usd":"0.019","label":"Base Fee (Medium Context)"},{"unit":"request","usd":"0.029","label":"Base Fee (High Context)"}],"limits":{},"notes":null,"chat_url":"https://platform.empiriolabs.ai/dashboard/playground?model=perplexity-sonar","api_url":"https://docs.empiriolabs.ai/models/perplexity-sonar","logo":"https://media.empiriolabs.ai/model-logos/perplexity-sonar.png","default_params":{"search_context_size":"medium","search_mode":"default","max_results":10,"search_recency_filter":"none","disable_formatting":false},"status":"available"}