Seedance 2.0 | Special Offer ✦ 10% OFF NOW | Ends May 13 (UTC+0)
P
perplexity/sonar

perplexity/sonar

127,072 context · $1.00/M input tokens · $1.00/M output tokens

Sonar 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...

Fiyatlandırma

Kullandıkça öde

Ön ödeme yok, yalnızca kullandığınız kadar ödeyin

Giriş$1.00 / M Tokens
Çıkış$1.00 / M Tokens

API Kullanımı

API'mizle entegre etmek için aşağıdaki kod örneklerini kullanın:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

response = client.chat.completions.create(
    model="perplexity/sonar",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

Model Tanıtımı

Perplexity sonar

perplexity sonar


Why It Looks Great

  • Large Language Model architecture for efficient processing
  • 127072 context window for long document handling
  • Competitive pricing at $1.1/$1.1 per million tokens

Key Features

  • Context Window: 127072 tokens
  • Max Output: 4096 tokens
  • Vision: Supported
  • Function Calling: Supported

Specifications

SpecificationValue
ProviderPerplexity
Model TypeLarge Language Model (LLM)
ArchitectureN/A
Context Window127072 tokens
Max Output4096 tokens
InputText
OutputText
VisionSupported
Function CallingSupported

Pricing

Token TypeCost per Million Tokens
Input$1.1
Output$1.1

How to Use

  1. Write your prompt — describe the task, provide context, and specify desired output format.
  2. Submit — the model processes your request and returns the response.

API Integration

Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: perplexity/sonar


API Usage

Python SDK

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

response = client.chat.completions.create(
    model="perplexity/sonar",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

cURL

curl https://llm.wavespeed.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "perplexity/sonar",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

  • Model: perplexity/sonar
  • Provider: Perplexity

Bilgi

Sağlayıcıperplexity
Türllm

Desteklenen İşlevsellik

Giriş
MetinGörsel
Çıkış
Metin
Bağlam127,072
Maks. Çıkış4,096
Vision✓ Destekleniyor
Function Calling-

API Erişim Kılavuzu

Base URLhttps://llm.wavespeed.ai/v1
API Endpointchat/completions
Model IDperplexity/sonar

Sonar API

perplexity/sonar

Sonar 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...

Giriş

$1 /M

Çıkış

$1 /M

Bağlam

127K

Maks. Çıkış

4K

Vision

Destekleniyor

Sonar'i WaveSpeedAI'da deneyin

Birleşik API'miz aracılığıyla Sonar'e erişin — OpenAI uyumlu, soğuk başlatma yok, şeffaf fiyatlandırma.

Sonar hakkında sık sorulan sorular

Sonar API ücreti ne kadar?+

WaveSpeedAI fiyatlandırması: milyon giriş tokenı başına $1.00 ve milyon çıkış tokenı başına $1.00. Prompt caching ve toplu işleme ayrı faturalanır ve uzun, tekrar eden yüklerde etkin maliyeti düşürür.

Sonar'in bağlam penceresi nedir?+

Sonar istek başına 127K bağlam tokenını ve 4K çıkış tokenını destekler.

Sonar OpenAI uyumlu mu?+

Evet. WaveSpeedAI, Sonar modelini https://llm.wavespeed.ai/v1 adresindeki OpenAI uyumlu endpoint üzerinden sunar. Resmi OpenAI SDK'sını WaveSpeedAI API anahtarınızla bu base URL'ye yöneltin — başka kod değişikliği gerekmez.

Sonar'e nasıl başlarım?+

WaveSpeedAI'a giriş yapın, Access Keys'te bir API anahtarı oluşturun, ardından yukarıda gösterilen model id ile https://llm.wavespeed.ai/v1/chat/completions adresine bir istek gönderin. Yeni hesaplar Sonar'i değerlendirmek için ücretsiz krediler alır.

İlgili LLM API'leri