OpenAI-compatible · drop-in
One API. Every model.
Point your existing OpenAI SDK at one base URL and reach every major provider. Routing, fallback and cost metering are handled for you.
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.AISELECTOR_API_KEY,
baseURL: 'https://aiselector.net/api/v1', // ← the only change
});
const res = await client.chat.completions.create({
model: 'auto', // or 'fast' | 'cheap' | 'quality' | 'search'
messages: [{ role: 'user', content: 'Hello' }],
});Change one line. Keep your SDK.
What the router does for you
The parts everyone rebuilds by hand — already built, measured and billed.
Pick the model per call
Send a concrete model id, or an alias like fast, cheap, quality and search — or just auto and let the router choose by cost, quality or latency.
Fallback that keeps its promise
When a provider errors or times out, the call retries and then moves to an equivalent model at another provider. A circuit breaker keeps a failing provider out of rotation.
Every call is metered
Input, output and cached tokens are recorded per call, so usage is a number you can read — not an invoice you reconcile at month end.
Bring your own key
Register your own provider keys and your calls run on them with no markup. Keys are stored encrypted with AES-256-GCM and never returned to the browser.
Models
Prices are per 1M tokens, in USD.
| Model | Provider | Tier | Input | Output | Aliases |
|---|---|---|---|---|---|
claude-opus-4-8 | anthropic | Top | $5.00 | $25.00 | quality |
claude-sonnet-4-6 | anthropic | Standard | $3.00 | $15.00 | balanceddefaultclaude |
claude-haiku-4-5 | anthropic | Light | $1.00 | $5.00 | fast |
gpt-4o | openai | Standard | $2.50 | $10.00 | — |
gpt-4o-mini | openai | Light | $0.15 | $0.60 | cheapchatgpt |
gemini-1.5-pro | gemini | Standard | $1.25 | $5.00 | — |
gemini-1.5-flash | gemini | Light | $0.075 | $0.30 | — |
gemini-3.5-flash | gemini | Light | $1.50 | $9.00 | gemini |
sonar | perplexity | Standard | $1.00 | $1.00 | searchperplexity |
grok-3 | grok | Standard | $3.00 | $15.00 | grok |
deepseek-chat | deepseek | Standard | $0.28 | $1.10 | deepseek |
mistral-large-latest | mistral | Standard | $2.00 | $6.00 | mistral |
anthropic/claude-sonnet-4.6 | openrouter | Standard | $3.00 | $15.00 | — |
google/gemini-3.7-flash | openrouter | Standard | $0.38 | $1.88 | — |
HCX-005 | clova | Standard | $2.50 | $7.00 | clova |
Free community models are available to BYOK customers only — register your own OpenRouter key to use them.