Skip to main content
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.

Agent API Pricing

The Agent API provides access to third-party models from OpenAI, Anthropic, Google, and xAI 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, and xAI, including cache rates and provider documentation links on the Agent API Models page.

Tool Pricing

When using web search tools with the Agent API:
Tool costs are separate from model token costs. If a model makes 3 web searches during a request, you pay model tokens + (3 Γ— $0.005) for searches.

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

Token pricing is based on the number of tokens in your request and response.

Browser API Pricing

The Browser API charges based on compute time usage.
Usage Calculation: Billing is calculated based on the total time your browser session is active, rounded up to the nearest minute. For example, a session running for 1 minute and 15 seconds will be billed for 2 minutes ($0.0083).

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.

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
Example: β€œWhat is the weather in New York?” = ~8 input tokens

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
Example: β€œThe weather in New York is currently sunny with a temperature of 72Β°F.” = ~15 output tokens

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 information

Search 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_effort parameter 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 explanations
Token Calculation: 1 token β‰ˆ 4 characters in English text. The exact count may vary based on language and content complexity.

Contact Sales

Get in touch with our team to discuss enterprise pricing and custom requirements.

Cost Examples

Sonar Web Search Example

Sonar β€’ 500 input + 200 output tokens

Deep Research Example

Sonar Deep Research