Overview
Pro Search enhances Sonar Pro with automated tool usage, enabling multi-step reasoning through intelligent tool orchestration including web search, URL content fetching, and Python code execution.Standard Sonar Pro
- Single web search execution
- Fast response synthesis
- Fixed search strategy
- Static result processing
Pro Search for Sonar Pro
- Multi-step reasoning with automated tools
- Dynamic tool execution
- Real-time thought streaming
- Adaptive research strategies
Basic Usage
Enabling Pro Search requires settingstream to true and specifying "search_type": "pro" in your API request. The default search type is "fast" for regular Sonar Pro.
Here is an example of how to enable Pro Search with streaming:
Response
Response
Enabling Automatic Classification
Sonar Pro can be configured to automatically classify queries into Pro Search or Fast Search based on complexity. This is the recommended approach for most applications. Setsearch_type: "auto" to let the system intelligently route queries based on complexity.
How Classification Works
The classifier analyzes your query and automatically routes it to:-
Pro Search for complex queries requiring:
- Multi-step reasoning or calculations
- Comparative analysis across multiple sources
- Real-time data processing or code execution
- Deep research workflows
-
Fast Search for straightforward queries like:
- Simple fact lookups
- Direct information retrieval
- Basic question answering
Billing with Auto Classification
You are billed based on which search type your query triggers:- If classified as Pro Search: $14–$22 per 1,000 requests (based on context size)
- If classified as Fast Search: $5 per 1,000 requests
Manually Specifying the Search Type
If needed, you can manually specify the search type. This is useful for specific use cases where you know the query requires Pro Search capabilities."search_type": "pro"— Manually specify Pro Search for complex queries when you know multi-step tool usage is needed"search_type": "fast"— Manually specify Fast Search for simple queries to optimize speed and cost (this is also the default whensearch_typeis omitted)
Built-in Tool Capabilities
Pro Search provides access to three powerful built-in tools that the model can use automatically:web_search
Conduct targeted web searches with custom queries, filters, and search strategies based on the evolving research context.
fetch_url_content
Retrieve and analyze content from specific URLs to gather detailed information beyond search result snippets.
execute_python
Run Python code for calculations, data analysis, visualizations, and computational tasks to support research findings.
The model automatically decides which tools to use and when, creating dynamic research workflows tailored to each specific query. These are built-in tools that the system calls for you—you cannot register custom tools. Learn more in the Built-in Tool Capabilities guide.
Additional Capabilities
Pro Search also provides access to advanced Sonar Pro features that enhance your development experience:- Context Management: Maintain conversation context across multiple API calls using advanced threading capabilities.
- Stream Mode Guide: Control streaming response formats with concise or full mode for optimized bandwidth usage and enhanced reasoning visibility.
Pricing
Pro Search pricing consists of token usage plus request fees that vary by search type and context size.Token Usage (Same for All Search Types)
Input Tokens$3 per 1M
Output Tokens$15 per 1M
When using
search_type: "auto", you’re billed at the Pro Search rate if your query is classified as complex, or the Fast Search rate if classified as simple. See the full pricing details here.