{
  "id": "ao-caching-across-providers-table",
  "kind": "table",
  "slug": "ao-caching-across-providers",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/ao-caching-across-providers/",
  "title": "Prompt-caching fields by provider",
  "columns": [
    "provider",
    "field_or_rule",
    "detail"
  ],
  "rows": [
    {
      "provider": "OpenAI",
      "field_or_rule": "activation threshold",
      "detail": "Prompt caching activates automatically for prompts longer than 1024 tokens; the completions request does not need a change."
    },
    {
      "provider": "OpenAI",
      "field_or_rule": "scope",
      "detail": "Caches are scoped at the organization level; only members of the same organization can use a shared cache."
    },
    {
      "provider": "OpenAI",
      "field_or_rule": "prefix matching",
      "detail": "The system checks the beginning portion of the prompt; a match reuses the cached prefix."
    },
    {
      "provider": "OpenAI",
      "field_or_rule": "cached_tokens",
      "detail": "usage.prompt_tokens_details.cached_tokens reports how many prompt tokens came from the cache, including requests under 1024 tokens."
    },
    {
      "provider": "Claude",
      "field_or_rule": "automatic cache_control",
      "detail": "Add a single cache_control field at the top level of the request; the system manages breakpoints. The cookbook uses type ephemeral."
    },
    {
      "provider": "Claude",
      "field_or_rule": "explicit cache_control",
      "detail": "Place cache_control on individual content blocks for finer control. Up to four explicit breakpoints per request. Automatic caching uses one slot."
    },
    {
      "provider": "Claude",
      "field_or_rule": "Cache TTL",
      "detail": "Default TTL is 5 minutes, refreshed on each hit. A 1-hour TTL is also available."
    },
    {
      "provider": "Claude",
      "field_or_rule": "minimum cacheable length",
      "detail": "Model-dependent; the cookbook gives 512 tokens on Claude Opus 5.5 as an example."
    }
  ],
  "related_slugs": [
    "ao-caching-openai-automatic-prompt-caching",
    "ao-caching-anthropic-cache-control"
  ],
  "license": "CC-BY-4.0",
  "source_license": "MIT (OpenAI Cookbook); MIT (Claude Cookbooks); prose restates cited source lines in own words",
  "as_of": "2026-11-16",
  "status": "week-draft-20261116",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}
