Gemini API pricing

Gemini API at a Lower Cost

Access Gemini 3.1 Pro, 3.5 Flash, and 3 Flash through one OpenAI-compatible gateway — listed at roughly 40% below common Google reference rates on supported text models.

Keep your OpenAI SDK integration and swap base URL. Flash models for high-volume tasks, Pro for harder reasoning — one key, one wallet.

Gemini price comparison

Official reference vs LumeAPI catalog rates. Pricing unit: per 1M input / output tokens. Last updated: July 2026. Source: provider list price.

ModelOfficial (in / out)LumeAPI (in / out)Savings
Gemini 3.1 Progemini-3.1-pro-preview$2.00 / $12.00$1.20 / $7.2040% offDetails →
Gemini 3.5 Flashgemini-3.5-flash$1.50 / $9.00$0.90 / $5.4040% offDetails →
Gemini 3 Flashgemini-3-flash$0.50 / $3.00$0.30 / $1.8040% offDetails →

Monthly cost examples

Illustrative totals for gemini-3.1-pro-preview using catalog list prices — your actual bill depends on retries, tool loops, and output length.

RAG & document Q&A

25M input + 4M output tokens / month

Long prompts with retrieved chunks — input tokens dominate

Official (Gemini 3.1 Pro)
$98.00/mo
LumeAPI
$58.80/mo
Monthly savings
$39.2040% off

Rates last updated July 2026

High-volume Flash routing

200M input + 40M output tokens / month

Gemini Flash for classification, routing, and lightweight agents

Official (Gemini 3.1 Pro)
$880.00/mo
LumeAPI
$528.00/mo
Monthly savings
$352.0040% off

Rates last updated July 2026

Migrate in minutes

Three values change: API key, base URL, model id. Everything else stays the same.

Before (official Google AI)

python
from google import genai

client = genai.Client(api_key="YOUR_GOOGLE_API_KEY")

response = client.models.generate_content(
    model="gemini-3.1-pro-preview",
    contents="Summarize this document in three bullets.",
)

After (LumeAPI)

python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_LUMEAPI_KEY",
    base_url="https://api.lumeapi.site/v1",
)

response = client.chat.completions.create(
    model="gemini-3.1-pro-preview",
    messages=[{"role": "user", "content": "Summarize this document in three bullets."}],
)

Full step-by-step rollout, streaming checks, and FAQ: Gemini API Too Expensive? migration guide →

Trust & billing

Are these real Gemini models?

LumeAPI routes to catalog ids such as gemini-3.1-pro-preview and gemini-3.5-flash. The model id in your request matches usage logs and billing.

OpenAI-compatible vs Google native API?

LumeAPI exposes Chat Completions at https://api.lumeapi.site/v1. Google-specific features like Search Grounding may require the native API — test your payload first.

How am I billed?

USD wallet debited per successful call at published input/output rates. Long-context workloads should model both token types, not input alone.

Is LumeAPI affiliated with Google?

No. LumeAPI is an independent third-party gateway. You are responsible for compliance and how outputs are used in your product.

Built for these workloads

RAG pipelines

Gemini Pro handles long retrieved context. Lower input rates matter when every query resends documents — compare monthly cost at 25M+ input tokens.

Fast routing & classification

Gemini 3 Flash and 3.5 Flash are built for speed and volume. Route cheap pre-processing steps to Flash, escalate hard tasks to Pro.

Multimodal products

Text models share the same gateway as Gemini image entries in our catalog. One API key for chat plus image workflows.

Cost-sensitive SaaS

Predictable per-token pricing helps finance teams forecast margin. Published catalog rates beat guessing from official list price alone.

FAQ

Pro vs Flash — when to use which?

Gemini 3.1 Pro for harder reasoning, analysis, and long-context tasks. Gemini 3.5 Flash or 3 Flash for high-volume, latency-sensitive, or routing workloads.

Do I need the Google Gen AI SDK?

Not for standard chat. Use the OpenAI SDK with base_url https://api.lumeapi.site/v1 and a catalog Gemini model id. Migrate faster if you already use OpenAI-style messages.

How does long context affect cost?

Every token in your prompt is billed as input — including history and retrieved documents. A 50K-token prompt on Pro adds up quickly; model total cost per task, not per request.

Does streaming work?

Yes on supported Gemini text models via stream: true on Chat Completions. Validate in staging before moving production traffic.

Can I use Gemini Image models on the same key?

Yes. Image-capable Gemini models are in the catalog under image or chat endpoints. See model docs for exact ids and parameters.

Can I run Google and LumeAPI side by side?

Yes. Shadow a slice of traffic on LumeAPI, compare quality and latency, then expand when satisfied.

Run your first lower-cost Gemini request

Create a key, fund your wallet, and point your OpenAI-compatible client at https://api.lumeapi.site/v1. Need help choosing a model? Browse the developer docs or contact support.