Skip to main content
Flatkey is an AI API gateway that lets you access 160+ official models from OpenAI, Anthropic, Google, DeepSeek, Qwen, GLM, and more — all through a single OpenAI-compatible API key. It is a drop-in replacement for any OpenAI-compatible client: change one line of code (base_url) and your requests are routed through Flatkey at up to 50% off official pricing, thanks to discounted base rates and stackable bonus credits on every top-up.

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.

Up to 50% savings

Models priced at 60–90% of official list. Top up 200,get200, get 100 bonus credit — stacked, as low as half the official price.

99.9% reliability

Automatic failover across upstream providers. Live health dashboards show real success rates from production traffic.

Zero data retention

Prompts and completions are never stored. GDPR compliant, SOC 2 and ISO 27001 aligned controls.

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 160+ models with live pricing and health data.

How it works

Flatkey sits between your application and AI providers. When you send a request:
  1. Your client calls https://router.flatkey.ai/v1 with your Flatkey API key.
  2. Flatkey authenticates the request and deducts the cost from your prepaid balance.
  3. The request is forwarded to the official provider API (OpenAI, Anthropic, etc.).
  4. The response is returned directly to your client — no transformation of the content.
Your prompts and completions are never stored. Flatkey only records metadata (model, token counts, timestamps) for billing and analytics.

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