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.

ModelProviderTierInputOutputAliases
claude-opus-4-8anthropicTop$5.00$25.00quality
claude-sonnet-4-6anthropicStandard$3.00$15.00balanceddefaultclaude
claude-haiku-4-5anthropicLight$1.00$5.00fast
gpt-4oopenaiStandard$2.50$10.00
gpt-4o-miniopenaiLight$0.15$0.60cheapchatgpt
gemini-1.5-progeminiStandard$1.25$5.00
gemini-1.5-flashgeminiLight$0.075$0.30
gemini-3.5-flashgeminiLight$1.50$9.00gemini
sonarperplexityStandard$1.00$1.00searchperplexity
grok-3grokStandard$3.00$15.00grok
deepseek-chatdeepseekStandard$0.28$1.10deepseek
mistral-large-latestmistralStandard$2.00$6.00mistral
anthropic/claude-sonnet-4.6openrouterStandard$3.00$15.00
google/gemini-3.7-flashopenrouterStandard$0.38$1.88
HCX-005clovaStandard$2.50$7.00clova

Free community models are available to BYOK customers only — register your own OpenRouter key to use them.