Skip to main content
POST
/
responses
/
compact
Model Responses Compact
curl --request POST \
  --url https://{controlPlaneURL}/api/llm/responses/compact \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "input": "<unknown>",
  "instructions": "<string>",
  "previous_response_id": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-tfy-metadata
string

Optional metadata for the request

Body

application/json

Parameters for compact model response.

model
string
required

Model identifier

input
any

Text, image, or file inputs to the model

instructions
string | null

System message as first item in context

previous_response_id
string | null

ID of previous response for multi-turn

Response

200 - application/json

Model response