/responses/compactCompact a conversation
Compacts a conversation into a smaller response representation. Provide the required model and the input or previous response context to reduce the conversation while preserving the output items needed for continued work. The response includes the compacted output and token usage details.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
Conversation configuration used to create a compacted response.
One documented failure
slow_downYour request rate increased too quickly. Please reduce the request rate and gradually increase it again.
Traffic increased too quickly
One documented failure
server_is_overloadedThe model is temporarily overloaded. Please retry your request after a brief delay.
The requested model is temporarily overloaded
The model field is required. A 429 is returned when the rate limit is exceeded, including traffic that increases too quickly; a 503 is returned when the requested model is temporarily overloaded. prompt_cache_key must be no more than 64 characters, and service_tier must be one of auto, default, fast, flex, or priority when provided.