Perplexity AI
Web-grounded conversational AI, search, embeddings, and agent APIs powered by Perplexity's Sonar models.

Create Async Chat Completion
Submit a long-running deep-research chat completion. Returns an ID to poll with Get Async Chat Completion.
Create Chat Completion
Generate a web-grounded chat completion using a Sonar model, with citations, optional structured output, and search filtering.
Create Contextualized Embeddings
Generate context-aware vector embeddings for chunks of a document, improving retrieval quality over independent per-chunk embeddings.
Create Embeddings
Generate vector embeddings for independent texts (queries, sentences, documents) using Perplexity's embedding models.
Execute Agent
Run a multi-step agent with built-in tools (web search, URL fetching, function calling), reasoning, and multi-model fallbacks.
Get Async Chat Completion
Retrieve the status and result of an async chat completion job by ID.