Skip to content

[FEATURE REQ] add ability to set prompt_cache_retention for requests #853

@danfaber

Description

@danfaber

Describe the feature or improvement you are requesting

the api docs mention that you can now set the prompt cache retention to 24 hours, instead of the standard 5-10 minutes
https://platform.openai.com/docs/guides/prompt-caching

{
"model": "gpt-5.1",
"input": "Your prompt goes here...",
"prompt_cache_retention": "24h"
}

it would be brilliant to be able to set it in the .net SDK too - both on the chat and responses clients.

could it be added to the following objects:
ResponseCreationOptions and ChatCompletionOptions

Many thanks.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: responsesThis item is related to Responsesblocked: specThis issue is blocked on a needed REST API spec update.feature-requestCategory: A new feature or enhancement to an existing feature is being requested.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions