Base URL
Authentication
All requests require a Bearer token:Compatibility
The OpenCompress API is fully compatible with the OpenAI Chat Completions API. Any SDK, library, or tool that works with OpenAI will work with OpenCompress by changing the base URL.Available endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/chat/completions | Create a chat completion (with compression) |
Request format
Response format
Token counts in
usage reflect the compressed token counts — what the model actually processed. This is what you’re billed for.