Best for · AI tools

AI models for text generation: which one for which job, and the price per million tokens

We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.

Verdict Our pick

The bar guide has a call.

The vectaai bar guide pointing at the verdict
  • Pick an open-weight model (Mistral's open models, Llama-family models and others you host yourself) if your data cannot leave your servers or you need to fine-tune freely; read the licence first.

Compared here

  • 01Claude (Anthropic)
  • 02GPT (OpenAI)
  • 03Gemini (Google)
  • 04Mistral
  • 05Open-weight models

Short answer

Text generation models come in three sizes, and the right one depends on the job more than the brand. Small, cheap models (Claude Haiku 5.5 at $0.10 per million input tokens for short prompts, GPT-6 Luna at $0.10, Gemini 4 Hydrogen at $1.50 with a free tier) handle classification, short replies, product descriptions and high-volume work. Mid models (Claude Sonnet 5.5 at $2 in and $10 out, GPT-6.2 Sol at $2 and $10) are the sensible default for most writing, chat and summaries. Top models (Claude Opus 5.5, Claude Fable 5.2, GPT-6.2 Astra, Gemini 4 Carbon) are for hard reasoning, long documents and work where mistakes cost money.

Pick an open-weight model (Mistral's open models, Llama-family models and others you host yourself) if your data cannot leave your servers or you need to fine-tune freely; read the licence first. Every major API offers a batch discount of about half for work that can wait. For who leads the leaderboards this week, see our best AI models page; this page is about choosing and paying.

Try the Claude APITry the OpenAI APITry Google AI StudioTry Mistral

Sponsored links. We may earn a commission; it never changes the pick.

At a glance

Standard API list prices per million tokens in US dollars, from platform.claude.com, developers.openai.com, aistudio.google.com and mistral.ai, read 4 December 2026. Short-context prices; long prompts and special modes can cost more. Leaderboard positions change weekly.
ModelMakerInput / 1M tokensOutput / 1M tokensBatchFree API tierTypical job
Claude Haiku 5.5 (prompts up to 100k)Anthropic$0.10$0.5050% offNoHigh-volume short tasks
GPT-6 LunaOpenAI$0.10$0.5050% offNot checkedHigh-volume short tasks
Mistral LargeMistral$0.50$1.5050% offFree plan for Vibe and StudioCheap general writing
Gemini 4 HydrogenGoogle$1.50$7.50Not checkedYesEveryday tasks with a free start
Claude Sonnet 5.5Anthropic$2$1050% offNoDefault for writing and chat
GPT-6.2 SolOpenAI$2$1050% offNot checkedDefault for writing and chat
Claude Opus 5.5Anthropic$4$2050% offNoHard reasoning, long documents
Gemini 4 CarbonGoogle$4$20Not checkedNoTop quality, Google stack
GPT-6.2 AstraOpenAI$8$4050% offNot checkedTop quality, OpenAI stack
Claude Fable 5.2Anthropic$8$4050% offNoHardest problems

Money first. Some of these companies pay affiliate commissions or may; if you sign up through our /go/ links we may earn a cut. That does not decide what we recommend. Your job and your budget decide it.

Second, the honest bit. We did not run a benchmark of our own. We read each provider's official API price page on 4 December 2026 and quote it. For quality rankings, we point you to independent leaderboards in our best AI models page, which we update as they move. Prices move too, often downward; check the live page before you build a budget.

What a text generation model is, in one minute

A text generation model (a large language model, or LLM) reads your prompt as tokens, small chunks of text, and predicts the next token, then the next, until it has an answer. Everything you see in ChatGPT, Claude or Gemini sits on top of models like these. Through an API, your own software can send prompts and get text back: product descriptions, support replies, summaries, translations, reports.

You pay per token, separately for input (what you send) and output (what it writes). Output always costs more: three to five times the input price on the lists below.

Pick by job, not by brand

Model makers sell families in sizes. The trick is matching size to job:

JobSize that usually fitsWhy
Tagging, sorting, short replies, extracting fieldsSmallCheap, fast, good enough when the answer is short
Product descriptions, emails, social posts at scaleSmall or midTest small first; step up if tone suffers
Support chat, summaries, drafting articlesMidBest quality per dollar for most writing
Long reports, legal or technical analysis, tricky reasoningTopFewer mistakes where mistakes are expensive
Data that must not leave your serversOpen weights, self-hostedYou control the hardware and the data

Anthropic's own docs put it plainly: "Choose Haiku for simple tasks, Sonnet for most production workloads, and Opus for the most complex reasoning." The same logic applies to every maker.

Prices, maker by maker

Anthropic (Claude)

From the Claude API pricing docs, per million tokens:

ModelInputOutputBatch input / output
Claude Haiku 5.5 (prompts up to 100k tokens)$0.10$0.50$0.05 / $0.25
Claude Haiku 5.5 (prompts over 100k)$0.50$2.50$0.25 / $1.25
Claude Sonnet 5.5$2$10$1 / $5
Claude Opus 5.5$4$20$2 / $10
Claude Fable 5.2$8$40$4 / $20

Notes from the page: the Batch API gives 50% off input and output. Cache reads cost 0.1x the input price on most models, 0.05x on Opus 5.5 and Sonnet 5.5, and 0.025x on Fable 5.2. Claude 4.6 and later models (except Haiku 5.5) include a 1 million token context window at standard pricing. Newer models use a tokenizer that produces about 30% more tokens for the same text. There is no free API tier; credits start at $5.

OpenAI (GPT)

From OpenAI's API pricing page, standard tier, short context (up to 272k input tokens):

ModelInputOutputBatch input / output
gpt-6-luna$0.10$0.50$0.05 / $0.25
gpt-6.1-terra$1$5$0.50 / $2.50
gpt-6.2-sol$2$10$1 / $5
gpt-6.2-astra$8$40$4 / $20

Google (Gemini)

From Google AI Studio's pricing page, paid tier, per million tokens (output includes thinking tokens):

ModelInputOutputFree tier
gemini-3.8-flash$0.75 until 31 Dec 2026, then $1.50$3.75, then $7.50Yes
gemini-4-hydrogen$1.50$7.50Yes
gemini-4-neon$3$15No
gemini-4-carbon$4$20No

Google is the only maker here with a free API tier on several current models, which makes it the easiest place to prototype for nothing. Note the Flash price doubles on 1 January 2027 per the page.

Mistral

Mistral's pricing page states that Mistral Large costs $0.50 per million input tokens and $1.50 per million output tokens, with batch processing at 50% off and cached input up to 90% cheaper. On open weights, it says its open-weight models (such as Mistral 7B) "are Apache 2.0 licensed for research/individual use", with commercial deployments needing a separate Mistral licence.

Open-weight models: when and why

Open-weight models are downloadable: you run them on your own servers, your laptop or a cloud GPU. Reasons to go this way:

  • Data control. Nothing leaves your hardware.
  • Fine-tuning. Train on your own data without a provider's limits.
  • Predictable cost at huge volume. Once the hardware is paid for, more text costs electricity.

Reasons not to: you run and patch the servers, quality usually trails the top hosted models, and licences vary. Read the licence of the exact model and version before you ship a product on it. Platforms such as Cloudflare Workers AI host many open models behind one API; its guide to choosing a text generation model makes the most useful point of all: the interface "is always the same, no matter which model you choose", so test several on your own prompts.

What a real job costs

Say you generate 10,000 product descriptions of about 150 words each, from prompts of about 300 tokens. That is roughly 3 million input tokens and about 2 million output tokens (our estimate; actual counts depend on the tokenizer).

ModelInput costOutput costTotalWith batch
Claude Haiku 5.5$0.30$1.00$1.30$0.65
GPT-6 Luna$0.30$1.00$1.30$0.65
Mistral Large$1.50$3.00$4.50$2.25
Claude Sonnet 5.5 or GPT-6.2 Sol$6$20$26$13
Claude Opus 5.5$12$40$52$26
GPT-6.2 Astra or Claude Fable 5.2$24$80$104$52

The lesson: for bulk writing, the gap between small and top models is 80 times. Start small, read 50 outputs, and only step up if they are not good enough.

How to choose in an afternoon

  1. Write 20 real prompts from your actual job, including the awkward ones.
  2. Run them on one small and one mid model from two makers. Google's free tier and small models make this cost cents.
  3. Score the outputs on what matters: accuracy, tone, format, length.
  4. Price the winner at your monthly volume, with batch and caching if your work allows.
  5. Re-test every few months. New models arrive often and prices tend to fall.

Who should pick what

  • Pick a small model (Haiku 5.5, GPT-6 Luna) if you process large volumes of short, simple text.
  • Pick a mid model (Sonnet 5.5, GPT-6.2 Sol) if you want strong writing and chat at a fair price. This is the default.
  • Pick a top model (Opus 5.5, Fable 5.2, GPT-6.2 Astra, Gemini 4 Carbon) if errors are expensive or the reasoning is hard.
  • Pick Gemini if you want to prototype on a free tier or already run on Google Cloud.
  • Pick Mistral if you want a low-cost large model or a European provider.
  • Pick open weights if data must stay in-house or you need full control.

For the leaderboard view of who is strongest right now, read best AI models; for code specifically, best AI model for coding. Everything else is in the AI tools hub.

Questions people ask

What is the best AI model for text generation?

There is no single best. For most writing and chat, a mid-tier model such as Claude Sonnet 5.5 or GPT-6.2 Sol (both $2 in, $10 out per million tokens) gives strong quality at a sane price. For hard reasoning, a top model. For millions of short items, a small model. Test two on your own prompts.

What is a text generation model?

A large language model that predicts the next piece of text, called a token, again and again until it has an answer. You give it a prompt; it writes a reply, a summary, an email, code or a story. Chatbots like ChatGPT, Claude and Gemini are apps built on top of these models.

Are there free AI models for text generation?

Yes, in two ways. Google's Gemini API lists a free tier on several models, including Gemini 4 Hydrogen and its Flash models. Open-weight models are free to download and run on your own hardware, under each licence. Anthropic says the Claude API has no free tier; you buy credits from $5.

How much does text generation cost per word?

It depends on how many tokens your text becomes, which varies by model, language and content. Use each provider's token counter on a sample of your real text, then multiply by the output price. Anthropic notes its newer models' tokenizer produces about 30% more tokens for the same text, so compare real bills, not list prices.

Should I use an open-weight model or an API?

Use an API if you want the best quality with no servers to run. Use open weights if data must stay on your own machines, you need deep fine-tuning, or volume is so high that owning hardware is cheaper. Read the licence: Mistral says its open-weight models are Apache 2.0 for research or individual use, with commercial terms separate.

How do I cut the cost of a text generation API?

Use the smallest model that passes your quality test, send work that can wait through the batch API (about 50% off at Anthropic, OpenAI and Mistral), and cache long repeated prompts. Anthropic says cache reads cost 0.1x the input price on most models, and less on its newest ones.

Sources

Every fact above comes from these pages. Prices change, so each one carries the date we read it.

  1. Claude API pricing (platform docs), checked 4 Dec 2026
  2. OpenAI API pricing, checked 4 Dec 2026
  3. Google AI Studio: Gemini API pricing, checked 4 Dec 2026
  4. Mistral AI pricing, checked 4 Dec 2026
  5. Cloudflare Workers AI: How to choose the right text generation model, checked 4 Dec 2026
  6. IBM: What is text generation?, checked 4 Dec 2026