Looking for ranked web results instead of a generated answer? Use the Search API at
POST /search. It takes no model parameter and bills per successful request, not per token. Start with the Search API quickstart.Available Models
The Agent API provides a unified interface to models from multiple providers with transparent token-based pricing. Pricing rates are published per model and may differ from provider list prices. All charges are based on actual token consumption, and every API response includes exact token counts so you know your costs per request. The Service tiers column lists optional non-default tiers. An em dash means the model uses default processing only. A rate with a context-length range, such as(≤272k), changes when the input is above that range. A single value applies at every context length.
- Anthropic
- OpenAI
- Google
- xAI
- Z.AI
- DeepSeek
- Moonshot AI
- NVIDIA
- Perplexity
Anthropic
Claude Opus (highest reasoning), Sonnet (balanced), and Haiku (fastest, cheapest).
Claude Fable 5.2 requires non-Zero Data Retention (non-ZDR) model access. Contact api@perplexity.ai to request access.
Service tiers
Omitservice_tier, or set it to auto or default, to use default processing. flex uses lower-cost, best-effort capacity at 0.5× the listed token prices. priority uses higher-priority processing at 2× the listed token prices. fast is accepted as an alias for priority. These multipliers apply only to models that list the tier in the Service tiers column. Other models always bill at the listed rate.
When you provide model or models, the Agent API applies flex or priority only if the selected model—or every model in a fallback list—supports that tier. An unsupported tier does not cause the request to be rejected; the API ignores service_tier and uses default processing. Requests that specify only an effort level or profile retain the tier until the model is resolved. The response’s service_tier field reports the tier that served the request.
Estimate your cost
Using a Model
Response
Response
Model Fallback
For high-availability applications, you can specify multiple models in a fallback chain. When one model fails or is unavailable, the API automatically tries the next model in the chain.Model Fallback Chain
Learn how to use model fallback chains to ensure high availability and reliability by automatically trying multiple models when one fails.
Example:For detailed examples, pricing information, and best practices, see the Model Fallback documentation.
Next Steps
Web Search
Equip your model with web search for source-grounded context.
Prompt Guide
Write prompts that get the most out of the Agent API.
Output Control
Shape responses with structured outputs and JSON schemas.
Finance Search
Query market data, filings, and ticker-level information.