AI gateway · Jakarta / global

Route every model request with the decision in view.

One OpenAI-compatible endpoint for policy-aware provider selection, safe fallback, usage metering, and credit control.

REQ_8MZ223:17:04 UTC
  1. policy.check
    scope · balance · capability
  2. route.select
    arsant/fast → provider-a
  3. meter.commit
    usage + price version
01
OpenAI-compatible input
02
Explicit policy check
03
Explainable provider route
04
Idempotent metering

Control plane

Failures become route decisions, not mysteries.

Every eligible and rejected candidate keeps a reason: quota, health, capability, circuit state, or cost.

01
Primary · mock-01
Healthy · capability match
Selected
02
Fallback · openrouter
Ready if first byte times out
Standby
03
Gemini · regional
Rejected: tool capability mismatch
Filtered

Developer flow

A base URL change. Nothing hidden behind it.

export OPENAI_BASE_URL=https://api.example.com/v1
export OPENAI_API_KEY=ar_••••••••

curl $OPENAI_BASE_URL/chat/completions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{"model":"arsant/fast","messages":[...]}'

Start with evidence

Create a key. Send a mock request. Inspect its route.