{
"results": {
"success": true,
"compressed_prompt": "Your optimized context here...",
"original_prompt": "Summarize the key facts.",
"original_prompt_tokens": 150,
"compressed_prompt_tokens": 65,
"compression_ratio": 0.43
},
"model_used": "gpt-4o",
"input_tokens": 150,
"total_original_tokens": 150,
"total_compressed_tokens": 65,
"num_pairs_processed": 1,
"num_successful": 1,
"num_failed": 0,
"successful": true,
"partially_successful": false,
"latency_ms": 2341,
"request_metadata": {
"compression_time_ms": 2341,
"compression_rate": "auto",
"average_compression_ratio": 0.43
}
}
Getting Started
Understanding the response
What the Compress API returns and how to read it.
The API response provides the compressed prompt along with useful metadata about the operation.
