Skip to content
AI API gateway

One API key for every AI model.

Call GPT, Claude, Gemini, DeepSeek, Seedance, Veo, Kling, Suno and 250+ more through one OpenAI-compatible endpoint. Pay as you go — usually below official list prices, billed only when a request succeeds.

Get your API key Browse models
models
250+
models
model developers
24
model developers
avg. below list price
~15%
avg. below list price
minimum top-up
$50
minimum top-up
AlibabaAnthropicDeepSeekGoogleMiniMaxMoonshot AIOpenAIStepFunZhipu AIxAIBlack Forest LabsByteDanceKuaishouMicrosoftMidjourneyMuseTencentOpenrouter APIPixVerseSand AIShengshuSkyworkFlow MusicSunoAlibabaAnthropicDeepSeekGoogleMiniMaxMoonshot AIOpenAIStepFunZhipu AIxAIBlack Forest LabsByteDanceKuaishouMicrosoftMidjourneyMuseTencentOpenrouter APIPixVerseSand AIShengshuSkyworkFlow MusicSuno
from openai import OpenAI

client = OpenAI(
    base_url="https://openrouterapi.ru/v1",
    api_key="YOUR_OPENROUTERAPI_API_KEY",
)

resp = client.chat.completions.create(
    model="claude-opus-5-5",  # or gpt-6.2-sol, gemini-4-neon, deepseek-v4.1-flash…
    messages=[{"role": "user", "content": "Hello from Openrouter API"}],
)
print(resp.choices[0].message.content)

Same SDK, new base URL

Works with the OpenAI, Anthropic and Google SDKs, LangChain, LlamaIndex, Vercel AI SDK, Cursor, Cline and any OpenAI-compatible tool.

OpenAI-compatibleClaude Messages APIGemini native APIStreaming (SSE)Tool callingStructured JSONPrompt cachingAsync image & video tasksPay as you goNo subscription
Featured models

The models teams ship with, on one bill

Frontier chat models, fast image engines and cinematic video generators — each with a dedicated page covering price, parameters, examples and limits.

All 250+ models
Get started

How to call any model in 4 steps

No new SDK to learn. If your code already talks to OpenAI, it already talks to Openrouter API.

  1. 01

    Create an account

    Sign in with Google or a one-time email code. Your console is ready instantly — no sales call, no approval queue.

  2. 02

    Top up your balance

    Top up from $50 with cryptocurrency. Your balance never expires and is used only for successful requests.

  3. 03

    Create an API key

    Generate an sk-ora key in the console. Name keys per project or environment and revoke them at any time.

  4. 04

    Change the base URL

    Point your SDK to https://openrouterapi.ru/v1, pick a model id from the directory, and send your first request.

Four ways to build

Text, images, video and sound from one gateway

Each modality keeps the request shape developers already know, so switching between models is a model-name change, not a rewrite.

Why Openrouter API

Why developers route their AI traffic through Openrouter API

01

One key, 24 model developers

Stop juggling a dozen vendor accounts, keys, invoices and rate-limit dashboards. One balance covers OpenAI, Anthropic, Google, xAI, DeepSeek, ByteDance, Kuaishou, Alibaba and more.

02

Below official list prices

Most models are priced below the developer's public list price — on average about 15% lower — and every price is published per model, per resolution and per token type.

03

Drop-in compatibility

OpenAI Chat Completions and Responses, Anthropic Messages and Gemini generateContent are all supported natively, including streaming, tools and vision inputs.

04

Pay only for success

Failed or rejected requests are not billed. Token models are metered from real usage; image and video models are billed per successful output.

05

Switch models in one line

A/B test Claude against GPT, or fall back from Veo to Seedance, by changing the model field. No new contract, no new integration.

06

No subscription, no expiry

Top up from $50, keep the balance as long as you like, and scale up or down without seat fees or monthly minimums.

Price check

Openrouter API vs official list prices

A sample of popular models. Every model page shows the complete rate card, including cached-input, resolution and duration tiers.

ModelBilling unitOfficial list priceOpenrouter API priceYou save
gpt-6.2-sol
OpenAI
per 1M tokens (in / out)$2.00 / $10.00$1.76 / $8.80−12%
claude-opus-5-5
Anthropic
per 1M tokens (in / out)$4.00 / $20.00$3.52 / $17.60−12%
gemini-4-neon
Google
per 1M tokens (in / out)$3.00 / $15.00$2.64 / $13.20−12%
deepseek-v4.1-flash
DeepSeek
per 1M tokens (in / out)$0.2857 / $1.14$0.2514 / $1.01−12%
gpt-image-2.6-flare
OpenAI
per 1M tokens (in / out)$5.00 / $30.00$4.40 / $26.40−12%
seedream-5-5
ByteDance
per image$0.032$0.0308−4%
seedance-2.5
ByteDance
per second · 720P$0.27$0.2376−12%
Veo 3.1
Google
per second · 720P$0.09375$0.0825−12%
suno
Suno
per request · music-v6$0.0625$0.055−12%

Official prices are the public list prices published by each model's developer for the same unit. Openrouter API prices are in USD and may change; the pricing page is always current.

See all 252 prices
Use cases

Ready-made for everyday jobs

Popular starting points, each with a model that fits the job and a page that shows exactly how to call it.

Built for production

The plumbing you would otherwise build yourself

Streaming everywhere

Server-sent events pass straight through with low added latency, for chat completions, Responses and Claude Messages alike.

Async task API

Image, video and music jobs return a task_id. Poll one unified endpoint for status, progress and result URLs.

Usage you can audit

Every call gets a request id. The console shows tokens, units and cost per request, per key and per day.

Keys per environment

Create separate keys for development, staging and production, track last use, and revoke a leaked key in one click.

Standard error codes

401, 402, 429 and 5xx responses follow the OpenAI error shape, so existing retry and backoff logic keeps working.

HTTPS access

Send encrypted requests to https://openrouterapi.ru/v1. The gateway supports CORS for browser applications.

Data & privacy

Your prompts are yours

Openrouter API is built to process requests, not to collect data. We keep only what is needed to bill you and to debug your requests.

No training on your data

We do not use prompts or outputs to train models. The gateway sends the data needed to run your request to the model provider.

Metadata, not content

Usage logs store the model, endpoint, status, token counts and cost — not the text of your prompts or completions.

Hashed credentials

API keys are stored as SHA-256 hashes and shown in full only once, at creation time.

Model usage policies apply

Each model is subject to the usage and safety policies published by its developer. See the model page and our Acceptable Use Policy for details.

Boundaries

Limitations, stated plainly

We would rather you know these before you integrate.

  • 01Models are developed by their respective companies. Model availability, latency and content policies can change, and models may be updated or retired over time.
  • 02Image, video and music generation is asynchronous. Plan for polling or background jobs; results can take from seconds to several minutes.
  • 03Generated media URLs are temporary. Download and store results you want to keep.
  • 04Prices for image and video models depend on parameters such as resolution and duration. The final charge follows the parameters you send.
  • 05Balance is prepaid in USD. There is no post-paid invoicing or credit line at this time.
  • 06We do not offer an uptime SLA on the self-serve plan. Build retries and fallbacks for critical paths.
FAQ

Frequently asked questions

What is Openrouter API?

Openrouter API is an AI API gateway. It gives you one API key and one OpenAI-compatible base URL for more than 250 models from 24 AI developers, including GPT, Claude, Gemini, DeepSeek, Qwen, Grok, Seedance, Veo, Kling and Suno. You prepay a balance and are billed per request at published per-model prices.

Is Openrouter API compatible with the OpenAI SDK?

Yes. Set the base URL to https://openrouterapi.ru/v1 and use your Openrouter API key as the API key. Chat Completions, Responses, Embeddings, Images and audio transcription follow the OpenAI request and response formats.

Can I use the Anthropic or Google SDKs?

Yes. Claude models accept the native Anthropic Messages API at /v1/messages, and Gemini models accept the native generateContent API at /v1beta/models/{model}:generateContent. Point the SDK's base URL to openrouterapi.ru and use your Openrouter API key.

How is pricing calculated?

Chat models are billed per million input and output tokens using the token usage reported in each API response, with cached-input discounts where available. Image models are billed per image by resolution tier, video models per second of output, and music per request. Every price is listed on the pricing page and on each model page.

Why are your prices lower than the official ones?

Openrouter API runs a high-volume, highly optimized gateway and adds only a thin margin. On average our listed prices are about 15% below the developers' public list prices; the exact difference varies by model and is shown on every model page.

What is the minimum top-up?

The minimum top-up is $50. Your balance does not expire and is only reduced by successful requests.

Am I charged for failed requests?

No. Requests that fail with an error, are rejected by content moderation or never produce an output are not billed.

Do you store my prompts or train on them?

No. We do not train on your data. Usage logs contain metadata such as model, token counts, status and cost so you can audit spending; the content of prompts and responses is not kept in those logs.

How do async image and video tasks work?

The generation endpoint returns a task_id immediately. Poll GET /v1/tasks/{task_id} every few seconds until the status is completed, then download the result URLs. The docs include ready-made polling examples.

Are there rate limits?

Limits depend on the model. If you exceed them you will receive a 429 response in the OpenAI error format; retry with exponential backoff. Contact support if you need sustained high throughput.

Which payment methods are supported?

Crypto top-ups are processed by NOWPayments. Select one of the currencies and networks shown on your invoice and send the exact amount. All top-ups are non-refundable.

Are top-ups refundable?

No. All top-ups are final and non-refundable, and unused balance cannot be refunded or exchanged for cash, so we recommend starting with the minimum top-up. Requests that fail are never charged, and charges for failed async tasks are returned to your API balance automatically. See our Refund Policy for details.

Depth: 250+ models · Minimum top-up $50

One key. Every model. Start shipping today.

Create an account, top up from $50, and point your existing OpenAI, Anthropic or Gemini SDK at Openrouter API. No subscriptions, no seat fees, no idle charges.