AI API key: one key for every AI model
What an API key is
An API key is a long secret string your code sends with each request, so the service knows who is calling and whose balance to charge. Anyone who has it can spend your money, so it belongs on your server, not in a website or mobile app.
Two ways to get one
From each provider. OpenAI, Anthropic, Google and the rest each issue their own key from their own dashboard, each with its own account, balance and billing. Four models from four labs means four keys and four bills.
One key for all of them. A Rapid Router key reaches every model in the catalogue. You choose the model per request, and one rupee balance pays for all of it, with a GST invoice on every top-up.
Get a Rapid Router key in two minutes
- Sign up with Google, GitHub or email.
- Open Keys and create a key. Give it a name and, if you like, a monthly cap.
- Call a free model at once, or top up in rupees with UPI to use any model.
- Point the OpenAI SDK, or any tool that takes an OpenAI key, at
https://rapidrouter.ai/api/v1.
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)Getting a key for one model family
Looking for a key for one family in particular? These pages cover paying for it from India and calling it with the same key: OpenAI and GPT, Claude, Gemini, DeepSeek and Grok.
Keeping a key safe
- Store it in an environment variable such as
RAPIDROUTER_API_KEY, never in code you commit. - Give each app or teammate its own key, so one can be revoked without breaking the rest.
- Set a monthly cap on every key; a leaked key then cannot spend past it.
- Revoke and replace a key the moment it might have leaked. The security page says how keys are stored.