base_url to https://router.flatkey.ai/v1 to get started.
What Flatkey gives you
One key, all models
A single API key and base URL routes to GPT, Claude, Gemini, DeepSeek, Qwen, GLM, and more. No per-provider keys to manage.
At least 20% savings
API prices are at least 20% below the official API list price for the same model. Top up $200 and get $100 in bonus credit.
99.9% reliability
Automatic failover across upstream providers. Live health dashboards show real success rates from production traffic.
Data handling
Review the current privacy terms of Flatkey and your selected provider. Contact support to confirm retention periods.
Prepaid balance
Top up once, consume as you go. No subscriptions, no surprise invoices.
Full API compatibility
OpenAI-compatible endpoints: chat completions, responses, embeddings, image generation, and models list.
Supported providers
Flatkey routes to official APIs from every major AI vendor:
See the full Model Directory for all 300+ models with live pricing and health data.
How it works
Flatkey sits between your application and AI providers. When you send a request:- Your client calls
https://router.flatkey.ai/v1with your Flatkey API key. - Flatkey authenticates the request and deducts the cost from your prepaid balance.
- The request is forwarded to the official provider API (OpenAI, Anthropic, etc.).
- The response is returned directly to your client — no transformation of the content.
Next steps
Quickstart
Create an account and make your first API call in under 5 minutes
Authentication
Learn how to create and use your Flatkey API key
OpenAI SDK Guide
Use Flatkey with the official OpenAI SDK — Python or Node.js
API Reference
Full endpoint reference for all supported API methods