> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-dev-127-conversation-state-store.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AnthropicCacheControlDirective

Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models.

## Example Usage

```typescript theme={null}
import { AnthropicCacheControlDirective } from "@openrouter/sdk/models";

let value: AnthropicCacheControlDirective = {
  type: "ephemeral",
};
```

## Fields

| Field  | Type                                                                                          | Required             | Description | Example |
| ------ | --------------------------------------------------------------------------------------------- | -------------------- | ----------- | ------- |
| `ttl`  | [models.AnthropicCacheControlTtl](../models/anthropiccachecontrolttl.mdx)                     | :heavy\_minus\_sign: | N/A         | 5m      |
| `type` | [models.AnthropicCacheControlDirectiveType](../models/anthropiccachecontroldirectivetype.mdx) | :heavy\_check\_mark: | N/A         |         |
