← All models

sonar

Run sonar through Flow AI's OpenAI-compatible API. We route to the cheapest provider hosting it and fail over automatically — you pay the live clearing price plus 2.5%.

Input $/M
$1.00
Output $/M
$1.00

Use it

python
from openai import OpenAI
client = OpenAI(base_url="https://api.flowaiapi.com/v1", api_key="fa-...")
r = client.chat.completions.create(
    model="sonar",          # or "auto" to let Flow AI pick the cheapest capable model
    messages=[{"role": "user", "content": "..."}],
)

How Flow AI makes sonar cheaper

Flow AI runs an open market for inference: it clears each request at the lowest price across every provider hosting sonar — direct APIs, inference providers, flat-rate subscriptions, and self-hosted nodes — and bills you the true (prompt-cache-aware) cost plus a flat 2.5%. The published rate is always the ceiling. See the docs or all models.

Similar models on Flow AI

or:openai/gpt-5.6-terra-pro:batch · or:~anthropic/claude-haiku-latest · or:openai/gpt-5.6-terra:batch · or:relace/relace-search · or:x-ai/grok-4.3:batch

sonar API — the cheapest way to run sonar | Flow AI