Gemini API · OpenAI-compatible · one key, all models

The same Gemini API, up to 50% off

Same Google Gemini upstream, same quality — models priced at 60–90% of official plus the top-up bonus bring it as low as 50% of the official price. Change one line of base_url and your existing OpenAI SDK just works. Try it below, sign in when you are ready.

Best for general AI apps, agents, search, and high-volume API workloads

Google Gemini official
$10.00
/ million output tokens
flatkey · effective price with top-up bonus
$6.67
/ million output tokens
↓ Top up $200, get $300 — stretch your token budget 1.5×
Playground (edit before sign-up)
model: gemini-2.5-protemp 0.7 · 1024 tok
temperature 0.7max_tokens 1024top_p 1.0
▶ Sign in to runGoogle / GitHub one-click · no credit card to start
Est. this run $0.004 (flatkey · official ≈ $0.006)
Pricing vs official
Gemini 2.5 Pro output$6.67 $10
Gemini 2.5 Flash output$1.67 $2.50
Gemini 2.5 Pro input$0.83 $1.25
Cache readsup to 50% off
CoverageGPT · Gemini · Claude · DeepSeek · Seedance

* Illustrative pricing — see flatkey pricing page

Live model data from pricing API
gemini-2.5-pro
Google
Input / 1M
$1.125
Output / 1M
$9
geminiopenai
Matched live models
gemini-2.5-flash-lite-preview-09-2025
Google
gemini-2.5-flash-lite
Google
gemini-2.5-flash-lite-preview-06-17
Google
gemini-2.5-pro-preview-05-06
Google
AI app backends
Agent workflows
Batch content generation
migrate.py — change one line
# Your existing OpenAI code:
from openai import OpenAI

client = OpenAI(
  base_url="https://router.flatkey.ai/v1",
  api_key="sk-flatkey-...",
)
response = client.chat.completions.create(
  model="gemini-2.5-pro",
  messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Does this use the same model id in my SDK?

Yes. Keep your SDK and switch base_url plus api_key.

Can I control usage before scaling?

Yes. Prepaid balance, usage analytics, and one invoice keep spend bounded.

Every top-up earns bonus credit
Pay to unlock · credited instantly · not a free-signup giveaway
Top up $10 get $3Starter / individual
Top up $200 get $100Team / high-volume
Sign in to claim →