Cached Input Tokens

Quick definition

Input tokens eligible for reduced processing or billing because identical prompt prefixes were reused.

Input tokens eligible for reduced processing or billing because identical prompt prefixes were reused.

Why it matters: Caching conditions depend on the model provider and whether requests share a supported prefix.

Practical example: A customer-service app reuses its policy instructions across many sessions.

Common use cases: Latency reduction, cost savings, and repeated prompts.

Examples

  • A customer-service app reuses its policy instructions across many sessions.

Use cases

  • Latency reduction, cost savings, and repeated prompts.

Frequently asked questions

What is Cached Input Tokens?

Input tokens eligible for reduced processing or billing because identical prompt prefixes were reused.

What should I know before using Cached Input Tokens?

Caching conditions depend on the model provider and whether requests share a supported prefix. Example: A customer-service app reuses its policy instructions across many sessions.

Categories and tags

Sources

  1. https://developers.openai.com/api/docs