Home › Claude API lesson 3: Batches, caching

Claude API lesson 3: Batches, caching

Last checked

Two features lower your bill: the Message Batches API runs non-urgent requests at 50% off, and prompt caching re-uses a long, repeated prompt instead of paying full price every time.

Step by step

  1. Group requests that don't need an instant answer and send them to the Message Batches API.
  2. Poll the batch; most finish in under an hour.
  3. For a long prompt you reuse (instructions, a document), add one top-level cache_control field to turn on automatic caching.
  4. Or place cache_control on specific content blocks for exact control.
  5. Compare cache read and write costs on the pricing page with your normal input cost.

Try it: examples

Good to know

Sources (official pages, read Nov 8, 2026)

Written from Anthropic's official documentation and product pages; we don't run hands-on tests. Features and limits vary by plan and country.

Report an error on this page