AI costs
What Does an AI Application Cost to Run? Caching, Session Length and Model Choice
Why an AI model's list price says little about real costs: measurements from a voice AI prototype on caching, session length and choosing the right provider.
By Fin Pünjer · 5 min read When planning an AI application, people look at the providers’ price tables first. Understandable – but often misleading. Whether an application is economical is decided by its architecture: how long sessions last, what gets cached and through which channel information reaches the model.
This article shows that with a concrete example: my AI language coach, a prototype for speaking Spanish freely with an AI. The measurements come from test sessions in August 2026. Model names and prices change quickly; the principles stay.
The starting point: real-time speech
For a conversation to feel natural, the AI should respond in under one second. From around one and a half seconds, the conversational feel is gone.
A classic chain of speech recognition, text model and speech output would have landed at 1.2 to 1.8 seconds. That is why the coach uses a real-time model that processes audio directly to audio. These models, however, are considerably more expensive per token than pure text models.
Think expensively, speak cheaply
The architecture distributes the work across three tempos:
- Tempo 0 – code: runs continuously and costs practically nothing. It detects, for example, when the learner switches to German or stays silent for more than three seconds.
- Tempo 1 – small text model: roughly every 90 seconds, it reads the last turns and gives the real-time model an invisible stage direction, such as “work in more past tenses”.
- Tempo 2 – strong model: analyses after the session and plans the next one.
The expensive real-time model only does what it must: speak. Thinking and planning happen where it is cheap.
Costs grow quadratically, not linearly
This is the most important – and least known – cost trap. With real-time interfaces, the entire previous context is recalculated with every turn. Turn 10 pays for turns 1 to 9 all over again.
The consequence is simple but drastic:
| Variant | Calculated input effort |
|---|---|
| One 20-minute session (~60 turns) | 1,800 units |
| Four 5-minute blocks (~15 turns each) | 450 units |
Four short blocks cost only a quarter of one long session on the input side. Each individual block costs one sixteenth.
To keep the conversation connected across blocks, the content of the previous block is passed on as a short text summary rather than as audio. Around 4,800 audio tokens become roughly 700 text tokens – and with this provider, text costs $0.60 instead of $10 per million tokens. Together, that is roughly a factor of 100.
Caching: the biggest lever
Many providers cache a constant prompt prefix and charge only a fraction for it on the next call. The fixed prefix must, however, be at least 1,024 tokens long and must not change. In this case, the cache lasts 30 minutes.
Measured on the language coach:
- The fixed prefix comprised around 25,700 tokens.
- From the second turn, 99.9% of it was read from the cache.
- As a result, the fourth turn cost $0.0087 instead of $0.27 – about one thirty-first.
One caveat belongs here: this was measured with text context. Whether the audio turns that accumulate during a conversation are cached the same way is still open.
The right channel is worth a factor of 33
Even how the stage direction reaches the model is a cost question. Inserted as a new item into the running conversation, it costs the cheap text rate. Changing the session configuration instead alters the fixed prefix, so the cache no longer applies and the whole context is recalculated at full price – here $10 instead of $0.30 per million tokens, a factor of 33.
List price versus real price
For the prototype I compared two real-time models directly: one from OpenAI and one from Google Gemini.
| Criterion | OpenAI Realtime | Gemini Live |
|---|---|---|
| Inject stage directions invisibly | directly possible | only via workarounds; one obvious route ends the session |
| Cache hit rate | 99.9% from turn 2 | no cache reported |
| Maturity | generally available | preview |
| Maximum session length | no limit documented | 15 minutes |
| Cost per 5-minute block | ~$0.10 | ~$0.25 |
On paper, Gemini was more than three times cheaper per token. In practice it was around two and a half times more expensive, because caching was missing. My estimate before measuring was $0.13 versus $0.22 – right direction, wrong order of magnitude.
Hence the most important working rule: always check model names and prices live and bill them against real sessions – never from documentation or memory.
Models can be too helpful
One last finding has nothing to do with money but matters just as much for model choice. For its analysis, the coach needs a transcript that contains the learner’s mistakes.
In a test with a synthetic voice, the “learner” said incorrectly: “yo podo hablar”. Three out of four transcription models silently turned this into the correct “puedo”; a fourth wrote “pudo”. Helpful for a normal transcript – useless for a language coach.
To be fair: with my real voice, the mistakes were transcribed faithfully, so the finding is still open. But it shows that “the best model” always depends on the use case, not on a leaderboard.
What this means for your business
Before calculating the cost of an AI application, answer these questions:
- Does the context grow with every interaction? Then costs grow faster than usage. Short sessions with summaries can save a multiple.
- Is there a fixed prompt prefix that can be cached – and is it long enough and truly constant?
- What work does the expensive model really have to do – and what can code or a small model take over?
- Does anything in the flow break the cache? A single wrong call can cost a factor of 30.
- Was it measured with real sessions, or only calculated from the price table?
- Does the model meet the functional requirement, even if it looks worse on paper?
A clean cost architecture is part of every AI integration I build. If you are planning an AI application and want to know what it really costs to run, let’s talk.