Skip to main content
POST https://api.voidai.app/v1/responses/compact Requires authentication and access to the selected model. This operation is non-streaming and billed. Send model and the context to compact. The schema accepts input as text, input items, or null, and supports optional instructions, previous_response_id, tools, and reasoning. Availability of context continuation and other options depends on the model/provider.
The gateway uses native compaction where supported. Otherwise it can make a normal generation request to summarize the supplied context. The output and semantics can therefore differ by provider; do not assume an opaque compaction item or identical context reconstruction on every model. Inspect the returned output before using it in subsequent requests. See Responses, credits, and request usage.