LLM API pricing 2026

AI API Pricing — OpenAI vs Claude vs Gemini

Compare flagship GPT, Claude, and Gemini token rates side by side — official reference pricing vs LumeAPI catalog on the same OpenAI-compatible gateway.

Use this page to pick models by cost per task, then open each model page for integration docs or a provider-specific migration guide.

2026 flagship model 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
GPT-5.6 Terragpt-5.6-terra$2.50 / $15.00$1.25 / $7.5050% offDetails →
Claude Sonnet 4.6claude-sonnet-4-6$3.00 / $15.00$1.80 / $9.0040% offDetails →
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 →

Monthly cost examples

Illustrative totals for claude-sonnet-4-6 using catalog list prices — your actual bill depends on retries, tool loops, and output length.

Support chatbot

8M input + 2M output tokens / month

Moderate volume — compare GPT mini vs Flash

Official (Claude Sonnet 4.6)
$54.00/mo
LumeAPI
$32.40/mo
Monthly savings
$21.6040% off

Rates last updated July 2026

Document RAG

50M input + 6M output tokens / month

Input-heavy — Gemini Pro vs Sonnet input rates

Official (Claude Sonnet 4.6)
$240.00/mo
LumeAPI
$144.00/mo
Monthly savings
$96.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 (direct provider SDK)

python
# Multiple provider SDKs — separate keys and clients
# OpenAI, Anthropic, Google each with their own SDK and billing

After (LumeAPI)

python
from openai import OpenAI

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

# Same client — swap model id to compare providers
for model in ("gpt-5.6-terra", "claude-sonnet-4-6", "gemini-3.5-flash"):
    r = client.chat.completions.create(
        model=model,
        messages=[{"role": "user", "content": "Reply with your model name only."}],
    )
    print(model, r.choices[0].message.content)

Full step-by-step rollout, streaming checks, and FAQ: LLM API Pricing Comparison 2026 — deep dive →

Trust & billing

Where do prices come from?

LumeAPI catalog syncs from backend/catalog.py with pricing_updated and pricing_source shown on model pages. Official column is reference list price for comparison.

Do rates include output tokens?

Text models bill input and output separately. The table shows both per 1M tokens — multiply by your expected mix for monthly estimates.

Are image and video on this page?

This table focuses on flagship text models. Browse /models filtered by kind for image per-image and video per-second rates.

How often is pricing updated?

Check Last updated on model pages after catalog changes. Re-run cost models when you see a new pricing_updated date.

Built for these workloads

Finance forecasting

Model monthly spend at your token mix before choosing Sonnet, GPT Terra, or Gemini Pro. Input-heavy RAG should weight input $/1M first.

Model routing

Route cheap classification to Flash or mini tiers, escalate hard tasks to Pro or Opus. One gateway simplifies A/B tests.

Vendor negotiation baseline

Export official vs LumeAPI columns when evaluating build vs buy. Published catalog rates update with pricing_updated metadata.

Agent cost control

Agents multiply tokens per user request. Lower per-hop rates directly reduce cost-per-completed-task — measure both, not just per-call.

Related guides

FAQ

Which model is cheapest for high-volume chat?

Compare GPT mini and Gemini Flash rows for your output ratio. Flash often wins on input-heavy routing; validate quality on your prompts.

Sonnet vs GPT Terra for coding?

Compare output $/1M — coding assistants generate long completions. Open both model pages and run a shadow traffic test on real repos.

Does LumeAPI match official invoice line items?

We meter catalog ids in Usage logs. Your request model id is what appears in billing — no hidden route remapping.

Can I lock pricing with an annual contract?

Public catalog rates apply to wallet billing. Contact support for volume or enterprise discussions.

How do I estimate a monthly bill?

Use the cost scenario cards below with your token millions, or export Usage logs after a staging week on LumeAPI.

Where are provider-specific guides?

See /cheap-openai-api, /cheap-claude-api, /cheap-gemini-api, and /openrouter-alternative for migration code and FAQs.

Start with the model that fits your budget

Create a key and call any row in the table through https://api.lumeapi.site/v1. Need help choosing a model? Browse the developer docs or contact support.