AI cost per task: explicit chat, retrieval, document, and agent scenarios

Computed workload examples with stated usage, current rates and clear boundaries for caching, retrieval, batch work, media and self-hosting.

By benchr Editorial Team · · · Changelog

AI cost per task: explicit chat, retrieval, document, and agent scenarios
A request shape is an explicit scenario; production averages require measured usage.

The same model can produce very different bills for a short classification, a document review and a multi-turn agent. Estimate the actual request distribution before comparing unit prices. The examples here use stated token counts and current canonical rates. They are hypothetical scenarios, not measurements of typical traffic or claims about model quality.

Start with a request shape

A text-token subtotal is ordinary input at its rate, plus eligible cache operations and billable output. A feature total adds every request and any separately billed tools, storage, retrieval or media. A monthly estimate also needs request volume, retries and the share of outcomes that are accepted.

Illustrative single-request shapes; no caching or extra fees
ScenarioInput / output tokensGPT-6.1 SolClaude Sonnet 5.5
A short answer2,000 / 500$0.009$0.009
Answer over retrieved material8,000 / 800$0.024$0.024
Document summary50,000 / 2,000$0.12$0.12
Long-document analysis200,000 / 4,000$0.44$0.44

Equal token counts are a comparison assumption. The models can tokenize the same text differently, generate different lengths or require different repairs. Equal prices in a scenario do not establish equal latency, quality, availability or permitted request options. Use the OpenAI and Claude contract guides before turning a rate comparison into a routing rule.

Chat grows through retained history

A chat estimate needs the history policy, not only the latest user message. If the client resends prior turns, later requests contain that retained context. If it summarizes or retrieves history, include those operations and check what information is lost. A cache hit can change the bill but does not remove the context from an input-length pricing band unless the provider explicitly says so.

Build scenarios from a distribution of short, medium and long sessions. Include users who abandon a response, ask for a correction or restart after an error. Do not infer cost per user from one clean demonstration turn.

Retrieval includes work outside the final answer

A retrieval workflow can involve ingestion, embeddings, storage, search, reranking and the answer request. The table above prices only the final token request. A comparison that counts all of one architecture and only that final request in another is incomplete.

Evaluate retrieved passages against source-linked questions and missing-answer cases. Extra chunks can increase cost without supplying useful evidence. Removing chunks can lower cost while damaging coverage. Compare retrieval, long context and hybrid designs on the same acceptance set rather than assuming one is always cheaper.

Document processing needs partial-failure accounting

For a corpus, multiply each observed request group by its actual quantity. Keep OCR or page-based extraction separate from token-priced interpretation. A page is not a fixed number of tokens, and a text-model rate cannot price a separate OCR product without its billing contract.

Eligible batch processing can reduce the listed rate, but requires result identities, asynchronous status and retry handling. Preserve successful items when the job partially fails. The complete feature total includes retries and any validation or repair pass, not just the first planned request.

An agent session is a collection of requests

There is no defensible universal cost per agent session. Save every model call, tool invocation, retained context and outcome. A tool error can create another model turn and another request containing the previous history. Bound turns, elapsed time, tokens and side effects before running the loop.

Use a request mix to distinguish a routine path from a failure path. Price the individual context band on each call before multiplying. Add the cost of escalation to another model, and count failed sessions when calculating cost per accepted result. Local output review can organize evidence you supply; it does not generate a benchmark or establish that an agent succeeded.

Media and self-hosting need different units

Speech-to-speech, synthesis, transcription, images and video can use different input and output units. The Realtime and synthesis calculators support only their documented contracts. They do not infer media token counts from an arbitrary duration or pretend to start a provider session.

Open weights remove a hosted token invoice from one part of the workflow; they do not make inference free. Include hardware rental or ownership, utilization, memory, serving, maintenance and energy where applicable. State which costs are excluded rather than labeling a local model “zero cost per task.” See the self-hosting comparison for the capacity and utilization questions.

Reproduce and export an estimate

Use the request-mix calculator for groups with different request sizes, caching or service modes. It computes each supported group from the canonical billing engine and retains known components when a missing rate makes the full result incomplete. Export the assumptions, not only the displayed total.

Before using the estimate in a decision, replace the hypothetical counts with provider-reported usage from a representative test set. Keep model identifiers, rate dates, deployment, extra fees, failed work and the acceptance rule. Report sensitivity to the assumptions that matter: output length, cache reuse, long-context frequency and retries. This revision performed local calculations and documentation review; it did not execute paid model requests.

Changelog

  • 2026-10-15 — Replaced unsupported production averages, community anecdotes, free local-inference claims and stale recommendations with explicit computed scenarios and complete-workflow accounting.
  • September 11, 2026 — Added a September 2026 note on the successors (Claude Sonnet 5, Claude Opus 5, GPT-5.6 Luna) with recomputed chat-turn costs, kept the May tables as published, updated the picks grid, the small-team recommendation, and the cheapest-option FAQ, and corrected the output multiplier (5–8× on the five tabled models, not 3–5×) and the stat-hero's most-expensive output figure ($25 for Claude Opus 4.7, not $75).
  • May 25, 2026 — Pre-publication verification: checked pricing against provider documentation and prepared cost figures reflecting Anthropic's pricing adjustments and Google's Gemini 3.1 Pro Preview rollout.
  • May 30, 2026 — Published with retrospective coverage through the May 8, 2026 subject date.

Sources and documentation review

Documentation review dates are recorded per source. No provider inference or independent benchmark replication was performed for this revision.

  1. Current OpenAI token prices — read
  2. Current Claude token prices — read
  3. OpenAI cache partitions — read
  4. Claude cache partitions — read
  5. Batch behavior and partial outcomes — read