> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scaledown.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

```json theme={null}
{
  "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
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.