Sonar

Perplexity chatvision

API ID: perplexity/sonar

Input Price
$1.00
/1M tokens
Output Price
$1.00
/1M tokens

About 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 optimized for speed.

๐Ÿ’ฐ
Price Ranking
#926 lowest price among 1240 Chat models

Model Specifications

Context Length
127k
Max Output
โ€”
Release Date
2025-01-27
Capabilities
chat vision
Input Modalities
textimage
Output Modalities
text

Best For

  • Image analysis, document understanding, visual Q&A
  • Conversations, content writing, general assistance

๐Ÿ’ฐ Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$0.75
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$24.00
/month
1000 tickets/day, ~800 tokens each

Perplexity Model Lineup

Compare all models from Perplexity to find the best fit

Model Input Output Context Capabilities
Sonar Current Free Free 127k chat vision
Llama3 Sonar 70B Online Free Free 28k chat
Llama3 Sonar 70B Online Free Free 28k chat
Llama3 Sonar 8B Online Free Free 28k chat
Llama3 Sonar 8B Online Free Free 28k chat
Llama3 Sonar 8B Free Free 33k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Morph Morph V3 Fast
Input: $0.80
Output: $1.20
Context: 82k
Other Llemma 7b
Input: $0.80
Output: $1.20
Context: 4k
Other CodeLLaMa 7B Instruct Solidity
Input: $0.80
Output: $1.20
Context: 4k
OpenAI GPT-3.5 Turbo
Input: $0.50
Output: $1.50
Context: 16k

๐Ÿš€ Quick Start

Get started with Sonar API

OpenAI-compatible SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.provider.com/v1",
    api_key="YOUR_API_KEY"
)

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