One OpenAI-compatible endpoint for Claude, GPT, Gemini and more — routed, billed per token in USD, and topped up with redemption codes. No setup tax, just keys that work.
# 1. set your key once export MUSK_API_KEY="sk-musk-..." # 2. call any model through one endpoint curl https://api.muskapis.com/v1/chat/completions \ -H "Authorization: Bearer $MUSK_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5", "messages": [ {"role": "user", "content": "Hello from Dubai!"} ] }' # → streams tokens, billed per token in USD { "model": "claude-sonnet-5", "usage": { ... } }
Switch models by changing a single string. Live per-token pricing and limits live on the pricing page.
Expose one stable API to your product while Musk keeps provider-specific endpoints, credentials and fallbacks behind a single control plane. No scattered SDKs, no scattered keys.
Every call is policy-aware: Musk inspects cost, latency, availability and task type, then picks the best path — and reroutes on failure without your code noticing.
Choose how Musk picks the best path — by cost, latency, availability, task type or context requirements. Failures trigger automatic fallbacks and provider health checks.
A clean OpenAI-compatible surface over a routed, metered backend.
Drop-in for any SDK or client built for OpenAI. Same paths, same shapes, same streaming.
Weighted, retried, auto-disabled channels. Pick the model, we handle failover and load.
Per-token accounting in USD. No subscriptions, no seat fees, no lock-in.
Reload balance instantly with redemption codes — no payment gateway required.
Per-request usage, cost and cache-hit stats visible in your console dashboard.
Token grouping, model restrictions and per-user rate limits out of the box.
You only pay for what models actually consume — billed per token, in USD.
Every model's input, output and cache-hit multiplier is published on the pricing page.
Add balance anytime with redemption codes. No card, no KYC friction to start.
No tiers, no subscriptions. Credit stays yours and is spent only as you call.