perplexity_ask_pro
Generate detailed, structured responses for search, research, and reasoning tasks using 2025 Perplexity models, with options for citations, advanced parameters, and domain-specific filtering.
Instructions
Ultra-Pro Perplexity API with CORRECT 2025 models, full structured responses, caching, and advanced features. Supports search, research, reasoning, and offline models with proper parameters.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
format | No | Response format type | full |
messages | Yes | Array of conversation messages | |
model | No | Perplexity model to use (2025 correct models only) | sonar-pro |
options | No | Advanced options for the API call |
Input Schema (JSON Schema)
{
"properties": {
"format": {
"default": "full",
"description": "Response format type",
"enum": [
"simple",
"with-citations",
"structured",
"full"
],
"type": "string"
},
"messages": {
"description": "Array of conversation messages",
"items": {
"properties": {
"content": {
"description": "Message content",
"type": "string"
},
"role": {
"description": "Message role (system, user, assistant)",
"type": "string"
}
},
"required": [
"role",
"content"
],
"type": "object"
},
"type": "array"
},
"model": {
"default": "sonar-pro",
"description": "Perplexity model to use (2025 correct models only)",
"enum": [
"sonar-pro",
"sonar",
"sonar-deep-research",
"sonar-reasoning-pro",
"sonar-reasoning",
"r1-1776"
],
"type": "string"
},
"options": {
"description": "Advanced options for the API call",
"properties": {
"maxTokens": {
"default": 2000,
"description": "Maximum tokens (1-8000)",
"type": "number"
},
"reasoningEffort": {
"default": "medium",
"description": "Reasoning effort for reasoning models",
"enum": [
"low",
"medium",
"high"
],
"type": "string"
},
"returnImages": {
"default": false,
"type": "boolean"
},
"returnRelatedQuestions": {
"default": false,
"type": "boolean"
},
"searchAfterDate": {
"description": "Search after date (MM/DD/YYYY)",
"type": "string"
},
"searchBeforeDate": {
"description": "Search before date (MM/DD/YYYY)",
"type": "string"
},
"searchDomains": {
"description": "Filter search to specific domains (max 10)",
"items": {
"type": "string"
},
"type": "array"
},
"searchMode": {
"default": "web",
"description": "Search mode - 'academic' prioritizes scholarly sources",
"enum": [
"web",
"academic"
],
"type": "string"
},
"searchRecency": {
"description": "Filter by time (e.g., 'week', 'day')",
"type": "string"
},
"temperature": {
"default": 0.2,
"description": "Randomness (0-2)",
"type": "number"
},
"topK": {
"default": 0,
"description": "Top-k filtering (0 = disabled)",
"type": "number"
},
"topP": {
"default": 0.9,
"description": "Nucleus sampling (0-1)",
"type": "number"
}
},
"type": "object"
}
},
"required": [
"messages"
],
"type": "object"
}