Perplexity Sonar Chat Completions (POST /v1/sonar). Generates web-grounded conversational AI responses with citations. Supports multiple Sonar models optimized for different use cases: - sonar: Fast, cost-effective for simple queries - sonar-pro: Enhanced quality for complex que…
stopStop sequence(s) to end generation. Note: the API may not support custom stop words for all models.
modelstringThe Sonar model to use. 'sonar' for fast/cheap queries, 'sonar-pro' for complex queries, 'sonar-reasoning-pro' for chain-of-thought reasoning, 'sonar-deep-research' for exhaustive research (generates very long 10K+ word responses; prefer the async endpoint for this model).
top_pnumberNucleus sampling threshold controlling cumulative probability of tokens.
streambooleanWhether to stream the response using server-sent events.
messagesRequiredarrayA list of messages comprising the conversation. Each message has a role (system, user, assistant, tool) and content. Messages with 'tool' role must alternate with 'assistant' messages. Valid pattern: system -> user -> assistant -> tool -> user.
max_tokensintegerMaximum number of tokens to generate. Max 128000.
search_modestringSearch mode. Options: 'web', 'academic', 'sec'.
stream_modestringStream mode: 'full' (default) or 'concise'.
temperaturenumberControls randomness. 0 is deterministic, up to 2 is more random.
return_imagesbooleanWhether to include images in the response.
disable_searchbooleanWhether to disable web search entirely.
response_formatobjectResponse format configuration.
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
API key connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.