@@ -665,7 +665,9 @@ components:
665665 AnthropicCacheControlDirective:
666666 description: >-
667667 Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints
668- to the last cacheable block in the request. Currently supported for Anthropic Claude models.
668+ to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache
669+ breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter
670+ converts them to the provider's native format.
669671 example:
670672 type: ephemeral
671673 properties:
@@ -4459,7 +4461,9 @@ components:
44594461 - $ref: '#/components/schemas/AnthropicCacheControlDirective'
44604462 - properties: {}
44614463 type: object
4462- description: Cache control for the content part
4464+ description: >-
4465+ Anthropic-style cache breakpoint for the content part. Interchangeable with the OpenAI-style
4466+ `prompt_cache_breakpoint` marker: OpenRouter converts between the two based on the provider serving the request.
44634467 example:
44644468 ttl: 5m
44654469 type: ephemeral
@@ -4555,6 +4559,8 @@ components:
45554559 properties:
45564560 cache_control:
45574561 $ref: '#/components/schemas/ChatContentCacheControl'
4562+ prompt_cache_breakpoint:
4563+ $ref: '#/components/schemas/PromptCacheBreakpoint'
45584564 text:
45594565 type: string
45604566 type:
@@ -5048,6 +5054,11 @@ components:
50485054 format: double
50495055 nullable: true
50505056 type: number
5057+ prompt_cache_key:
5058+ nullable: true
5059+ type: string
5060+ prompt_cache_options:
5061+ $ref: '#/components/schemas/PromptCacheOptions'
50515062 provider:
50525063 $ref: '#/components/schemas/ProviderPreferences'
50535064 reasoning:
@@ -18444,8 +18455,9 @@ components:
1844418455 type: object
1844518456 PromptCacheBreakpoint:
1844618457 description: >-
18447- Marks an explicit prompt-cache boundary on this content block. Everything through the block carrying this marker
18448- is part of the candidate cached prefix. Only supported by OpenAI GPT-5.6 and newer.
18458+ Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block
18459+ carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on
18460+ providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically.
1844918461 example:
1845018462 mode: explicit
1845118463 nullable: true
0 commit comments