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...
사용량 기반 과금
선결제 없이 사용한 만큼만 지불
다음 코드 예시를 사용해 API와 연동하세요:
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)perplexity sonar
| Specification | Value |
|---|---|
| Provider | Perplexity |
| Model Type | Large Language Model (LLM) |
| Architecture | N/A |
| Context Window | 127072 tokens |
| Max Output | 4096 tokens |
| Input | Text |
| Output | Text |
| Vision | Supported |
| Function Calling | Supported |
| Token Type | Cost per Million Tokens |
|---|---|
| Input | $1.1 |
| Output | $1.1 |
Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: perplexity/sonar
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 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!"}]
}'
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...
입력
$1 /M
출력
$1 /M
컨텍스트
127K
최대 출력
4K
Vision
지원
WaveSpeedAI 가격: 입력 토큰 100만 개당 $1.00, 출력 토큰 100만 개당 $1.00. 프롬프트 캐싱과 배치 처리는 별도로 청구되며 긴 반복 작업에서 실질 비용을 줄여 줍니다.
Sonar은 요청당 최대 127K 컨텍스트 토큰과 최대 4K 출력 토큰을 지원합니다.
네. WaveSpeedAI는 OpenAI 호환 엔드포인트 https://llm.wavespeed.ai/v1을 통해 Sonar을 제공합니다. 공식 OpenAI SDK의 base URL을 이 주소로 변경하고 WaveSpeedAI API 키를 사용하면 코드 변경 없이 사용할 수 있습니다.
WaveSpeedAI에 로그인하고 Access Keys에서 API 키를 만든 다음, 위에 표시된 모델 ID로 https://llm.wavespeed.ai/v1/chat/completions에 요청을 보내세요. 신규 계정은 Sonar을 평가할 수 있는 무료 크레딧을 받습니다.