---
title: "Compact Response"
method: POST
path: "/v1/responses/compact"
tags: ["responses"]
---

# Compact Response

`POST /v1/responses/compact`

Compact a response by running a compaction pass over a conversation.

Returns encrypted, opaque items that can be used to reduce context size.

Follows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/compact

```bash
curl -X POST http://localhost:4000/v1/responses/compact     -H "Content-Type: application/json"     -H "Authorization: Bearer sk-1234"     -d '{
    "model": "gpt-4o",
    "input": [{"role": "user", "content": "Hello"}]
}'
```

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.net/flock/apis/litellm-api.md) · [All operations](https://skmtc.net/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flock/litellm-api/revisions/8fbaab4fc7c5/schema)
