Skip to content

Sonar

Per 1M tokens
$1.05 · $1.05
Context
127Ktokens
Supports
  • Reads images
opencode.json
{
  "provider": {
    "deference": {
      "npm": "@ai-sdk/openai-compatible",
      "options": { "baseURL": "https://deference.si/v1", "apiKey": "{env:DEFERENCE_API_KEY}" },
      "models": { "perplexity/sonar": { "limit": { "context": 127072, "output": 114364 } } }
    }
  }
}
Needs an API keyGet one

Pricing and limits

  • Max output114,364tokens

OpenRouter's price plus OpenRouter's 5% platform fee. Deference adds no markup.