---
title: Perplexity: Sonar Pro API | Text Generation | ModelsLab
description: Build with Perplexity: Sonar Pro API by Perplexity. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/perplexity/perplexity-sonar-pro/api.md
canonical: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/perplexity/perplexity-sonar-pro/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-05-13T10:33:51.858095Z
---

Perplexity: Sonar Pro
---

 [LLMs.txt](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/perplexity-sonar-pro/llms.txt) [.md](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/perplexity/perplexity-sonar-pro.md)

perplexity-sonar-pro perplexity Closed Source Model $9.000000 / call

Perplexity: Sonar Pro
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Perplexity: Sonar Pro

perplexity perplexity-sonar-pro

Copy model ID

PricingInput $3.00 / 1M tokens

Output $15.00 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster)

[CV](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/deepcogito-cogito-v2-1-671b)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Cogito v2.1 671B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/deepcogito-cogito-v2-1-671b)

[OO](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-o3-mini-high)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: o3 Mini High

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-o3-mini-high)

[XM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/xiaomi-mimo-v2-flash)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Xiaomi: MiMo-V2-Flash

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/xiaomi-mimo-v2-flash)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-mistral-large-2407)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Mistral Large 2407

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-mistral-large-2407)

[MS](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/mistralai-Mistral-Small-24B-Instruct-2501)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Mistral Small (24B) Instruct 25.01

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/mistralai-Mistral-Small-24B-Instruct-2501)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-llama-3-70b-instruct)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Meta: Llama 3 70B Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-llama-3-70b-instruct)

[![Meta: Llama 3 8B Instruct](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/07cb8c22-a068-40f8-a2e8-57d8b2371261.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-llama-3-8b-instruct)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Meta: Llama 3 8B Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-llama-3-8b-instruct)

[G4](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/zai-org-GLM-4.6)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [GLM 4.6 Fp8

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/zai-org-GLM-4.6)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-oss-safeguard-20b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: gpt-oss-safeguard-20b

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-oss-safeguard-20b)

[Q7](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen2.5-72B-Instruct)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen2.5 72B Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen2.5-72B-Instruct)

[AN](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/amazon-nova-pro-v1)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Amazon: Nova Pro 1.0

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/amazon-nova-pro-v1)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-235b-a22b-thinking-2507)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3 235B A22B Thinking 2507

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-235b-a22b-thinking-2507)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-3.1-405B-Instruct)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Meta Llama 3.1 405B Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-3.1-405B-Instruct)

[NN](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/nvidia-nemotron-3-nano-omni-30b-a3b-reasoning-free)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [NVIDIA: Nemotron 3 Nano Omni (free)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/nvidia-nemotron-3-nano-omni-30b-a3b-reasoning-free)

[AA](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/arcee_ai/arcee_ai-arcee-spotlight)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/arcee_ai)

 [Arcee AI Spotlight

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/arcee_ai/arcee_ai-arcee-spotlight)

[NH](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/nous_research/NousResearch-Nous-Hermes-2-Mixtral-8x7B-DPO)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/nous_research)

 [Nous Hermes 2 Mixtral 8X7B Dpo

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/nous_research/NousResearch-Nous-Hermes-2-Mixtral-8x7B-DPO)

[G3](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/google-gemma-3-1b-it)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Gemma 3 1b it

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/google-gemma-3-1b-it)

[GG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemini-2.5-pro-preview-05-06)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Google: Gemini 2.5 Pro Preview 05-06

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemini-2.5-pro-preview-05-06)

About Perplexity: Sonar Pro
---

Note: Sonar Pro pricing includes Perplexity search pricing. See \[details here\](https://docs.perplexity.ai/guides/pricingdetailed-pricing-breakdown-for-sonar-reasoning-pro-and-sonar-pro) For enterprises seeking more advanced capabilities, the Sonar Pro API can handle in-depth, multi-step queries with added extensibility, like...

### Technical Specifications

Model IDperplexity-sonar-proCategoryLLM ModelsTaskText GenerationPrice$9.000000 per million tokensAddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Perplexity: Sonar Pro into your application with a single API call. Get your API key from the [pricing page](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "perplexity-sonar-pro",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/perplexity/perplexity-sonar-pro/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Perplexity: Sonar Pro API costs $9.000000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster) [More from Perplexity](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router) [View Pricing](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing)

Perplexity: Sonar Pro FAQ
---

### What is Perplexity: Sonar Pro?

Note: Sonar Pro pricing includes Perplexity search pricing. See \[details here\](https://docs.perplexity.ai/guides/pricing#detailed-pricing-breakdown-for-sonar-reasoning-pro-and-sonar-pro) For enterprises seeking more advanced capabilities, the Sonar Pro API can handle in-depth, multi-step queries wit

### How do I use the Perplexity: Sonar Pro API?

You can integrate Perplexity: Sonar Pro into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "perplexity-sonar-pro" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Perplexity: Sonar Pro cost?

Perplexity: Sonar Pro costs $9.000000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Perplexity: Sonar Pro model ID?

The model ID for Perplexity: Sonar Pro is "perplexity-sonar-pro". Use this ID in your API requests to specify this model.

### Does Perplexity: Sonar Pro have a free tier?

Yes, ModelsLab offers a free tier that lets you try Perplexity: Sonar Pro and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-05-13*