Skip to content
Rapid Router
AI API

AI API: one key for GPT, Claude, Gemini and more

What an AI API is, how it is priced, and the best and cheapest models right now, live.

What an AI API is

An AI API is a web address your code sends a request to: a question, a document, an image or a recording. The model behind it answers with text, a picture, speech, or embeddings for search. Your app never runs the model; it pays for each request instead.

Rapid Router serves every kind through one key: chat at /chat/completions and /responses, the Anthropic-style /messages, plus embeddings, rerank, image generation, speech and transcription. The docs cover each one.

How AI API pricing works

Language models are priced per million tokens, with one rate for input and a higher rate for output. A token is about three quarters of an English word, and Indian scripts take more tokens per word; the token study measures by how much. Image, speech and video models are priced per image, per character or per second instead.

The strongest models right now

ModelInput / 1MOutput / 1MContext
Claude Opus 5.5
anthropic/claude-opus-5-5
₹386₹1,9281M
GPT-5.5
openai/gpt-5.5
₹482₹2,8921.05M
Gemini 4 Carbon
google/gemini-4-carbon
₹193₹9641.05M
DeepSeek V4 Pro
deepseek/deepseek-v4-pro
₹125₹2511.05M
Llama 4 Scout 17B 16E Instruct
meta-llama/llama-4-scout-17b-16e-instruct
₹9.64₹28.92328K
Qwen3.8 Max
qwen/qwen3.8-max
₹159₹4771M

The flagship of each major lab by independent votes. Rankings per task, such as coding or writing, are on the best model pages, and any two can be compared head to head on the comparisons page.

The cheapest AI APIs right now

ModelInput / 1MOutput / 1MContext
Llama 3.1 8B Instruct:deepinfra
hf/meta-llama/llama-3.1-8b-instruct:deepinfra
₹1.93₹3.86128K
Llama-3.1-8B-Instruct
meta-llama/meta-llama-3.1-8b-instruct
₹1.93₹3.86128K
Meta Llama 3.1 8B Instruct Turbo
meta-llama/meta-llama-3.1-8b-instruct-turbo
₹1.93₹3.86128K
Llama 3.1 8B Instruct:novita
hf/meta-llama/llama-3.1-8b-instruct:novita
₹1.93₹4.82128K
Llama-3.1-8B-Instruct
novita/meta-llama/llama-3.1-8b-instruct
₹1.93₹4.82128K
Mistral Nemo Instruct 2407
mistralai/mistral-nemo-instruct-2407
₹2.80₹2.89131K

Sorted by the price of a typical request, three parts input to one part output. The price index tracks cheapest and median prices by category every month.

How to choose an AI API

  • Quality on your task. Try three models on twenty of your own examples before you decide.
  • Price per request. Output usually costs more than input, so long answers cost more than long prompts.
  • Context window. How much text the model can read in one request.
  • Reliability. A gateway that fails over to another provider keeps working when one goes down.
  • Billing. Paying several providers in dollars means several accounts and invoices; one rupee balance with a GST invoice is simpler from India.

One API for every model

Rapid Router is OpenAI-compatible: point the OpenAI SDK at https://rapidrouter.ai/api/v1, use a Rapid Router key, and change models by changing one string. Each request goes to the cheapest healthy provider for that model and fails over on its own. Read more on the LLM router and AI gateway pages.

from openai import OpenAI

client = OpenAI(
    base_url="https://rapidrouter.ai/api/v1",
    api_key="YOUR_RAPID_ROUTER_KEY",
)
reply = client.chat.completions.create(
    model="anthropic/claude-opus-5-5",
    messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)

Create a free account, make a key, and try the free models straight away. Top up in rupees when you are ready, and switch models by changing one string. Setup for Cursor, Cline, LangChain, n8n and more is on the integrations page.

Common questions

What is an AI API?
A web address your code sends text, images or audio to, which answers with a model's output: a reply, a picture, speech or a list of numbers. It is how an app uses a model like GPT, Claude or Gemini without running it.
What is the best AI API?
It depends on the job. Independent votes rank the strongest models for coding, writing and reasoning separately, and the cheapest model that is good enough is often far cheaper than the top one. The best-model pages rank them per task.
What is the cheapest AI API?
Small open models cost a few cents per million tokens; the flagships can cost a hundred times more. The cheapest table on this page is live. For a fixed task, test the two or three cheapest models that pass on your own examples.
Is there a free AI API?
Yes. Every Rapid Router account gets 50 free requests a day on the free models, with no top-up.
Can one API reach every model?
Yes. Rapid Router is one OpenAI-compatible API in front of Claude, GPT, Gemini and 600+ other models, with one key and one balance.