# Perplexity: Sonar Pro — Use via Hanzo AI API

> Note: Sonar Pro pricing includes Perplexity search pricing. See details here For enterprises seeking more advanced capabilities, the Sonar P... Access via Hanzo&#x27;s OpenAI-compatible API. Context: 200K. Get started free.

[Models](https://hanzo.ai/models)/[Perplexity](https://hanzo.ai/models/perplexity)/sonar-pro

# Perplexity: Sonar Pro

[Perplexity](https://hanzo.ai/models/perplexity)

Note: Sonar Pro pricing includes Perplexity search pricing. See details here For enterprises seeking more advanced capabilities, the Sonar Pro API can handle in-depth, multi-step queries with added extensibility, like...

text

[Get API Key](https://hanzo.ai/signup)[View Docs](https://docs.hanzo.ai)[Try in Chat](https://hanzo.ai/chat)

## Specifications

Context Window

200K

Modalities

text

Input

$3.60 / M tokens

Output

$18.00 / M tokens

Status

available

Category

third-party

Model ID

perplexity/sonar-pro

## Quick Start

TypeScript

```
import OpenAI from &#x27;openai&#x27; const client = new OpenAI({ apiKey: process.env.HANZO_API_KEY, baseURL: &#x27;https://api.hanzo.ai/v1&#x27; }) const response = await client.chat.completions.create({ model: &#x27;perplexity/sonar-pro&#x27;, messages: [{ role: &#x27;user&#x27;, content: &#x27;Hello!&#x27; }] }) console.log(response.choices[0].message.content)
```

Python

```
from openai import OpenAI client = OpenAI( api_key=os.environ["HANZO_API_KEY"], base_url="https://api.hanzo.ai/v1" ) response = client.chat.completions.create( model="perplexity/sonar-pro", messages=[{"role": "user", "content": "Hello!"}] ) print(response.choices[0].message.content)
```

cURL

```
curl https://api.hanzo.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $HANZO_API_KEY" \ -d &#x27;{ "model": "perplexity/sonar-pro", "messages": [{"role": "user", "content": "Hello!"}] }&#x27;
```

Go

```
package main import ( "context" "fmt" "os" "github.com/sashabaranov/go-openai" ) func main() { cfg := openai.DefaultConfig(os.Getenv("HANZO_API_KEY")) cfg.BaseURL = "https://api.hanzo.ai/v1" client := openai.NewClientWithConfig(cfg) resp, _ := client.CreateChatCompletion(context.Background(), openai.ChatCompletionRequest{ Model: "perplexity/sonar-pro", Messages: []openai.ChatCompletionMessage{ {Role: openai.ChatMessageRoleUser, Content: "Hello!"}, }, }, ) fmt.Println(resp.Choices[0].Message.Content) }
```

## More from Perplexity

[Perplexity: Sonar127KSonar is lightweight, affordable, fast, and simple to use — now featuring citations and the ability to customize sources. It is designed for companies seeking to integrate lightweight question-and-answer features...](https://hanzo.ai/models/perplexity/sonar)[Perplexity: Sonar Deep Research128KSonar Deep Research is a research-focused model designed for multi-step retrieval, synthesis, and reasoning across complex topics. It autonomously searches, reads, and evaluates sources, refining its approach as it gathers...](https://hanzo.ai/models/perplexity/sonar-deep-research)[Perplexity: Sonar Pro Search200KExclusively available on the OpenRouter API, Sonar Pro&#x27;s new Pro Search mode is Perplexity&#x27;s most advanced agentic search system. It is designed for deeper reasoning and analysis. Pricing is based...](https://hanzo.ai/models/perplexity/sonar-pro-search)[Perplexity: Sonar Reasoning Pro128KNote: Sonar Pro pricing includes Perplexity search pricing. See details here Sonar Reasoning Pro is a premier reasoning model powered by DeepSeek R1 with Chain of Thought (CoT). Designed for...](https://hanzo.ai/models/perplexity/sonar-reasoning-pro)

[View all Perplexity models →](https://hanzo.ai/models/perplexity)

## Use Perplexity: Sonar Pro via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.

[Get Free API Key](https://hanzo.ai/signup)[Browse All Models](https://hanzo.ai/models)
