What your AI agent will cost after 1 December, and how prompt caching cuts it

Line drawing: an agent loop of 20 turns, 19 cached and one new, beside a calendar with 1 December circled and a times-two price tag.

Are any of your AI agents using Gemini 4 Argon at your organization? If so, on 1 December, anything running on it, including agent loops (the core iterative cycle of an agent completing tasks without human intervention), will double in cost compared to 30 November. Mark 1 December on your team’s calendar and bring this up during your next budget meeting. For agent loop costs, prompt caching and pricing tiers might be helpful. Another noteworthy feature introduced this week is Claude’s new message threads. These threads could enhance your AI workflow without affecting costs.

These are all important changes involving both performance and cost, the two things every business, small or large, is trying to improve.

Four changes, two deadlines

  • The big one is 1 December for any AI agents running on Gemini 4 Argon, on all tiers. These will cost twice as much from 1 December (Gemini API pricing). No code change is required for that to happen.
  • On 30 November, fast mode on Claude Opus 4.8 is removed (it was deprecated on 30 October), and Opus 5.5 is the named replacement.
Two of the four recent changes are deadlines still ahead: Opus 4.8 fast mode goes away on 30 November and Gemini 4 Argon prices double on 1 December.
Chart 1 (timeline): Recent changes to AI pricing and APIs. Filled dots are dates to act before.

The other two are optional.

  • OpenAI added a 12-hour prompt cache on 20 October (changelog), and
  • Anthropic released message threads in beta on 2 November (Claude release notes).

Your agent reads everything again, every turn

AI providers charge based on token usage. A token is a small piece of text. Pricing is usually set per million tokens, covering both input (what goes into the model) and output (what comes out).

An AI agent loop works in iterative turns to complete a task. On each turn it might look up an order, then decide what to do next. Each turn, the model rereads the whole conversation, plus whatever is new.

Left: by turn 20 the agent reads 50,000 tokens to add only 2,000 new ones. Right: added up over 20 turns that is 620,000 tokens in, 570,000 of them read again and 50,000 new.
Chart 2 (re-reads per turn, and the total): Left, each turn. Right, all 20 turns added up: 620,000 tokens in. Illustrative workload; prices from the linked sources.

The chart uses a made-up run: 20 turns, a 12,000-token setup (instructions and tool descriptions), about 2,000 new tokens and 500 output tokens a turn. In total, 620,000 tokens in and 10,000 out during the entire 20-turn agent loop to complete an imaginary task. Your agent will use different amounts, so measure it before you trust our numbers.

The grey part of each bar is text the model has seen before. Prompt caching enables you to not pay the full price for it. The provider keeps the repeated part of the text. Storing that text for the first time is called a cache write, which costs a bit more than normal input. Reading it back is a cache read, and that is where we save the cost. On Opus 5.5, input is $4 per million tokens, a cache write $5 and a cache read $0.20.

With caching, our run reads 570,000 tokens (grey part in Chart 2) from the cache and writes only 50,000 new ones (orange part in Chart 2).

Caching brings one 20-turn run on Opus 5.5 down from $2.68 to about $0.56, a cut of about 79%.
Chart 3 (cost of one run): Same example run on Claude Opus 5.5.

Total cost is $0.56, with approximately $0.11 spent on cache reads, $0.25 on cache writes, and $0.20 on output. The output cost remains the same.

In production, we run most of our AI workflows with prompt cache on. It helps with both speed and cost.

What 10,000 runs cost

Here is the same 20-turn agent run 10,000 times on four setups. Opus 5.5 fast mode writes answers up to 2.5 times faster, but costs twice as much.

For 10,000 runs, caching saves more than switching models, and from 1 December Gemini 4 Argon costs about the same as Opus 5.5.
Chart 4 (10,000 runs, four setups): Same example run, 10,000 times, at list prices. Argon’s cached figures are a best case.

On 1 December Argon’s prices double, which puts them level with Opus 5.5 for this workload. Google doesn’t let you choose what gets cached, so our Argon figures assume the best case.

Claude’s message threads help with speed only

Claude holds the session’s conversation on its servers. For each turn, you send only the new messages. The threads documentation says: “Threads do not change pricing or rate limits,” and “A thread does not cache your prompt for you.” Per the docs, the wait before the reply starts “stays lower and steadier as the conversation grows.”

Message threadsPrompt caching
What it changesSpeed in long conversationsPrice of repeated text
Effect on priceNoneAbout 79% less in our example
What you send each turnOnly the new messagesThe whole conversation; repeats bill at the cache-read rate
Opt in?YesYes
After 5 idle minutesThread expiresCache expires (default; a one-hour option costs more to write); next request writes it again
Zero data retention (ZDR) and HIPAANot eligibleEligible for both (ZDR excludes some models)

Would we use threads for a client today? Not yet. We never use a new feature right away for our clients, especially for production workflows. We first do our in-house experimentation and understand the feature well, and then, based on our findings, we make recommendations either way.

What happens when a human approval pauses the loop for more than five minutes?

Your thread is gone. A thread “expires 5 minutes after its last request,” and each stored response restarts that clock. Agent loops pause often, for example while waiting on a refund approval.

The prompt cache‘s default lifetime is also five minutes. Either can also expire sooner than that. Wait longer, and the next request writes the whole conversation into the cache again.

A pause of more than five minutes at turn 15 forces the whole 40,000-token conversation to be written again, raising the run from $0.56 to $0.75, about a third more.
Chart 5 (one long pause): Same example run, cached, with and without one long pause.

At turn 15 the conversation is 40,000 tokens. Normally that turn’s input costs about $0.02. After a long pause, writing it all again costs $0.20. If human approvals often take longer, a one-hour cache can work out cheaper.

The other fix is to stop the agent waiting at all. In a support-assistant deployment we run for a client, larger refunds wait for a person to approve them, but the agent doesn’t wait with them. Either a person joins the chat, if someone is available in the live support team, or the agent tells the customer the request has been submitted and that a representative will reach out if more information is needed.

In our own agent work, there is always some approval to wait for. A few months ago, you had to give approval at pretty much every tiny step. Recently, Claude models and the harness around them have improved, and they are able to carry out bigger tasks without asking for repeated approvals. We have also fine-tuned our CLAUDE.md files and project settings, so the agent can consult them for general and project rules and permissions instead of stopping to ask.

Is OpenAI’s 12-hour cache worth it?

On OpenAI, a cache lasts 30 minutes by default. Since 20 October you can pay 2.5 times the input price, once, to keep it for 12 hours (changelog). The normal cache costs 1.25 times input each time it has to be written again.

With one rewrite in 12 hours the 30-minute cache is still cheaper (2.50x against 2.60x), but with two rewrites the 12-hour cache wins (2.70x against 3.75x).
Chart 6 (12-hour cache break-even): Each grey bar is what the 30-minute cache costs if it lapses that many times in 12 hours. The red line is the 12-hour cache. In multiples of the setup’s normal input price.

If your normal cache would lapse twice or more in a day, the 12-hour one is cheaper. That fits a support assistant that goes quiet over lunch. If your assistant gets a message every few minutes, the normal cache never lapses and you don’t need it.

Sensitive and regulated work

Threads are not eligible for zero data retention (ZDR) or HIPAA, so if you rely on a ZDR arrangement, keep that work off threads. Anthropic holds thread content in memory only, encrypted, and deletes it within an hour of last use.

For Canadian public-sector teams, up to an hour of server-side retention is a new data flow for your privacy and security reviewers to assess. Whether that rules threads out for Protected B is for your department to decide.

What to do before 1 December

This week: enable prompt caching where possible, factor the Argon cost increase into your budget, and play with message threads before deploying them in production.

What to doBy whenWhy
Re-budget Gemini 4 Argon1 DecemberSpend doubles. For work nobody waits on, Batch and Flex from 1 December cost what Standard costs today ($2, $10, $0.10). Neither suits a live agent.
Move fast-mode calls to Opus 5.530 NovemberOpus 4.8 fast mode stops working. Opus 5.5 fast mode is cheaper ($8 input and $40 output against $10 and $50).
Turn on prompt cachingNow$2.68 against about $0.56 a run in our example.
Plan for pauses over five minutesNowA long wait rewrites the cache, and an expired thread must be rebuilt.
Ask your developer to report cache use per runOngoingA broken cache doesn’t change how much text you send, so you only notice it on the bill. On Argon it also shows how close you are to the best case.
Decide on OpenAI’s 12-hour cache, per promptNext OpenAI cost reviewIt pays off from the second rewrite.

For more on the model itself, see our 14 October post on Gemini 4 Argon. If you want us to check your numbers, email contact@datalya.com.

For your developer

Threads sit behind the message-threads-2026-08-12 beta header. After 30 November, requests to claude-opus-4-8 with speed: "fast" return an error. Limits from the threads documentation:

LimitWhat happensWhat to do
Append-only; each response id can be continued onceNo branching or editingStart a new thread
system and tools only on create400 if sent on continue, even as nullSet them once
Fixed fields must match (model, tool_choice, thinking, top-level cache_control, the set of beta headers, a few others)400 thread_fingerprint_mismatchKeep them identical
Message Batches, token counting, compactionNot supportedUse the plain Messages API
Four cache breakpoints max; top-level cache_control is one, and those on create’s system and tools count again on every continue400 thread_unsupported_requestCount them
Expired thread404, error.details.error_code = thread_not_found, no reason given. An unknown model also returns 404Check the code before you replay
SDK helper “Replays the full conversation once in a new create request” on thread_not_found (or two other thread errors)History lives only in memory while the helper existsKeep your own copy if a pause can outlast your process
No API to read a thread backYour application is the source of truthStore the history
Organization has HIPAA readiness or Inference hooks enabledThreads can’t be usedUse the stateless Messages API

Two clocks: each stored response restarts the thread’s five minutes, and each cache read restarts the cache’s. Threads are also “best-effort,” so one can be gone sooner. A one-hour cache is written at 2x base input, $8 per million tokens on Opus 5.5. Thread content is held in memory, encrypted under a server-managed key, never written to durable storage, and deleted no more than one hour after last use.

Fast mode: “Prompt caching multipliers apply on top of fast mode pricing,” so a cache write is $10 and a read $0.40 on Opus 5.5. It gives “up to 2.5x higher output tokens per second”; the docs don’t promise a faster first token. A fallback from fast to standard speed misses the cache: “Requests at different speeds do not share cached prefixes.”

Adapted from the docs:

client = anthropic.Anthropic()

# Create the helper. This call sends no request.
thread = client.beta.messages.thread(
    model="claude-opus-5-5",
    max_tokens=1024,
    cache_control={"type": "ephemeral"},
    system="You are a support agent for Acme. Keep replies short.",
)
thread.send({"role": "user", "content": "Hi! I have a question about an order."})

Caching is a separate opt-in (the cache_control line), and you choose the breakpoints.

Treat the rebuild as normal. Store the full message list, system prompt and tool definitions yourself, updated after every turn. On a 404 thread_not_found, send the full conversation in a new create request and continue from that response’s id. Then test it: pause past five minutes and confirm the agent resumes correctly.

Workload caveats: token counts differ between providers’ tokenizers, and thinking tokens bill as output. Argon Standard goes from $2 input, $10 output and $0.10 cached input to $4, $20 and $0.20 on 1 December, on Standard, Batch, Flex and Priority alike. Google’s pricing page says “Implicit caching only (explicit caching is not supported),” so our cached Argon rows assume every repeated prefix hits, and new tokens bill as ordinary input. From 1 December, cached Argon still runs about $0.05 a run under Opus 5.5 in our example. The gap is the 50,000 newly written tokens: Opus bills them at its $5 cache-write rate, Argon at its $4 input rate.

For OpenAI, the changelog says “12-hour cache writes cost 2.5x the input token price,” and on 21 October it added an option to restrict which service tiers a project can use. The prompt caching guide says that on GPT-5.6 and later a 30-minute write costs 1.25x input and a 12-hour write 2.5x. Reads cost the same for both: 0.1x on most models, 0.05x on GPT-6.1 Sol and Terra. With G rewrites in 12 hours and read ratio r, the 12-hour cache wins when G >= 1.25 / (1.25 – r), which means two rewrites at either read ratio.

Sources