# ai.ml

> ai.ml is one API for every major AI model. Developers keep the OpenAI, Anthropic or Gemini SDK they already use, change the base URL and the key, and reach hundreds of models from every major maker. Each request goes to a healthy host for the model and moves to the next one if a provider fails. Credits are prepaid, every request is charged at the price shown for the model, and the cost comes back on the response.

Key facts:

- API: `https://api.ai.ml/v1`, compatible with the OpenAI Chat Completions and Responses APIs, the Anthropic Messages API and the Gemini API, plus a native API. A request comes back in the format it was sent, with streaming, tool calls and structured output.
- Models are named `vendor/model`, for example `openai/gpt-5-mini` or `anthropic/claude-sonnet-4.6`.
- Failover: when a host fails, the request moves to the next host serving the same model; a failed attempt is not charged.
- Pricing: pay per token at the listed price per million tokens; prepaid credits, no subscription, a tax invoice for every top-up. Team plans add higher limits and included credits.
- Control: per-key budgets and rate limits, model allow and deny lists, regional data residency, zero data retention routing.
- Works with coding tools: Claude Code, Codex, Gemini CLI, Cursor, Cline, Aider, Continue, Open WebUI and more.
- Operated by NeevAI Supercloud Private Limited, India. Support: support@ai.ml.

## Pages

- [Home](https://ai.ml/): what ai.ml does and how it works
- [Models](https://ai.ml/models): every model with its hosts, prices, context window, uptime and latency
- [Compare models](https://ai.ml/models/compare): models side by side
- [Rankings](https://ai.ml/rankings): the most used models, and the fastest, most affordable and longest-context ones
- [Pricing](https://ai.ml/pricing): plans, how paying works, and what popular models cost
- [Status](https://ai.ml/status): live health of the API
- [Migrate from OpenAI](https://ai.ml/migrate/openai), [from Anthropic](https://ai.ml/migrate/anthropic), [from Google](https://ai.ml/migrate/google)
- [About](https://ai.ml/about): who runs ai.ml and what a sign-in shares

## Documentation

- [Documentation](https://docs.ai.ml/docs): quick starts, guides, SDKs and the API reference
- [Documentation for language models](https://docs.ai.ml/llms.txt): every docs page, each also available as Markdown at its address plus .md
- [Quick start with the OpenAI SDK](https://docs.ai.ml/docs/quickstart/openai.md)
- [Quick start with the Anthropic SDK](https://docs.ai.ml/docs/quickstart/anthropic.md)
- [API reference](https://docs.ai.ml/docs/reference/api)

## Models

309 models are available. The most popular, with the lowest price per million tokens across their hosts:

- [Claude Sonnet 5.5](https://ai.ml/models/anthropic/claude-sonnet-5.5) `anthropic/claude-sonnet-5.5`: $2.10 input, $10.50 output per 1M tokens, 1M context
- [GPT-6.1 Sol](https://ai.ml/models/openai/gpt-6.1-sol) `openai/gpt-6.1-sol`: $2.10 input, $10.50 output per 1M tokens, 272K context
- [Claude Opus 5.5](https://ai.ml/models/anthropic/claude-opus-5.5) `anthropic/claude-opus-5.5`: $4.20 input, $21.00 output per 1M tokens, 1M context
- [Gemini 3.8 Flash](https://ai.ml/models/google/gemini-3.8-flash) `google/gemini-3.8-flash`: $0.788 input, $3.94 output per 1M tokens, 1M context
- [DeepSeek V4.1 Flash](https://ai.ml/models/deepseek/deepseek-v4.1-flash) `deepseek/deepseek-v4.1-flash`: $0.300 input, $1.20 output per 1M tokens, 1M context
- [GPT-6 Luna](https://ai.ml/models/openai/gpt-6-luna) `openai/gpt-6-luna`: $0.105 input, $0.525 output per 1M tokens, 272K context
- [GLM-5.3](https://ai.ml/models/zai/glm-5.3) `zai/glm-5.3`: $1.40 input, $4.40 output per 1M tokens, 1M context
- [Kimi K3](https://ai.ml/models/moonshot/kimi-k3) `moonshot/kimi-k3`: $0.704 input, $14.70 output per 1M tokens, 1M context
- [Grok 4.7](https://ai.ml/models/xai/grok-4.7) `xai/grok-4.7`: $2.00 input, $6.00 output per 1M tokens, 500K context
- [GLM-5.3 Flash](https://ai.ml/models/zai/glm-5.3-flash) `zai/glm-5.3-flash`: $0.150 input, $0.500 output per 1M tokens, 1M context
- [MiMo-V2.6-Flash](https://ai.ml/models/xiaomi/mimo-v2.6-flash) `xiaomi/mimo-v2.6-flash`: $0.147 input, $0.294 output per 1M tokens, 1M context
- [Hy4 preview](https://ai.ml/models/tencent/hy4-preview) `tencent/hy4-preview`: $0.876 input, $2.63 output per 1M tokens, 1M context
- [Muse Spark 1.3 Contributor](https://ai.ml/models/meta/muse-spark-1.3-contributor) `meta/muse-spark-1.3-contributor`: $0.105 input, $0.210 output per 1M tokens, 1M context
- [Qwen3.8 Max (0902)](https://ai.ml/models/qwen/qwen3.8-max-0902) `qwen/qwen3.8-max-0902`: $2.10 input, $6.30 output per 1M tokens, 1M context
- [Claude Fable 5.1](https://ai.ml/models/anthropic/claude-fable-5.1) `anthropic/claude-fable-5.1`: $10.50 input, $52.50 output per 1M tokens, 1M context
- [DeepSeek V4 Pro](https://ai.ml/models/deepseek/deepseek-v4-pro) `deepseek/deepseek-v4-pro`: $0.219 input, $0.439 output per 1M tokens, 1M context
- [GPT-5.6 Luna](https://ai.ml/models/openai/gpt-5.6-luna) `openai/gpt-5.6-luna`: $0.210 input, $1.26 output per 1M tokens, 272K context
- [DeepSeek V4 Flash 0423](https://ai.ml/models/deepseek/deepseek-v4-flash) `deepseek/deepseek-v4-flash`: $0.032 input, $1.34 output per 1M tokens, 1M context
- [Hy3](https://ai.ml/models/tencent/hy3) `tencent/hy3`: $0.139 input, $0.554 output per 1M tokens, 262K context
- [MiniMax M3](https://ai.ml/models/minimax/minimax-m3) `minimax/minimax-m3`: $0.300 input, $1.20 output per 1M tokens, 1M context
- [Mistral Large 3 2512](https://ai.ml/models/mistral/mistral-large-2512) `mistral/mistral-large-2512`: $0.525 input, $1.57 output per 1M tokens, 262K context
- [Gemini 3.1 Pro Preview](https://ai.ml/models/google/gemini-3.1-pro-preview) `google/gemini-3.1-pro-preview`: $2.10 input, $12.60 output per 1M tokens, 200K context
- [Llama 4 Maverick](https://ai.ml/models/meta/llama-4-maverick) `meta/llama-4-maverick`: $0.197 input, $0.686 output per 1M tokens, 128K context
- [Claude Haiku 4.5](https://ai.ml/models/anthropic/claude-haiku-4.5) `anthropic/claude-haiku-4.5`: $1.00 input, $5.00 output per 1M tokens, 200K context
- [Aion-2.0](https://ai.ml/models/aion-labs/aion-2.0) `aion-labs/aion-2.0`: $0.840 input, $1.68 output per 1M tokens, 131K context
- [Aion-3.0](https://ai.ml/models/aion-labs/aion-3.0) `aion-labs/aion-3.0`: $3.15 input, $6.30 output per 1M tokens, 131K context
- [Aion-3.0-Mini](https://ai.ml/models/aion-labs/aion-3.0-mini) `aion-labs/aion-3.0-mini`: $0.735 input, $1.47 output per 1M tokens, 131K context
- [Aion 3.5](https://ai.ml/models/aion-labs/aion-3.5) `aion-labs/aion-3.5`: $3.15 input, $6.30 output per 1M tokens, 262K context
- [Aion 3.5 Mini](https://ai.ml/models/aion-labs/aion-3.5-mini) `aion-labs/aion-3.5-mini`: $0.735 input, $1.47 output per 1M tokens, 262K context
- [Aion-RP 1.0 (8B)](https://ai.ml/models/aion-labs/aion-rp-llama-3.1-8b) `aion-labs/aion-rp-llama-3.1-8b`: $0.840 input, $1.68 output per 1M tokens, 33K context
- [Nova 2 Lite](https://ai.ml/models/amazon/nova-2-lite-v1) `amazon/nova-2-lite-v1`: $0.315 input, $2.63 output per 1M tokens, 1M context
- [Nova Lite 1.0](https://ai.ml/models/amazon/nova-lite-v1) `amazon/nova-lite-v1`: $0.063 input, $0.252 output per 1M tokens, 300K context
- [Nova Micro 1.0](https://ai.ml/models/amazon/nova-micro-v1) `amazon/nova-micro-v1`: $0.037 input, $0.147 output per 1M tokens, 128K context
- [Nova Premier 1.0](https://ai.ml/models/amazon/nova-premier-v1) `amazon/nova-premier-v1`: $2.63 input, $13.13 output per 1M tokens, 1M context
- [Nova Pro 1.0](https://ai.ml/models/amazon/nova-pro-v1) `amazon/nova-pro-v1`: $0.840 input, $3.36 output per 1M tokens, 300K context
- [Magnum v4 72B](https://ai.ml/models/anthracite-org/magnum-v4-72b) `anthracite-org/magnum-v4-72b`: $2.63 input, $5.25 output per 1M tokens, 33K context
- [Claude Fable 5](https://ai.ml/models/anthropic/claude-fable-5) `anthropic/claude-fable-5`: $10.50 input, $52.50 output per 1M tokens, 1M context
- [Claude Opus 4.1](https://ai.ml/models/anthropic/claude-opus-4.1) `anthropic/claude-opus-4.1`: $15.75 input, $78.75 output per 1M tokens, 200K context
- [Claude Opus 4.5](https://ai.ml/models/anthropic/claude-opus-4.5) `anthropic/claude-opus-4.5`: $5.25 input, $26.25 output per 1M tokens, 200K context
- [Claude Opus 4.6](https://ai.ml/models/anthropic/claude-opus-4.6) `anthropic/claude-opus-4.6`: $5.25 input, $26.25 output per 1M tokens, 1M context
- [Claude Opus 4.7](https://ai.ml/models/anthropic/claude-opus-4.7) `anthropic/claude-opus-4.7`: $5.25 input, $26.25 output per 1M tokens, 1M context
- [Claude Opus 4.8](https://ai.ml/models/anthropic/claude-opus-4.8) `anthropic/claude-opus-4.8`: $5.25 input, $26.25 output per 1M tokens, 1M context
- [Claude Opus 5](https://ai.ml/models/anthropic/claude-opus-5) `anthropic/claude-opus-5`: $5.25 input, $26.25 output per 1M tokens, 1M context
- [Claude Sonnet 4](https://ai.ml/models/anthropic/claude-sonnet-4) `anthropic/claude-sonnet-4`: $3.15 input, $15.75 output per 1M tokens, 200K context
- [Claude Sonnet 4.5](https://ai.ml/models/anthropic/claude-sonnet-4.5) `anthropic/claude-sonnet-4.5`: $3.15 input, $15.75 output per 1M tokens, 200K context
- [Claude Sonnet 4.6](https://ai.ml/models/anthropic/claude-sonnet-4.6) `anthropic/claude-sonnet-4.6`: $3.00 input, $15.00 output per 1M tokens, 200K context
- [Claude Sonnet 5](https://ai.ml/models/anthropic/claude-sonnet-5) `anthropic/claude-sonnet-5`: $2.10 input, $10.50 output per 1M tokens, 1M context
- [Trinity Large Thinking](https://ai.ml/models/arcee-ai/trinity-large-thinking) `arcee-ai/trinity-large-thinking`: $0.263 input, $0.840 output per 1M tokens, 262K context
- [Seed 2.1 Turbo](https://ai.ml/models/bytedance/seed-2-1-turbo) `bytedance/seed-2-1-turbo`: $0.525 input, $2.63 output per 1M tokens, 262K context
- [Seed 2.0 Lite (Doubao)](https://ai.ml/models/bytedance/seed-2.0-lite) `bytedance/seed-2.0-lite`: $0.250 input, $2.00 output per 1M tokens, 256K context
- [Seed-2.0-Mini](https://ai.ml/models/bytedance/seed-2.0-mini) `bytedance/seed-2.0-mini`: $0.105 input, $0.420 output per 1M tokens, 128K context
- [UI-TARS 7B ](https://ai.ml/models/bytedance/ui-tars-1.5-7b) `bytedance/ui-tars-1.5-7b`: $0.105 input, $0.210 output per 1M tokens, 128K context
- [Uncensored](https://ai.ml/models/cognitivecomputations/dolphin-mistral-24b-venice-edition) `cognitivecomputations/dolphin-mistral-24b-venice-edition`: $0.210 input, $0.945 output per 1M tokens, 128K context
- [Command A](https://ai.ml/models/cohere/command-a) `cohere/command-a`: $2.63 input, $10.50 output per 1M tokens, 256K context
- [Command A+](https://ai.ml/models/cohere/command-a-plus) `cohere/command-a-plus`: $0.315 input, $1.57 output per 1M tokens, 192K context
- [Command R (08-2024)](https://ai.ml/models/cohere/command-r-08-2024) `cohere/command-r-08-2024`: $0.158 input, $0.630 output per 1M tokens, 128K context
- [Command R+ (08-2024)](https://ai.ml/models/cohere/command-r-plus-08-2024) `cohere/command-r-plus-08-2024`: $2.63 input, $10.50 output per 1M tokens, 128K context
- [Command R7B (12-2024)](https://ai.ml/models/cohere/command-r7b-12-2024) `cohere/command-r7b-12-2024`: $0.040 input, $0.158 output per 1M tokens, 128K context
- [DeepSeek V3](https://ai.ml/models/deepseek/deepseek-chat) `deepseek/deepseek-chat`: $0.271 input, $1.08 output per 1M tokens, 128K context
- [DeepSeek V3 0324](https://ai.ml/models/deepseek/deepseek-chat-v3-0324) `deepseek/deepseek-chat-v3-0324`: $0.305 input, $1.20 output per 1M tokens, 128K context

The full list with every host: https://ai.ml/models

## Legal

- [Terms](https://ai.ml/legal/terms)
- [Privacy policy](https://ai.ml/legal/privacy)
- [Data processing agreement](https://ai.ml/legal/dpa)
