Every model. One endpoint.

Keep the OpenAI, Anthropic or Gemini SDK you already use and change the base URL. ai.ml sends each request to the best host for the model, moves it on when a host fails, and meters it to the token.

309
models
48
model makers
5
API formats
  • OpenAI
  • Qwen
  • Mistral AI
  • Google
  • Anthropic
  • DeepSeek
  • Z.ai
  • Meta
  • MiniMax
  • Moonshot AI
  • xAI
  • Tencent
  • Aion Labs
  • Xiaomi
  • Amazon
  • Cohere
  • NVIDIA
  • Perplexity
  • ByteDance
  • Sakana AI
  • inclusionAI
  • Nous Research
  • Sao10k
  • Thedrummer

Keep your SDK. Change one line.

ai.ml speaks the OpenAI, Anthropic and Gemini APIs, plus the OpenAI Responses API and its own. A request comes back in the format it was sent, whichever provider answered, streaming, tool calls and structured output included.

  • Streaming in the format your SDK expects
  • Tool calls and structured output on every host
  • Embeddings, speech and batch jobs on the same key
Read the quick start
from openai import OpenAI

client = OpenAI(
    base_url="https://api.openai.com/v1",
    base_url="https://api.ai.ml/v1",
    api_key="sk-aiml-…",
)

reply = client.chat.completions.create(
    model="anthropic/claude-sonnet-5.5",
    messages=[{"role": "user", "content": "Hello"}],
)

Stay up when a provider goes down

Failover is on by default. When a host times out or refuses, the request moves to the next host that serves the same model, before your user sees an error. You pay for the answer you got, never for the attempt that failed.

  • Hosts ranked by price, speed or uptime, your choice
  • Keep traffic in one region, or pin one host
  • Every response says which host served it and how long it took
Compare hosts for a model
anthropic/claude-sonnet-5.5Example
Host ASingaporestanding by
Host BUnited Statesstanding by
Host CEuropestanding by
Charged for1 answer, 0 failed attempts

Spend, keys and usage in one place

Prepaid credits, with no subscription. Give each key, project, team or person a daily and monthly budget, get an alert before it runs out, and stop at the cap. Usage, requests and invoices are in the console for the whole team.

  • Budgets per key, project, team and member
  • Rate limits and alerts before money runs out
  • A tax invoice for every top-up
See pricing
Production keyExample
Monthly budget$312 / $500
Alert at 80%Stops at 100%
Anthropic46%
OpenAI28%
DeepSeek17%
Google9%

Your data, your rules

Choose which providers may see your prompts, whether anything is kept, and where requests are processed. The rules are enforced on every request, whatever model it names.

  • Zero data retention
  • Single sign-on and SCIM
  • Region-locked routing
  • Audit log
  • Approvals for changes
  • Signed webhooks
Data policyExample
Zero data retention
Allow training on prompts
Processing regionAnyIndiaEUUS
Allowed makers

Bring your own provider keys

Already have an account with a provider? Add its key and requests to it go through your account, with ai.ml's routing, logs and budgets on top. About thirty providers, plus any OpenAI-compatible server.

How it works
  • Anthropic
  • OpenAI
  • Google
  • Azure OpenAI
  • Amazon Bedrock
  • Google Vertex AI
  • Groq
  • Together AI
  • Fireworks
  • DeepInfra
  • Mistral AI
  • Cohere
  • Perplexity
  • Cerebras
  • SambaNova
  • Hyperbolic
  • Nebius
  • Novita AI
  • NVIDIA
  • Hugging Face
  • Moonshot AI
  • MiniMax
  • Z.ai
  • Alibaba
  • DeepSeek
  • xAI
  • Cloudflare
  • OpenCode Zen
  • LiteLLM

Your coding tools, on every model

One command points Claude Code, Codex, Gemini CLI and OpenClaw at ai.ml, checks the key first, and can undo itself.

npx @aiml/cli setup
  • Claude Code
  • Codex
  • Gemini CLI
  • OpenClaw
  • Cursor
  • Cline

Start with one key

Create an account with your e-mail address, confirm it from the mail we send, and set up your organization.