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
Gemini API pricing
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.
Official reference vs LumeAPI catalog rates. Pricing unit: per 1M input / output tokens. Last updated: July 2026. Source: provider list price.
Illustrative totals for gemini-3.1-pro-preview using catalog list prices — your actual bill depends on retries, tool loops, and output length.
25M input + 4M output tokens / month
Long prompts with retrieved chunks — input tokens dominate
200M input + 40M output tokens / month
Gemini Flash for classification, routing, and lightweight agents
Three values change: API key, base URL, model id. Everything else stays the same.
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.",
)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 →
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.
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.
USD wallet debited per successful call at published input/output rates. Long-context workloads should model both token types, not input alone.
No. LumeAPI is an independent third-party gateway. You are responsible for compliance and how outputs are used in your product.
Gemini Pro handles long retrieved context. Lower input rates matter when every query resends documents — compare monthly cost at 25M+ input tokens.
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.
Text models share the same gateway as Gemini image entries in our catalog. One API key for chat plus image workflows.
Predictable per-token pricing helps finance teams forecast margin. Published catalog rates beat guessing from official list price alone.
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.
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.
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.
Yes on supported Gemini text models via stream: true on Chat Completions. Validate in staging before moving production traffic.
Yes. Image-capable Gemini models are in the catalog under image or chat endpoints. See model docs for exact ids and parameters.
Yes. Shadow a slice of traffic on LumeAPI, compare quality and latency, then expand when satisfied.
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.