Skip to content
Prepaid creditsEvery price next to a market price

Pay per unit. Not per month.

One OpenAI-compatible endpoint for 86 models from 21 providers.

Every price is shown per unit next to a market price, the maker's official one where we've checked it, with the difference. Change the base URL and the key; the rest of your code stays the same.

https://api.azrouter.dev/v1

Install the CLI. Chat, images and video from a terminal.

azrouter calls the same API with your own key, and every request is billed from your credits the same way as from code.

Install azrouter

curl -fsSL https://azrouter.dev/install.sh | sh
View install script
Then follow the CLI guide
terminal · after the install
  1. # Paste an API key from Dashboard → API keys

    azrouter login
  2. # Ask a text model; the answer prints as it arrives

    azrouter chat "explain TCP slow start in 3 lines"
  3. # Make one image and save it

    azrouter image "a red fox in snow" -o fox.png
  4. # Make one video and save it as an .mp4

    azrouter video "waves rolling onto a beach at sunset"

Models

Claude, GPT, Gemini, Grok and Kimi API models

Each family with the endpoint its SDK calls and its price per 1M tokens, or characters for speech, next to a market price. New models appear as we put them on sale.

Families
9 of 20
Models
86
Protocols
3
  1. Claude

    POST /v1/messages

    From

    $0.79

    / 1M input

    Up to 72% below official

    Claude Opus 5.5, Claude Sonnet 5.5 and Claude Fable 5.1 and 1 more on the Messages API. Set ANTHROPIC_BASE_URL and Claude Code works.

    Claude prices
  2. GPT

    POST /v1/responses

    From

    $0.013

    / 1M input

    Up to 97% below official

    GPT-6.1 Sol, GPT-6 Luna and GPT-6.1 Terra and 2 more on the Responses API, the one Codex CLI calls.

    All 8 GPT models
  3. Gemini

    POST /v1/chat/completions

    From

    $0.018

    / sec

    Up to 90% below official

    Gemini 3.8 Flash, Gemini 4 Argon and Gemini 3.1 Pro Preview and 3 more on Chat Completions, for Cursor and any OpenAI SDK.

    All 18 Gemini models
  1. Grok

    POST /v1/chat/completions

    From

    $0.011

    / image

    Up to 94% below official

    Grok 4.7 on Chat Completions, for Cursor and any OpenAI SDK.

    All 5 Grok models
  2. Kimi

    POST /v1/chat/completions

    From

    $0.16

    / 1M input

    Up to 94% below official

    Kimi K3 and Kimi K3.1 Pro on Chat Completions, for Cursor and any OpenAI SDK.

    Kimi prices
  3. Qwen

    POST /v1/chat/completions

    From

    $0.0271875

    / 1M input

    Up to 77% below official

    Qwen3.8 Flash and Qwen4 Max on Chat Completions, for Cursor and any OpenAI SDK.

    Qwen prices
  1. GLM

    POST /v1/chat/completions

    From

    $0.037

    / 1M input

    Up to 97% below official

    GLM 5.3 and GLM 5.4 on Chat Completions, for Cursor and any OpenAI SDK.

    GLM prices
  2. DeepSeek

    POST /v1/chat/completions

    From

    $0.027

    / 1M input

    Up to 82% below official

    DeepSeek V4.1 Flash 1017 on Chat Completions, for Cursor and any OpenAI SDK.

    DeepSeek prices
  3. MiniMax

    POST /v1/videos

    From

    $0.0275

    / sec

    Up to 85% below official

    MiniMax M3 and MiniMax M3.1 Flash on /v1/videos.

    MiniMax prices

US dollars per 1M input tokens, or per the unit under a card's price. Output and cache rates are on each model page.

All 86 models from 21 providers

Models from 20 makers, on one key. Each one below is on sale today, priced per unit.

  • Payments on Stripe

    Stripe takes each top-up on its own page, with the card, wallet and PromptPay methods it offers. We never see your card number.

  • Served through Cloudflare

    Traffic to the site and the API passes through Cloudflare's network, which delivers and protects it.

  • Prepaid credits

    Add US dollars before you spend them. No subscription: each call debits its own cost from your balance.

  • A log line per request

    Activity lists every call with its model, units and cost, and exports as CSV.

01 / 04

Your client, prompts and tools, unchanged

Point ANTHROPIC_BASE_URL or the OpenAI base_url at our API. Your SDK, prompts and tools stay as they are.

Dashboard

Credits, keys and requests, each with its cost.

After sign-up you top up in US dollars, create keys and see what every call cost. The figures in this window are sample data, priced at the rates on this page.

azrouter.dev/dashboardSample data

Balance

$57.90

Prepaid US dollars. Each request debits its cost.

Add credits

Requests, 7 days

932

Spend, 7 days

$2.18

Daily spend

Recent requests

ModelCost
  • anthropic/claude-opus-5.5$0.004902
  • anthropic/claude-sonnet-5.5$0.000782
  • openai/gpt-6.1-sol$0.006158

Your first request in three steps. Copy it in the language you use; only the base URL and the key are ours.

  1. Add credits

    A new account can't spend until it has credits (the Free tier's cap is $0). Top up in Dashboard → Credits first.

  2. Create a key

    In Dashboard → API keys. It is shown once: export it as AZROUTER_API_KEY.

  3. Send the request

    The same call as OpenAI's, at our base URL. Every text model in the catalog answers on Chat Completions.

The model here is anthropic/claude-opus-5.5; any text model's slug works.

terminal

curl "https://api.azrouter.dev/v1/chat/completions" \
  -H "Authorization: Bearer $AZROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-opus-5.5",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Pricing

Prices per unit, next to market prices

Every billed unit shows AZRouter's price, a market price for the same unit (the maker's official one where we've checked it) and the difference, in US dollars.

Anthropic

USD per unit · market prices checked

  • Claude Opus 5.5

    anthropic/claude-opus-5.5
    Input
    $1.50/M tokOfficial price $4.00−62.5%
    Output
    $5.60/M tokOfficial price $20.00−72%
  • Claude Sonnet 5.5

    anthropic/claude-sonnet-5.5
    Input
    $0.79/M tokOfficial price $2.00−60.5%
    Output
    $3.00/M tokOfficial price $10.00−70%
  • Claude Fable 5.1

    anthropic/claude-fable-5.1
    Input
    $5.99/M tokOfficial price $10.00−40.1%
    Output
    $24.00/M tokOfficial price $50.00−52%
  • Claude Fable 5.2

    anthropic/claude-fable-5.2
    Input
    $4.79/M tokOfficial price $8.00−40.1%
    Output
    $20.00/M tokOfficial price $40.00−50%

Why AZRouter

Change two values. Keep your code.

Every provider in the catalog from the SDK you already use, prices you can check per unit, and credits you top up before you spend them.

An OpenAI-compatible base URL

Point the official OpenAI SDK, or plain curl, at api.azrouter.dev/v1 with an sk-… key. Request and response formats stay OpenAI's.

client = OpenAI(
    base_url="https://api.azrouter.dev/v1",
    api_key=os.environ["AZROUTER_API_KEY"],
)

Every price next to a market price

Every model shows each unit it bills by beside a market price, the maker's official one where we've checked it, with the difference, up or down.

Claude Opus 5.5$1.50/M inOfficial price $4.00−62.5%

Prepaid credits, no subscription

Top up in US dollars. Each request debits its settled cost, rounded to the nearest $0.000002; nothing else is added.

$0.000002metering unit

How rounding works

How your data is used

What you send may be stored and used to train models by AZRouter, the upstream providers that handle it, resellers included, and the model's owner. Keep sensitive personal data out.

Data use

Everything after the first request. What an account comes with, from the dashboard to the bill.

Chat, embeddings and speech on one key

OpenAI's Chat Completions, Responses, Embeddings and Speech, and Anthropic's Messages, which the gateway converts for every text model.

  • POST /v1/chat/completions
  • POST /v1/responses
  • POST /v1/messages
  • POST /v1/embeddings
  • POST /v1/audio/speech

Every request, with its cost

Activity lists each call's model, units and cost, splits input into uncached, cache read and cache write, and exports as CSV. Request history is kept for 62 days.

Keys with their own limits

Up to 25 active keys, each with an optional lifetime spend limit. A key at its limit gets 403 while the others keep working.

A playground in the dashboard

Try a model on your credits before you write code, with the cost under each reply.

Prompt caching at cache prices

Cache reads bill at the model's cache read price, usually a fraction of its input price; cache writes at the cache write price.

Limits that grow with you

Rate limits rise with your usage tier. A refused request gets 429 with a Retry-After header in seconds.

Streaming costs the same

A streamed request bills the same token counts as the same request without streaming.

One key

Claude Code, Codex CLI and Cursor on one API key

Point Claude Code, Codex CLI or Cursor at one base URL with one AZRouter key, check every price per unit and pick a model from the catalog.

~/.claude/settings.json

"ANTHROPIC_BASE_URL": "https://api.azrouter.dev"

Claude Code setup guide

Questions

Before you switch

Short answers from the docs. Each one links to the full section.

What do I change in my code?

Two values: set the base URL to https://api.azrouter.dev/v1 and use an AZRouter key (sk-…). Any OpenAI SDK, or plain curl, keeps working; nothing else in your code changes.

Quickstart
How is a request priced?

Units used × the model's listed price per unit. Each model bills by its own units (input, output, cache read, cache write, image, second, character or request), shown next to a market price for the same unit.

Pricing in the docs
Is AZRouter cheaper?

It depends on the model. Each model has its own markup, and every price shows the difference to its market price, up or down, so you can compare before you call.

Compare prices in the catalog
How does billing work?

AZRouter is prepaid: you top up credits in US dollars and each call debits its cost. Each request's total is rounded to the nearest $0.000002, halves up, and nothing else is added.

Credits and billing
How do I pay?

Stripe processes each payment on its own page, with the card, wallet and PromptPay methods it offers you; we never see your card number. A top-up is at least $5, and credits are added in US dollars.

Terms 4.1, prepaid credits
Does Claude Code work?

Yes, on any paid usage tier. Set ANTHROPIC_BASE_URL to https://api.azrouter.dev (no /v1) and ANTHROPIC_AUTH_TOKEN to your AZRouter key; Claude Code's own model names work.

Claude Code guide
Which APIs can I call?

OpenAI's Chat Completions and Responses for every text model, Anthropic's Messages for every text model (the gateway converts it), and Embeddings and Speech for the models that offer them. GET /v1/models lists the slugs your key can call.

Which route a model uses
Are there rate limits?

Yes. Gateway limits apply per account and rise with your usage tier; every key on the account shares them, concurrent requests included. A refused request gets HTTP 429 with a Retry-After header in seconds.

Rate limits and tiers
What happens to the content I send?

What you send may be stored and used to train models by AZRouter, the upstream providers that handle it, resellers included, and the model's owner. Keep sensitive personal data out of requests.

Data use

Know the price before the call.

Create an account, add credits and call any model in the catalog from the SDK you already use.