This page shows pricing information to help you understand API costs.For billing setup, payment methods, and usage monitoring, visit the Admin section. For rate limits, see the Rate Limits & Usage Tiers page.
Estimate your cost
Agent API Pricing
The Agent API provides access to third-party models from providers including OpenAI, Anthropic, Google, xAI, Z.AI, Moonshot AI, and NVIDIA with transparent, token-based pricing at direct provider rates with no markup.Model Pricing
Agent API pricing varies by provider and model, with each provider offering multiple models at different price points.View Complete Third-Party Model Pricing
See the full pricing breakdown for all available models from OpenAI, Anthropic, Google, xAI, Z.AI, Moonshot AI, and NVIDIA, including cache rates and provider documentation links on the Agent API Models page.
Tool Pricing
When using tools with the Agent API:Most tool costs are per invocation.
sandbox is billed per container session — a 20-minute billing window per container, not a runtime cap — plus per SDK search query made from inside it. Tool costs are separate from model token costs.Search API Pricing
No token costs: Search API charges per request only, with no additional token-based pricing.
Sonar API Pricing
Total cost per query = Token costs + Request fee (varies by search context size, applies to Sonar, Sonar Pro, and Sonar Reasoning Pro models only)
- Token Pricing
- Request Pricing
- Pro Search Pricing
Embeddings API Pricing
Generate high-quality text embeddings for semantic search, retrieval-augmented generation (RAG), and other machine learning applications.Standard Embeddings
Contextualized Embeddings
View Embeddings API Documentation
Learn how to use the Embeddings API for semantic search, RAG, and more.
Token and Cost Glossary
Token and Cost Glossary
Input Tokens
The number of tokens in your prompt or message to the API. This includes:- Your question or instruction
- Any context or examples you provide
- System messages and formatting
Output Tokens
The number of tokens in the API’s response. This includes:- The generated answer or content
- Any explanations or additional context
- Search results and references
Citation Tokens
Tokens used specifically for generating search results and references in responses. Only applies to Sonar Deep Research model.Example: Including source links, reference numbers, and bibliographic informationSearch Context Size vs Context Window
Search context size is not the same as the context window.- Search context size: How much web information is retrieved during search (affects request pricing)
- Context window: Maximum tokens the model can process in one request (affects token limits)
Search Queries
The number of individual searches conducted by Sonar Deep Research during query processing. This is separate from your initial user query.- The model automatically determines how many searches are needed
- You cannot control the exact number of search queries
- The
reasoning_effortparameter influences the number of searches performed - Only applies to Sonar Deep Research model
Reasoning Tokens
Tokens used for step-by-step logical reasoning and problem-solving. Only applies to Sonar Deep Research model.Example: Breaking down a complex math problem into sequential steps with explanationsToken Calculation: 1 token ≈ 4 characters in English text. The exact count may vary based on language and content complexity.
Cost Examples
Sonar Web Search Example
Sonar • 500 input + 200 output tokens
- Low
- Medium
- High
Deep Research Example
Sonar Deep Research
- Low
- Medium
- High
Purchase Options
Perplexity API Platform on AWS Marketplace
Purchase API credits through AWS Marketplace with consolidated billing and enterprise procurement.
Contact Sales Team
Fill out our enterprise inquiry form to discuss custom pricing, dedicated support, and enterprise features for teams and organizations.