Характеристики
- Контекстное окно
- 200,000
- Входящие данные
- Текст, Изображения
- Исходящие данные
- Текст
Цены
Оплата по факту за использованные токены, цены за 1M токенов в рублях.
| Входящие токены | 296.25 ₽ |
| Исходящие токены | 1 481.25 ₽ |
Описание модели
Exclusively available on the OpenRouter API, Sonar Pro's new Pro Search mode is Perplexity's most advanced agentic search system. It is designed for deeper reasoning and analysis. Pricing is based...
API и примеры кода
Единый OpenAI-совместимый endpoint. Укажите base_url и ключ из личного кабинета.
curl https://app.cloudcompute.ru/api/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"perplexity/sonar-pro-search","messages":[{"role":"user","content":"Привет!"}]}'from openai import OpenAI
client = OpenAI(
base_url="https://app.cloudcompute.ru/api/v1",
api_key="YOUR_KEY",
)
resp = client.chat.completions.create(
model="perplexity/sonar-pro-search",
messages=[{"role": "user", "content": "Привет!"}],
)
print(resp.choices[0].message.content)