easiapiaiLLM API prices

Articles

My AI pipeline runs around the clock, and its bill is hard to forecast

By easiapiai · October 22, 2026

The number everyone compares

I run a pipeline that passes a steady stream of text through a language model around the clock. The bill depends on how much arrives, and I don't control that.

Last week that was about 70,000 requests, 124 million prompt tokens and 12 million output tokens, almost all on DeepSeek V4 Flash. At DeepSeek's own list prices it would have cost about $28, or $46 if all of it had run at peak hours. I've been on one host's promotional prices, and that host has just told its users that model availability and pricing will change soon. So I set out to work out what the same traffic would cost elsewhere.

When I choose a model, every price table leads with dollars per million tokens. Turning it into a monthly projection is the hard part. Prices move, often with little warning. Two models with the same price can use very different numbers of tokens on the same job, and the cheapest host can also be the slowest.

Disclosure: besides the pipeline, I run easiapiai.com, a site that compares AI API prices across labs and hosts. The findings below come from its data and from vendors' own pages, OpenRouter's public listings and Artificial Analysis, as of October 22, 2026. Disclaimer: every cost in this piece is my estimate from published prices and an example workload. Prices, discounts and speeds change daily, so test on your own traffic before you decide.

Prices move, and "introductory" can mean months

Since April, DeepSeek, Google, OpenAI and Anthropic have each repriced their cheap tier, through a price change, a new model at a new price, or both.

Date (2026)VendorWhat changed
Oct 17DeepSeekA new V4.1 Flash build replaced the September one under the same name. Price unchanged; its Artificial Analysis score went from 39 to 45.
Oct 7AnthropicHaiku 5.5 launched at $0.10 / $0.50 per 1M tokens, a tenth of Haiku 4.5's $1 / $5, though Anthropic puts the average saving at about 75%, because the new tokenizer uses slightly more tokens per task and prompts over 100K tokens are only 50% cheaper. Prompts over 100K tokens cost $0.50 / $2.50.
Sep 22OpenAIGPT-6 Luna launched at $0.10 / $0.50.
Sep 10DeepSeekV4.1 Flash replaced V4 Flash at $0.30 / $1.20, announced as "lower API prices". It took effect the day it was announced, and requests to the old model name are now answered by the new model.
Sep 2GoogleGemini 3.8 Flash launched at an introductory $0.75 / $3.75 until December 31. Its full price is $1.50 / $7.50.
Aug 16DeepSeekV4 Flash went from $0.14 / $0.28 to $0.44 / $1.32 at peak hours, announced three days earlier.
Aug 13GoogleGemini 3.7 Flash launched at an introductory half price, with the same December 31 end date. Requests to 3.7 Flash are now answered by 3.8 Flash.
Jul 30OpenAIGPT-5.6 Luna was cut by 80% to $0.20 / $1.20, about three weeks after launch.
Jul 21GoogleGemini 3.6 Flash launched at $1.50 / $7.50. It now sells at $0.75 / $3.75 until December 31.
Apr 24DeepSeekV4 Flash launched at $0.14 / $0.28.

Google released three Flash models between July 21 and September 2. 3.6 and 3.8 Flash both sell at half price until December 31, and 3.7 Flash now forwards to 3.8 Flash. At that pace, a newer Flash may replace 3.8 Flash before its full price is ever charged.

Notice can be short. DeepSeek announced its August increase three days ahead, and its September 10 switch took effect the day it was announced. When a lab swaps the model behind a name, as DeepSeek did on September 10 and October 17 and Google did with 3.7 Flash, what you pay for changes even if the price doesn't.

Hosts can move faster. On the morning of October 22 (UTC), OpenRouter showed discounts of 10% to 55% on 8 of the 38 endpoints serving DeepSeek V4.1 Flash and 8 of the 48 serving the full GLM-5.3 model, with no end date in the listing. Between easiapiai's snapshot on October 21 and a check on October 22, the cheapest GLM-5.3 Flash host, Relace, cut its input price by about 70% and more than doubled its output price. A few hours later it changed both again.

Same price, different bill

Artificial Analysis runs every model through the same set of hard reasoning and agentic tests and publishes an estimated cost of one pass, priced from the tokens each model used, thinking included. It shows how much token use can move a bill, which the price per token hides.

Same price per token, very different cost per run
Estimated cost of one pass through Artificial Analysis's tests, US$, with each model's score
  • Claude Haiku 5.5 (High) · score 38
    cost of the run: $94
  • GPT-6 Luna (Max) · score 38
    cost of the run: $122
  • MiniMax M3.1 Flash · score 43
    cost of the run: $283
  • GLM-5.3 Flash · score 42
    cost of the run: $306
  • Claude Haiku 5.5 (Max) · score 43
    cost of the run: $330
  • DeepSeek V4.1 Flash, Oct 17 build (Max) · score 45
    cost of the run: $445
  • DeepSeek V4.1 Flash, September build (Max) · score 39
    cost of the run: $600
  • Gemini 3.8 Flash (High) · score 41
    cost of the run: $1,623
Claude Opus 5.5 (Max), score 58, costs $8,708 and is left off this scale. Gemini 3.8 Flash is most likely priced at its introductory rate. Source: Artificial Analysis, as of October 22, 2026.
Model (setting)ScoreList price, in / out per 1MOutput tokens usedCost of the run
Claude Haiku 5.5 (High)38$0.10 / $0.5097M$94
GPT-6 Luna (Max)38$0.10 / $0.50144M$122
MiniMax M3.1 Flash43$0.15 / $0.60183M$283
GLM-5.3 Flash42$0.15 / $0.50181M$306
Claude Haiku 5.5 (Max)43$0.10 / $0.50435M$330
DeepSeek V4.1 Flash, Oct 17 build (Max)45$0.30 / $1.20211M$445
DeepSeek V4.1 Flash, September build (Max)39$0.30 / $1.20253M$600
Gemini 3.8 Flash (High)41$0.75 / $3.75 until Dec 31, then $1.50 / $7.50172M$1,623
Claude Opus 5.5 (Max), for scale58$4 / $20260M$8,708

Haiku 5.5 and GPT-6 Luna have the same list price. At its Max setting Haiku used three times as many output tokens as Luna and cost 2.7 times as much, for a score five points higher. At its High setting it matched Luna's score for less.

DeepSeek's October build of V4.1 Flash scored six points higher than the September build and cost 26% less to run, at the same price per token. By price per token, GLM-5.3 Flash and Haiku 5.5 look cheaper than MiniMax M3.1 Flash; by cost of the run, MiniMax ($283) undercuts GLM-5.3 Flash ($306) and Haiku 5.5 at Max ($330), where Haiku matches its score of 43.

Output isn't the whole bill: input and cached tokens make up between about a third and 70% of these costs. The tests are hard, so a simple classification job uses fewer thinking tokens and the absolute costs won't carry over. Artificial Analysis lists Gemini 3.8 Flash only at the introductory $0.75 / $3.75, so its $1,623 most likely uses that price; at full price the run would cost about $3,250.

A worked example: 1,000 posts

I priced 1,000 posts, each with 3,000 tokens of fixed instructions, 1,000 tokens of new text and a 300-token answer, with thinking off. "With cache" bills the instructions at the cache price; "without cache" bills every token as fresh input. Every model gets the same token counts, so the table compares prices, caching and hosts, not how many tokens each model uses.

What 1,000 posts cost
Each post: 3,000 tokens of fixed instructions, 1,000 tokens of new text and a 300-token answer, thinking off. US$, prices as listed on October 22, 2026
With cacheWithout cache
  • GLM-5.3 Flash · Relace, cheapest host
    with cache: $0.09
    without cache: $0.09
  • Haiku 5.5 or GPT-6 Luna · Batch
    with cache: $0.14
    without cache: $0.28
  • DeepSeek V4.1 Flash · Decart (fp4)
    with cache: $0.20
    without cache: $0.41
  • DeepSeek V4.1 Flash · DeepInfra (fp8)
    with cache: $0.28
    without cache: $0.69
  • Claude Haiku 5.5 · Anthropic
    with cache: $0.28
    without cache: $0.55
  • GPT-6 Luna · OpenAI
    with cache: $0.28
    without cache: $0.55
  • DeepSeek V4.1 Flash · DeepSeek, off-peak
    with cache: $0.34
    without cache: $0.78
  • MiniMax M3.1 Flash · MiniMax
    with cache: $0.38
    without cache: $0.78
  • GLM-5.3 Flash · Z.ai
    with cache: $0.39
    without cache: $0.75
  • DeepSeek V4.1 Flash · DeepSeek, peak hours
    with cache: $0.68
    without cache: $1.56
  • DeepSeek V4.1 Flash · Together, Fireworks, Parasail
    with cache: $0.68
    without cache: $1.56
  • Gemini 3.8 Flash · Google, until Dec 31
    with cache: Not cached under 4,096 tokens
    without cache: $4.13
  • Gemini 3.8 Flash · Google, from Jan 1
    with cache: Not cached under 4,096 tokens
    without cache: $8.25
GLM-5.3 Flash, MiniMax M3.1 Flash and Gemini 3.8 Flash can't switch thinking off, so their real cost is higher than shown. Gemini 3.8 Flash doesn't cache requests under 4,096 tokens.
ModelWherePrice per 1M: in / cached / outWith cacheWithout cacheNote
DeepSeek V4.1 FlashDeepSeek, peak hours$0.30 / $0.006 / $1.20$0.68$1.56Peak is 01:00–04:00 and 06:00–10:00 UTC on weekdays
DeepSeek V4.1 FlashDeepSeek, off-peak$0.15 / $0.003 / $0.60$0.34$0.78About 79% of the week; a standing rate, not a promotion
DeepSeek V4.1 FlashTogether, Fireworks, Parasail$0.30 / $0.006 / $1.20$0.68$1.56No off-peak rate
DeepSeek V4.1 FlashDeepInfra (fp8)$0.14 / $0.0042 / $0.42$0.28$0.69Marked as a 30% discount with no end date; $0.40 / $0.98 without it
DeepSeek V4.1 FlashDecart (fp4)$0.09 / $0.018 / $0.18$0.20$0.41Lowest output price listed; served in fp4
Claude Haiku 5.5Anthropic$0.10 / $0.01 / $0.50$0.28$0.55Cache writes $0.125; prompts over 100K cost 5x
GPT-6 LunaOpenAI$0.10 / $0.01 / $0.50$0.28$0.55Cache writes $0.125; cached price only if you mark where the instructions end
Haiku 5.5 or GPT-6 LunaBatch$0.05 / $0.005 / $0.25$0.14$0.28Answers arrive later; cache hits aren't guaranteed
GLM-5.3 FlashZ.ai$0.15 / $0.03 / $0.50$0.39$0.75Thinking can't be switched off, so this is a floor
GLM-5.3 FlashRelace, cheapest host$0.0083 / $0.0083 / $0.1825$0.09$0.09Format not stated; cached tokens cost the same as fresh; always thinks, so a floor
MiniMax M3.1 FlashMiniMax$0.15 / $0.015 / $0.60$0.38$0.78Always thinks, so this is a floor
Gemini 3.8 FlashGoogle, until Dec 31$0.75 / $0.075 / $3.75Not cached under 4,096 tokens$4.13Introductory price; can't switch thinking off, so a floor
Gemini 3.8 FlashGoogle, from Jan 1$1.50 / $0.15 / $7.50Not cached under 4,096 tokens$8.25Full price; can't switch thinking off, so a floor

On most rows the cache halves the bill, because the fixed instructions are three quarters of every request. Where a host prices cached tokens like fresh ones, as the cheapest GLM host does, caching saves nothing. Caching also has minimums: Google caches Gemini 3.8 Flash requests only from 4,096 tokens, so these 4,000-token requests pay the full input price. My own pipeline gets far less from it: last week only about 16% of its prompt tokens were served from the cache.

Anthropic's cache needs care in a slow pipeline. It expires five minutes after its last use, and writing it costs 1.25 times the input price, or 2 times for a one-hour cache. If posts arrive more than five minutes apart, every post pays the write price on its instructions, and 1,000 posts cost $0.63, more than the $0.55 with no cache at all. OpenAI also charges 1.25 times input for cache writes and keeps its cache at least 30 minutes after last use, but reuses the instructions only if you mark where they end. DeepSeek charges no write fee.

The table assumes thinking is off. DeepSeek thinks by default and lets you switch it off. GLM-5.3 Flash, MiniMax M3.1 Flash and Gemini 3.8 Flash can't switch thinking off, so their rows are a floor. Each 1,000 thinking tokens per post adds the output price once per 1,000 posts: $1.20 at DeepSeek's peak rate, $0.50 for Haiku, Luna or GLM-5.3 Flash at Z.ai, $0.60 for MiniMax, $0.18 at the cheapest GLM host and $3.75 for Gemini until December.

At 10,000 posts a day, with a warm cache and no thinking, that is about $84 a month on Haiku 5.5, and $203 on DeepSeek if every post ran at peak, or about $123 spread evenly over the week. Gemini 3.8 Flash at full price can't use the cache here and comes to about $2,475 before thinking.

Priced the same way, my own week (105 million fresh prompt tokens, 19 million cached and 12 million output) comes out like this:

WhereCost of my week
DeepSeek at peak, or Together, Fireworks and Parasail$46
DeepSeek off-peak$23
DeepInfra, discounted$20 ($28 without the discount)
Decart (fp4)$12
Haiku 5.5 or GPT-6 Luna$17
GLM-5.3 Flash at Z.ai$22
MiniMax M3.1 Flash$23
Gemini 3.8 Flash, introductory price$137

These reuse DeepSeek's token counts. Other labs' tokenizers would count the same text differently, cache writes aren't included, and the models that always think would add output on top. My requests average about 1,800 prompt tokens, under Gemini's cache minimum.

Where you buy changes it again

On October 22, OpenRouter listed 38 endpoints for DeepSeek V4.1 Flash, with output prices from $0.18 to $2.40 per million tokens. GLM-5.3, the full model rather than the Flash version priced above, had 48, from $1.40 to $8.80.

Many of the lowest-priced endpoints run the model in a 4-bit format, and some don't state a format at all. Whether that costs quality depends on the format the lab released, covered below.

Every endpoint carries the same dated model ID, so the listing can't tell you which of DeepSeek's two V4.1 Flash builds a host runs, and those builds score six points apart. One host can also sell the same model at several prices, through priority, flex, spot or fast tiers.

Speed, latency and precision

The cheapest endpoint can also be the slowest, and its precision label says something about quality, though less than it seems.

Speed and latency. Artificial Analysis sends the same requests to every host and reports the median over the past 72 hours. Its terms:

On a 10,000-token prompt, DeepSeek V4.1 Flash (October build) ran at 68 tokens per second on DeepInfra, 203 on DeepSeek's own API, 278 on Together AI and 630 on Systalyze. Artificial Analysis estimates a 500-token answer, after about 2,000 thinking tokens, at about 9 seconds end to end on Together AI and 38 on DeepInfra. DeepInfra is one of the cheapest hosts per token, yet Artificial Analysis puts its cost per task at $0.61, against $0.26 on DeepSeek's own API. A background job can live with a slow host; a chat that a person waits on usually can't.

You don't have to pick one endpoint for everything. Work nobody waits on, such as overnight batches or bulk enrichment, can go to a slower, cheaper host, a batch tier or DeepSeek's off-peak hours, while anything a person waits on goes to a faster one. Keep the same model on both, or test the fallback, so the answers stay consistent.

Precision. Hosts can store a model's numbers in fewer bits, so it takes less memory and costs less to serve. This is quantization, and the label on a listing names the format:

LabelMeaning
BF16, FP1616-bit formats. Many open models are released in BF16.
FP88-bit, half the memory of 16-bit.
FP4, NVFP4, MXFP44-bit. NVFP4 and MXFP4 give each small block of numbers its own scale factor, which loses less accuracy than one scale for a whole tensor.
INT8, INT48-bit and 4-bit integer formats.
unknownThe host doesn't say.

The reference point is the format the lab itself released, and it isn't always 16-bit. DeepSeek released V4 Flash with FP4 for its expert layers and FP8 for most of the rest, and its V4.1 Flash weights also store the experts in FP4. OpenAI released gpt-oss with MXFP4 expert weights and ran its evaluations in that format. So fp4 on a DeepSeek Flash listing isn't by itself a downgrade, while fp4 on GLM-5.3, which Z.ai serves in fp8, means the host compressed it further. An fp4 label also can't show whether a host cut DeepSeek's FP8 layers to 4-bit too.

A rough order for choosing a host:

  1. The lab's own API, or a host serving the format the lab released.
  2. One step below that, such as fp8 on a model released in BF16. The difference is often small, but test it.
  3. Further below, such as fp4 on a BF16 or fp8 model. Often the cheapest, with the most room for lost accuracy.
  4. Format not stated. Some large hosts, Together and Fireworks among them, don't state one on OpenRouter, so this says little either way. Test before you rely on it.

The same format doesn't guarantee the same answers. OpenRouter, which compares hosts with Artificial Analysis, said in October 2025 that it has "on rare occasions seen quality degradation as inference stacks are tweaked", and it reports bigger differences between hosts in tool calling than benchmarks show. In its DeepSeek 3.1 test, the one host serving fp4 stayed competitive. Artificial Analysis says it is still "moving towards full disclosure of quantization methods".

Limits a price table doesn't show:

What I do about it

None of these prices is wrong, but none of them is stable enough to plan a year on. This is how I budget around that:

Sources

Related: DeepInfer: why DeepSeek gave away its inference engine