Navigation
Mobile DocsNavigation
Mobile DocsUse Perplexity AI chat models
Generate completions using Perplexity AI models with real-time knowledge and search capabilities. Create responses, answer questions, and generate content with customizable parameters.
Placeholder: Optional system prompt to guide the model behavior...
Layout: full
Placeholder: Enter your prompt here...
Layout: full
Layout: half
Options: Sonar, Mistral, Claude-3-Opus, Claude-3-Sonnet
Layout: half
Placeholder: Maximum number of tokens
Layout: half
Placeholder: Enter your Perplexity API key
Layout: full
Required
Optional
Required
Optional
Optional
Required
Primary response type:
{
"content": "string",
"model": "string",
"usage": "json"
}