Skip to content
Loopfunder
Build a game with AI

The Cheapest LLM API for Builders (Claude vs OpenAI vs Gemini)

The cheapest LLM API for builders, with November 2026 prices for Claude, OpenAI, Gemini and low-cost rivals, plus what a real building session costs.

By The Loopfunder Team · · 10 min read

The cheapest LLM API on a price list is not always the cheapest one to build with. A model that costs a tenth as much per token is no bargain if it needs five attempts, and an AI coding agent sends far more tokens than a chat does. So this guide answers two questions: which AI API has the lowest price in November 2026, and what a session of building a game or app is likely to cost you.

Every price below comes from the vendor's own pricing page, checked on November 14, 2026. Prices are in US dollars per one million tokens.

What you are paying for

APIs charge by the token. OpenAI's explanation is that "a token can represent a character, part of a word, a whole word, or punctuation," and that "100 tokens are approximately 75 words."

Three things on a price list matter for builders:

  • Input is everything you send: your prompt, your code files, and the whole conversation so far.
  • Output is what the model writes back. It costs about five times more than input at most vendors, and the model's hidden reasoning is billed as output too.
  • Cached input is input the model has seen recently, such as the same files sent again on the next turn. It is heavily discounted.

One warning before the tables. Token prices are not perfectly comparable between vendors, because each counts tokens its own way. Anthropic says its current tokenizer "produces approximately 30% more tokens for the same text" than its older one, and OpenAI notes that "a lower price per million tokens does not necessarily produce a lower total cost." Treat the tables as a guide to scale, not to the last cent.

Claude vs OpenAI vs Gemini: current API prices

These are the current models from the three largest labs, at standard rates.

Model Tier Input Cached input Output
Claude Fable 5.2 Top $8.00 $0.20 $40.00
Claude Opus 5.5 High $4.00 $0.20 $20.00
Claude Sonnet 5.5 Mid $2.00 $0.10 $10.00
Claude Haiku 5.5 Small $0.10 $0.01 $0.50
GPT-6 Astra Top $10.00 $1.00 $50.00
GPT-6.1 Sol Mid $2.00 $0.10 $10.00
GPT-6.1 Terra Mid, faster $1.00 $0.05 $5.00
GPT-6 Luna Small $0.10 $0.01 $0.50
Gemini 4 Carbon Top $2.00, then $4.00 $0.10, then $0.20 $10.00, then $20.00
Gemini 4 Argon High $2.00, then $4.00 $0.10, then $0.20 $10.00, then $20.00
Gemini 4 Hydrogen Fast $1.50 $0.075 $7.50
Gemini 3.8 Flash Mid $0.75, then $1.50 $0.075, then $0.15 $3.75, then $7.50

Sources: Anthropic pricing, OpenAI pricing, Gemini API pricing.

The small print that changes the answer:

  • Google's prices are about to rise. Gemini 4 Carbon and Argon double on December 1, 2026. Gemini 3.8 Flash doubles on January 1, 2027. The "then" figures above are the new prices.
  • Claude Haiku 5.5 costs five times more on long prompts. Above 100,000 tokens in a prompt it is $0.50 in and $2.50 out. A coding agent with a big project can cross that line.
  • OpenAI charges more for very long prompts. Above 272,000 input tokens, its docs say requests "are priced at 2x input and cache rates and 1.5x output for the full request."
  • Anthropic and OpenAI charge a little extra to store a cache. Writing to Anthropic's five-minute cache costs 1.25 times the input price. Google's Gemini 4 models cache automatically with no write fee.

The cheapest LLM APIs by list price

If the only question is the lowest price, the big three are not the cheapest. Smaller labs and hosts of open models undercut them. Here is a selection, sorted by output price.

Provider Model Input Output
Mistral Ministral 3 3B $0.10 $0.10
Fireworks Nemotron 3.5 Lightning 30B $0.05 $0.20
Groq gpt-oss-20b $0.075 $0.30
Google Gemini 2.5 Flash-Lite $0.10 $0.40
Anthropic Claude Haiku 5.5 $0.10 $0.50
OpenAI GPT-6 Luna $0.10 $0.50
DeepSeek deepseek-flash, off-peak $0.15 $0.60
Mistral Mistral Small 4 $0.15 $0.60
Groq gpt-oss-120b $0.15 $0.60
Mistral Codestral $0.30 $0.90
DeepSeek deepseek-flash, peak hours $0.30 $1.20
DeepSeek deepseek-v4-pro, off-peak $0.66 $1.98
Mistral Mistral Large 4 $0.70 $2.10
xAI Grok 4.7 $2.00 $6.00

Older models from the big labs can be cheaper than their current ones too. OpenAI still lists gpt-5-nano at $0.05 in and $0.40 out.

A few of these are worth a closer look for builders. DeepSeek halves its prices outside peak hours, which it defines as two windows on weekday mornings UTC. Mistral's Codestral is a model made for code. And the open-weight gpt-oss models are sold at the same price by several hosts, so you can shop on speed.

The tiny models at the top of the table are built for sorting and routing text, not for writing a game. Price tells you nothing about whether a model can do your task. For how the leading models compare on building, see Gemini vs Claude vs ChatGPT for game building.

Free tiers and free credits

  • Google Gemini API. Several models are "free of charge" on the free tier, including Gemini 4 Hydrogen and the Flash models. The top two, Carbon and Argon, are not. The catch is in Google's terms: on unpaid services, "Google uses the content you submit to the Services and any generated responses to provide, improve, and develop Google products," and human reviewers may read it. Google's own advice is "Do not submit sensitive, confidential, or personal information to the Unpaid Services." That is fine for a hobby game and worth knowing if your idea is under wraps. Different terms apply in the EEA, Switzerland and the UK.
  • Anthropic. The pricing FAQ says "New users receive free credits to test the API." It does not say how much.
  • OpenRouter. This router passes through provider prices and adds a 5.5 percent fee when you buy credits. It lists free models with "low rate limits (50 requests per day total)" that "are usually not suitable for production use" (FAQ).
  • Subscriptions that include API credit. Claude Max includes "$100 a month in API credits," and ChatGPT's Pro tiers include matching API credits.

What does a building session cost?

List prices only mean something once you multiply by tokens. Coding agents use a lot of them. Anthropic's cost guide explains why: the tool "sends your full conversation with every request," so "one debugging session can consume more than a day of chat."

To make that concrete, here are two example sessions priced on each model. These are our own calculations from the list prices above, and they assume every model uses the same number of tokens for the same work, which is a simplification.

  • A light session uses the figures from Anthropic's own pricing example: 50,000 input tokens and 15,000 output tokens, with no caching.
  • An agent session uses the shape of a real usage report shown in Anthropic's cost guide: about 940,000 tokens of cached input, 50,000 tokens written to the cache, 1,200 fresh input tokens and 5,300 output tokens.
Model Light session Agent session
GPT-6 Luna $0.01 $0.02
DeepSeek flash, peak hours $0.03 $0.03
Gemini 4 Hydrogen $0.19 $0.19
Claude Sonnet 5.5 $0.25 $0.27
GPT-6.1 Sol $0.25 $0.27
Gemini 4 Carbon, until Nov 30 $0.25 $0.25
Gemini 4 Carbon, from Dec 1 $0.50 $0.50
Claude Opus 5.5 $0.50 $0.55
GPT-6 Astra $1.25 $1.84

Three things stand out.

The mid-tier models cost the same. Claude Sonnet 5.5 and GPT-6.1 Sol have identical prices, and Gemini 4 Carbon matches them for a few more weeks.

Caching is what makes agents affordable. In the agent session the model processed about a million tokens, and on Claude Sonnet 5.5 that cost 27 cents. Without the cache discount the same input would have cost about $2.

The top models are several times dearer. GPT-6 Astra costs five to seven times what GPT-6.1 Sol does for the same session. Save those for the problems the cheaper models cannot crack.

A single session is cheap. A habit is not. Anthropic reports that across company deployments of Claude Code, "the average cost is around $13 per developer per active day and $150-250 per developer per month." Those are professional developers working all day, so a weekend builder should land well below that, but it shows how sessions add up.

Subscription or API: which is cheaper?

For most solo builders, a subscription is the better deal. The three main ones cost about the same as of November 2026:

Plan Price Coding tool included
Claude Pro $20/mo, or $17/mo billed annually Claude Code
ChatGPT Plus $20/mo Codex
Google AI Pro $19.99/mo Antigravity, with Gemini 4 Argon

Each gives you a usage allowance that resets on a schedule. If you build a few evenings a week, you will probably stay inside it, and your cost is fixed.

Pay-as-you-go API pricing makes more sense when:

  • You build now and then. A few sessions a month on a mid-tier model can cost less than $20.
  • You want the cheapest models. Running DeepSeek or an open model through a tool such as Cline can cost cents per session.
  • You hit the plan's limits. Claude's plans let you "turn on usage credits to keep working at standard API rates" when you run out.
  • Your own app calls a model. If the game or app you are building uses AI itself, that usage is always billed through the API.

Tools that sit between you and the model add a wrinkle. Cursor's individual plans, for example, bill other labs' models "at API list price" on top of the subscription, so the tables above apply directly. We cover that in which harness is best for game building.

Seven ways to cut your bill

  1. Keep sessions focused. Every turn resends the conversation. Start a fresh session for each new feature instead of running one all day.
  2. Do not leave a session idle. Anthropic notes that "your first message after a break longer than the cache lifetime misses the cache and reprocesses your full context." Finish the task, then stop.
  3. Use a small model for small jobs. Renaming things, writing comments and fixing typos do not need a top model.
  4. Ask for less output. Output is the expensive side. "Change only the function that handles jumping" costs less than "rewrite the file."
  5. Plan before you prompt. A wrong turn costs twice: once to build it and once to undo it. A short game design document pays for itself here.
  6. Use batch pricing for background work. Anthropic, OpenAI and Google all give 50 percent off for requests that can wait, such as generating a hundred item descriptions. It does not help with live coding.
  7. Watch the long-prompt thresholds. Stay under 272,000 input tokens on OpenAI and 100,000 on Claude Haiku 5.5, where rates jump.

Here is a prompt that puts a few of those into practice at the start of a session:

Prompt
Before you write any code, do these three things:
1. Tell me which files you need to read for this task, and read only those.
2. Give me a plan in five lines or fewer.
3. Estimate whether this is a small, medium or large change.

Then wait for my go-ahead. When you make the change, edit only what the plan covers and do not reformat or rewrite anything else.

The task: [describe one feature or one bug].

So which is the cheapest LLM API?

It depends on what you count.

  • Lowest price among the major labs' current models: Claude Haiku 5.5 and GPT-6 Luna, tied at $0.10 in and $0.50 out.
  • Lowest price overall for a coding-capable model: DeepSeek's flash model off-peak, and the open models hosted by Groq, Fireworks and Mistral.
  • Free: the Gemini API free tier, if you accept the data-use terms.
  • Best value for serious building: Claude Sonnet 5.5 or GPT-6.1 Sol. Add Gemini 4 Carbon to that list until its price doubles on December 1.
  • Cheapest for most people building a few times a week: not an API at all, but a $20 subscription.

Prices in this market move every few weeks, and three of the figures above have changes already scheduled. Check the linked pricing pages before you plan a budget around them.

The model bill is rarely what stops a project. Running out of direction is. If you are starting something new, our roundup of the best vibe coding tools and platforms covers where to build it, and how to build a game with AI covers the plan.

Written by the Loopfunder team with AI research assistance. Prices, plans and product details were checked against the linked sources on November 14, 2026, and they change often. Check the vendor's page before you spend money.