# Cross-link map: AI Gateway Automatic Prompt Caching (/docs/ai-gateway/models-and-providers/automatic-caching)

> From the Vercel docs graph (built 2026-10-29T06:02:06.399Z), spanning vercel.com docs + KB, nextjs.org, ai-sdk.dev, and other Vercel documentation sites. Full graph as JSON: https://vercel.com/docs/graph.json

## Semantically closest pages

- [Anthropic Messages API with AI Gateway](https://vercel.com/docs/ai-gateway/sdks-and-apis/anthropic-messages-api) — Use the Anthropic Messages API with AI Gateway. Configure authentication and send requests with streaming, tools, images
- [Dynamic Prompt Caching](https://ai-sdk.dev/cookbook/node/dynamic-prompt-caching) — Learn how to reduce API costs by implementing dynamic prompt caching for Anthropic models using cache control directives
- [Anthropic Messages Configuration with AI Gateway](https://vercel.com/docs/ai-gateway/sdks-and-apis/anthropic-messages-api/advanced) — Advanced Anthropic API features including web search, provider timeouts, and automatic caching through AI Gateway.
- [AI Gateway Session Affinity](https://vercel.com/docs/ai-gateway/models-and-providers/session-affinity) — Keep AI Gateway conversations on the provider that holds their prompt cache, using session IDs, fingerprinting, and pin
- [Caching](https://ai-sdk.dev/docs/advanced/caching) — How to handle caching when working with the AI SDK

## This page links to (5)

- [Anthropic](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic) — Learn how to use Anthropic with AI Gateway and the direct provider.
- [AI Gateway Session Affinity](https://vercel.com/docs/ai-gateway/models-and-providers/session-affinity) — Keep AI Gateway conversations on the provider that holds their prompt cache, using session IDs, fingerprinting, and pin
- [AI Gateway SDKs and APIs](https://vercel.com/docs/ai-gateway/sdks-and-apis) — Connect to AI Gateway with the AI SDK, Python, REST, or compatible OpenAI, Anthropic Messages, OpenResponses, and Cohere
- [OpenAI Chat Completions Configuration with AI Gateway](https://vercel.com/docs/ai-gateway/sdks-and-apis/openai-chat-completions/advanced) — Configure provider options, model fallbacks, BYOK credentials, and prompt caching through AI Gateway.
- [OpenAI Responses API with AI Gateway](https://vercel.com/docs/ai-gateway/sdks-and-apis/responses) — Use the OpenAI Responses API with AI Gateway to generate text, call tools, stream tokens, and more across any supported

## Pages that link here (14)

By site: vercel-changelog (3) · vercel-kb (1) · vercel-docs (10)

### From vercel-changelog

- [AI Gateway logs now show session affinity](https://vercel.com/changelog/ai-gateway-logs-now-show-session-affinity)
- [Ember-1 from Fireworks now available on AI Gateway](https://vercel.com/changelog/ember-1-from-fireworks-now-available-on-ai-gateway)
- [GPT-6.1 Terra now available on AI Gateway](https://vercel.com/changelog/gpt-6-1-terra-now-available-on-ai-gateway)

### From vercel-kb

- [Cost-aware model routing through AI Gateway](https://vercel.com/kb/guide/cost-aware-model-routing-with-ai-gateway) — Send easy requests to a cheap model and escalate only the hard ones to a frontier model through one AI Gateway endpoint,

### From vercel-docs

- [AI Gateway Models and Providers](https://vercel.com/docs/ai-gateway/models-and-providers) — Choose AI Gateway models and providers. Configure routing, fallbacks, timeouts, prompt caching, reasoning, and web searc
- [AI Gateway Model Filtering](https://vercel.com/docs/ai-gateway/models-and-providers/model-filtering) — Restrict AI Gateway routing to models that have specific capabilities using the has option.
- [AI Gateway Provider Routing and Fallbacks](https://vercel.com/docs/ai-gateway/models-and-providers/provider-options) — Configure provider routing, ordering, and fallback behavior in Vercel AI Gateway.
- [AI Gateway Session Affinity](https://vercel.com/docs/ai-gateway/models-and-providers/session-affinity) — Keep AI Gateway conversations on the provider that holds their prompt cache, using session IDs, fingerprinting, and pin
- [AI Gateway SDKs and APIs](https://vercel.com/docs/ai-gateway/sdks-and-apis) — Connect to AI Gateway with the AI SDK, Python, REST, or compatible OpenAI, Anthropic Messages, OpenResponses, and Cohere
- [Anthropic Messages Configuration with AI Gateway](https://vercel.com/docs/ai-gateway/sdks-and-apis/anthropic-messages-api/advanced) — Advanced Anthropic API features including web search, provider timeouts, and automatic caching through AI Gateway.
- [OpenAI Chat Completions Configuration with AI Gateway](https://vercel.com/docs/ai-gateway/sdks-and-apis/openai-chat-completions/advanced) — Configure provider options, model fallbacks, BYOK credentials, and prompt caching through AI Gateway.
- [OpenResponses Configuration with AI Gateway](https://vercel.com/docs/ai-gateway/sdks-and-apis/openresponses/advanced) — Configure provider routing, fallbacks, and restrictions using the OpenResponses API through AI Gateway.
- [OpenAI Responses API with AI Gateway](https://vercel.com/docs/ai-gateway/sdks-and-apis/responses) — Use the OpenAI Responses API with AI Gateway to generate text, call tools, stream tokens, and more across any supported
- [AI Gateway Zero Data Retention \\(ZDR\\)](https://vercel.com/docs/ai-gateway/security-and-compliance/zdr) — Learn about zero data retention policies and how to enforce ZDR on a per-request basis with AI Gateway.
