The Universal Gateway
for Frontier AI

14 frontier models behind a single OpenAI-compatible API. Multi-model failover, native SSE streaming, and transparent per-token metering with zero commitments.

$export OPENAI_BASE_URL="https://router.const.web.id/v1"
Explore Model

OpenAI-compatible • Anthropic Messages spec • Pay per token • Explore the docs →

One API.
A lot less in your way.

Architected specifically for autonomous coding agents, developer tooling, and production workflows that cannot afford dropped connections or unpredictable billing.

Intelligent Routing

Virtual Combos & Automatic Failover

Construct custom multi-model failover chains. If a provider returns 429 rate limits, 503 capacity errors, or latency spikes, Const Router automatically routes to the next healthy model without dropping your client connection.

1. Primary TargetDeepSeek v4.1 Flash
Active / 184ms
2. Failover ChainQwen 3.8 Omni Flash
Ready (Standby)
3. Fallback TierClaude Sonnet 5.5
High-Tier Backup
Unified Access

One Key, All Models

Drop-in replacement for OpenAI and Anthropic SDKs. Keep your codebase, change only the base URL. Every model in the catalog answers to a single const_live_ key.

Python SDKbase_url="https://router.const.web.id/v1"
TypeScript / NodebaseURL: "https://router.const.web.id/v1"
Claude Code CLIANTHROPIC_BASE_URL="https://router.const.web.id"
Cursor / ClineOpenAI Compatible Endpoint
Stream

Zero-Buffering SSE

Direct edge stream passthrough without buffering delays. Exact token usage reports delivered reliably in the stream terminator chunk. Stop the stream, stop paying.

184ms TTFT • Live Passthrough
Guardrails

Keys with Spend Limits

Create unlimited developer keys for team members or autonomous agent loops. Configure individual daily spend caps and allowed model lists to prevent runaway costs.

Daily Spend Caps • Allowlist
Audit

Usage You Can Audit

Every request logged with prompt tokens, completion tokens, latency, and exact micro-cost. Filter by model or time window, inspect raw payload anytime.

Exact Tokens • Zero Estimates

Keep your code.
Change the endpoint.

Connect any tool, SDK, or coding agent in under 60 seconds by pointing the base URL to Const Router.

Standard OpenAI request format. Test connectivity and model inference:bash
export OPENAI_BASE_URL="https://router.const.web.id/v1"
export OPENAI_API_KEY="const_live_xxxxxxxxxxxx"

curl $OPENAI_BASE_URL/chat/completions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4.1-flash",
    "messages": [{"role": "user", "content": "Explain Virtual Combos in 2 sentences."}]
  }'
OpenAI Base URLhttps://router.const.web.id/v1

Universal OpenAI-compatible host for chat completions and transcription.

Anthropic Base URLhttps://router.const.web.id

Direct Anthropic Messages spec passthrough for Claude Code and Anthropic clients.

Telemetry HeaderX-Const-Cost

Exact micro-cost deducted in USD and latency returned in every response header.

Model Catalog & Live Rates

14 frontier models with transparent per-token pricing and instant routing.

Explore full catalog in Dashboard
ModelContext WindowInput / 1M TokensOutput / 1M TokensYou Save
deepseek-v4.1-flashDeepSeek v4.1 Flash
1M$0.0125$0.150cache $0.0125$0.060$0.600Save 91.7%
qwen-3.8-omni-flashQwen 3.8 Omni Flash
1M$0.0125$0.150cache $0.0125$0.055$0.470Save 91.7%
glm-5.3-flashGLM 5.3 Flash
1M$0.0125$0.150cache $0.0125$0.055$0.500Save 91.7%
gemini-3.8-flashGemini 3.8 Flash
1M$0.020$0.750cache $0.020$0.080$3.750Save 97.3%
glm-5.3GLM 5.3
1M$0.035$1.400cache $0.035$0.110$4.400Save 97.5%
minimax-m3.1-flashMiniMax M3.1 Flash
1M$0.035$0.150cache $0.035$0.135$0.600Save 76.7%
qwen-3.8-maxQwen 3.8 Max
1M$0.050$2.000cache $0.050$0.150$6.000Save 97.5%
gpt-6.1-solGPT 6.1 Sol
500K$0.240$2.000cache $0.050$1.200$10.000Save 88.0%
gpt-6-astraGPT 6 Astra
272K$0.450$10.000cache $0.090$2.200$50.000Save 95.5%
claude-haiku-5.5Claude Haiku 5.5
1M$0.020$0.100cache $0.005$0.100$0.500Save 80.0%
claude-sonnet-5.5Claude Sonnet 5.5
1M$0.790$2.000cache $0.150$3.900$10.000Save 60.5%
grok-4.7Grok 4.7
500K$0.140$2.000cache $0.035$0.450$6.000Save 93.0%

Simple, usage-based pricing

Pay strictly for tokens consumed. No subscriptions, no tiers, no recurring card lock-in.

Production Grade
Usage-Based

Engineered for long-running autonomous agent loops, multi-agent workspaces, and high-concurrency coding studios.

  • Automated multi-model Virtual Combos with instant failover
  • SSE streaming with token usage on final frames
  • Per-key daily rate limits & custom model allowlists
  • Response latency & cost headers on every request
  • 7M weekly free token allowance for eligible models
Configure Virtual Combos

What does $1 get you? With deepseek-v4.1-flash, $1 routes over 80,000,000 tokens — enough to analyze an entire large codebase dozens of times.

View Live Rates →

From account to first request

Start calling frontier models in four straightforward steps.

01

Create Account

Sign in with your email or Const account. Nothing else required to explore the catalog.

02

Add Balance

Deposit USDC on Solana or top up with QRIS. Balance drains per token, never per month.

03

Generate a Key

Create a const_live_ key, configure daily spend ceilings and allowed models.

04

Start Calling

Point any OpenAI or Anthropic tool to router.const.web.id/v1.

How your usage is billed

Metering comes directly from upstream provider usage reports, so the number you are charged reflects the exact tokens returned by the model — never a character estimate.

What you get

  • One key for the OpenAI and Anthropic compatible endpoints
  • 14 frontier models across all major families
  • Real-time balance deduction per request down to 0.0001¢
  • Full SSE streaming with token usage on the final frame
  • Per-key daily rate limits and model restrictions
  • Usage dashboard with cost and latency breakdown
How billing worksUnit: USD / 1M
  1. 01

    Deposit USDC on Solana, or top up with QRIS (instant IDR)

  2. 02

    Input and output tokens counted separately at transparent rates

  3. 03

    Cached input tokens billed at up to 90% discount

  4. 04

    cost = ((in − cached) × input_price + cached × input_price × 0.10 + out × output_price) / 1M

  5. 05

    Balance deducted the moment a request settles

  6. 06

    A failed upstream request is never billed

  7. 07

    Empty balance blocks new calls, never overdraws or charges a card

Start calling frontier models in minutes

Create a key, configure your daily ceilings, and connect your favorite coding agent.