One endpoint, zero model decisions.
Routes across Google, OpenAI, Anthropic, xAI / Grok, and AWS Bedrock — picks the best model for your request,
handles failover transparently, and adapts as models improve or fail.
$ curl https://api.lxg2it.com/v1/chat/completions \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "standard",
"prefer": "cheap",
"messages": [{"role": "user", "content": "Hello"}]
}'
Provider APIs are chaos — models launch and deprecate, quotas exhaust, latency spikes, prices shift. You don't need a model catalog. You need requests that just complete, reliably, at the right capability level. We handle the routing, failover, and cost optimisation. Your code stays the same through all of it.
You can also pass a specific model name
(gpt-4.1,
claude-sonnet-4-6)
to pin routing and bypass tier selection entirely.
Context-window guard: never routes to a model that can't handle your input. Circuit breakers reroute around provider outages automatically.
See the full tier × prefer routing grid →
Circuit breakers detect provider outages and reroute requests in real time. Context-window guards ensure requests never go to a model that can't handle them. Your code doesn't change — routing adapts automatically.
Set model: "auto" and the router analyses your full conversation context —
system prompt, code blocks, message history, tool use, reasoning markers — and picks the right tier automatically.
No heuristics on individual messages; it reads the whole picture.
Every auto-routed response includes X-Model-Router-Auto-Tier and X-Model-Router-Auto-Score
headers so you can see exactly why a tier was chosen.
How it works →
Block providers you don't want to fund. Set daily spend limits. Enable auto-recharge so you never hit a wall mid-project. Export request traces to any OTLP backend — Axiom, Grafana, Honeycomb, Datadog.
Every new account starts with $1 in credits — enough for millions of tokens on economy models like GPT-4.1 Mini and Gemini 2.5 Flash. Add a payment method when you need more.
A 4% fee (minimum $0.80) on credit deposits. Requests are billed at actual provider market rates —
you pay what the model costs, nothing more.
Every response includes X-Model-Router-Model and X-Model-Router-Provider
headers so you always know exactly what ran and what it cost.
Same key, same endpoint pattern. embed-small, embed-large,
and embed-titan aliases route to the best available embedding model.
Batch inputs, optional dimension truncation, billed at input tokens only.
https://api.lxg2it.com