- Model
perplexity/sonar- Provider
vercel-ai-gateway- API
anthropic-messages- Base URL
https://ai-gateway.vercel.sh- Input
- text, image
- Reasoning
- No
- Context window
- 127,000
- Max tokens
- 8,000
- Cost / million input
- $0
- Cost / million output
- $0
- Cost / million cache read
- $0
- Cost / million cache write
- $0
Model config JSON
{
"providers": {
"vercel-ai-gateway": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "perplexity/sonar",
"name": "Sonar",
"reasoning": false,
"input": [
"text",
"image"
],
"contextWindow": 127000,
"maxTokens": 8000,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
}
}
],
"api": "anthropic-messages",
"baseUrl": "https://ai-gateway.vercel.sh"
}
}
}