Prompt caching — researched

Prompt caching lets the API reuse an already-processed prompt prefix (tools → system → messages) across requests to cut cost and latency: Anthropic offers automatic caching or explicit `cache_control: {"type": "ephemeral"}` breakpoints with 5-minute or 1-hour TTLs, bills cache writes at 1.25×/2× and cache hits at 0.1× the base input price, and reports them in usage.cache_creation_input_tokens / cache_read_input_tokens; OpenRouter passes cache_control through to Anthropic and Gemini, adds provider sticky routing, and documents OpenAI automatic caching. Two of the three docsets contributed (the OpenAI export is empty).

Related concepts