A step-by-step visual guide to access GPT-4, Claude, Gemini, Llama, and 200+ other models
Visit openrouter.ai, the leading AI API aggregator that lets you access models from OpenAI, Anthropic, Google, Meta, and more through a single interface.
One API key to access 200+ models
Click "Get Started" or log in. You can use your Google account, GitHub account, or create an OpenRouter account directly.
After logging in, navigate to openrouter.ai/keys or click on your profile menu and select "API Keys" from the settings.
Click "Create New Key". Give it a name to identify what you'll use it for (e.g., "Development", "Production", "Test"), then click "Create".
Your new API key will be displayed. Copy it immediately and store it securely. Keys start with sk-or-v1-.
Your key is ready to use. Start making API calls to any of 200+ models immediately.
OpenRouter uses a prepaid Credits system. API usage is deducted from your balance — you only top up when needed, with no automatic charges.
After logging in, click your avatar in the top-right and select Credits, or go directly to:
402 Payment Required error — just top up when that happens. We recommend starting with –0 to explore, then adding more as needed.Visit openrouter.ai/activity to see a detailed breakdown of each API call, including model used, tokens consumed, and cost.
Credits are available immediately after purchase. Add your API Key to your application and start calling any model available on OpenRouter.
OpenRouter offers free tier models including Llama 3.2 (1B/3B), Mistral 7B, Gemma 2, and more. You can test the API without adding a payment method. When you're ready, add credits to access paid models like GPT-4o and Claude Sonnet 4.6.
Happy building with OpenRouter! 🔀