2026-10-27 · Economy mode (batches) and prompt caching

2026-10-27 · Economy mode (batches) and prompt caching

Context

Large collections are expensive: hundreds of pages to read, or an analysis over a whole archive (issue #7). Two provider features lower the price of the calls that still have to be made after Scriptorium’s own result cache: batch services, which answer within a day at half price, and prompt caching, which bills a repeated prefix at a fraction of the input price. This entry draws on each provider’s documentation as read on 27 October 2026 (Gemini batch mode and caching, OpenAI Batch API and prompt caching, Claude Message Batches and prompt caching, Mistral batch jobs and prompt caching). These details change often; check them again before relying on the figures below.

What the providers offer

  Gemini OpenAI Claude Mistral
Batch covers generateContent Responses, not transcription Messages OCR, chat, transcription
Discount 50% 50% 50% 50%
Window 24 h target, expires at 48 h 24 h 24 h, most within 1 h timeout_hours, 24 by default
Sent as inline (under 20 MB) or a JSONL file a JSONL file inline, up to 256 MB inline (under 10,000) or a JSONL file
Results kept 6 weeks 30 days 29 days from creation unclear (24 h or no limit)
Caching implicit, 4,096-token minimum on current models automatic, 1,024-token minimum explicit marker, 512-token minimum on the 5.x models prompt_cache_key
Cached input about 10% (Argon 5%) 10% (GPT-6.1 Sol and Terra 5%), writes 1.25× 10% (Opus and Sonnet 5.5 5%, Fable 2.5%), writes 1.25× 10%
Cached tokens reported in cachedContentTokenCount (part of the prompt count) input_tokens_details.cached_tokens, .cache_write_tokens (part of input_tokens) cache_read_input_tokens, cache_creation_input_tokens (not in input_tokens) prompt_tokens_details.cached_tokens (part of prompt_tokens)

Claude states that cache and batch discounts stack; OpenAI’s price list implies it; Gemini’s pages disagree with each other; Mistral says nothing.

Decisions

Consequences