Skip to main content
Connect GPT, Claude, Gemini, DeepSeek, and more with one OpenAI-compatible API key. Set your client’s base_url to https://router.flatkey.ai/v1 to get started.

How Flatkey works

1

Create your account

Sign up at console.flatkey.ai and choose the subscription plan that fits your usage.
2

Generate an API key

Open the Keys section in the dashboard and create a new API key. Keep it secret — treat it like a password.
3

Point your client to Flatkey

Set base_url to https://router.flatkey.ai/v1 in your OpenAI-compatible SDK. No other code changes required.
4

Monitor usage and costs

Track every request, token count, and dollar spent in the Usage dashboard. Set quotas to cap spend.

Why teams use Flatkey

One key, every model

Access GPT, Claude, Gemini, DeepSeek, Qwen, GLM, and more with a single API key and base URL.

At least 20% savings

API prices are at least 20% below the official API list price for the same model.

99.9% success rate

Automatic failover across upstream providers. Live health dashboards for every model.

Data handling

Review the current privacy terms of Flatkey and your selected provider. Contact support to confirm retention periods.

Drop-in replacement

OpenAI-compatible API. Change one line of code — no SDK rewrites, no migration overhead.

Subscription billing

Choose a plan that fits your workload and monitor usage in real time.

Explore the docs

Authentication

Learn how to create and use your Flatkey API key

OpenAI SDK Guide

Use Flatkey with the official OpenAI Python or Node.js SDK

Anthropic SDK Guide

Route Claude requests through Flatkey with the Anthropic SDK

Model Health

View real-time success rates and latency for every model