curl --request POST \
--url https://gomodel.example.com/v1/responses/compact \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"input": "<string>",
"instructions": "<string>",
"metadata": {},
"model": "<string>",
"provider": "<string>",
"reasoning": {
"effort": "<string>"
}
}
'{
"created_at": 123,
"error": {
"code": "<string>",
"message": "<string>"
},
"id": "<string>",
"metadata": {},
"object": "<string>",
"output": [
{
"arguments": "<string>",
"call_id": "<string>",
"content": [
{
"annotations": [
{}
],
"image_url": {
"detail": "<string>",
"media_type": "<string>",
"url": "<string>"
},
"input_audio": {
"data": "<string>",
"format": "<string>"
},
"text": "<string>",
"type": "<string>"
}
],
"id": "<string>",
"name": "<string>",
"role": "<string>",
"status": "<string>",
"type": "<string>"
}
],
"provider": "<string>",
"usage": {
"completion_tokens_details": {
"accepted_prediction_tokens": 123,
"audio_tokens": 123,
"reasoning_tokens": 123,
"rejected_prediction_tokens": 123
},
"input_tokens": 123,
"output_tokens": 123,
"prompt_tokens_details": {
"audio_tokens": 123,
"cached_tokens": 123,
"image_tokens": 123,
"text_tokens": 123
},
"raw_usage": {},
"total_tokens": 123
}
}Response compact request
Was this page helpful?
curl --request POST \
--url https://gomodel.example.com/v1/responses/compact \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"input": "<string>",
"instructions": "<string>",
"metadata": {},
"model": "<string>",
"provider": "<string>",
"reasoning": {
"effort": "<string>"
}
}
'{
"created_at": 123,
"error": {
"code": "<string>",
"message": "<string>"
},
"id": "<string>",
"metadata": {},
"object": "<string>",
"output": [
{
"arguments": "<string>",
"call_id": "<string>",
"content": [
{
"annotations": [
{}
],
"image_url": {
"detail": "<string>",
"media_type": "<string>",
"url": "<string>"
},
"input_audio": {
"data": "<string>",
"format": "<string>"
},
"text": "<string>",
"type": "<string>"
}
],
"id": "<string>",
"name": "<string>",
"role": "<string>",
"status": "<string>",
"type": "<string>"
}
],
"provider": "<string>",
"usage": {
"completion_tokens_details": {
"accepted_prediction_tokens": 123,
"audio_tokens": 123,
"reasoning_tokens": 123,
"rejected_prediction_tokens": 123
},
"input_tokens": 123,
"output_tokens": 123,
"prompt_tokens_details": {
"audio_tokens": 123,
"cached_tokens": 123,
"image_tokens": 123,
"text_tokens": 123
},
"raw_usage": {},
"total_tokens": 123
}
}