Compress a conversation with Context Memory and return compressed messages and usage (no model inference)

post/v1/memory

Request body

expiration_daysinteger

Retention in days (1..365). Defaults to 30 if not provided.

model_context_limitinteger

Target context size for compression (minimum enforced 10,000)

Response

Memory compression response

Changes

No recorded changes to this endpoint across all 1 revision of this API.