Get your API key
Create an account
Sign up at opencompress.ai/dashboard.
sk-occ- and works like any other LLM API key.
Integration
OpenCompress is a drop-in replacement for any OpenAI-compatible endpoint. Change two values:| Setting | Before | After |
|---|---|---|
| Base URL | https://api.openai.com/v1 | https://www.opencompress.ai/api/v1 |
| API Key | sk-... (OpenAI) | sk-occ-... (OpenCompress) |
Code examples
Your prompts are compressed transparently before reaching the model. The response you receive is identical in format to a direct OpenAI API call.
What happens behind the scenes
Supported models
OpenCompress works with any model available on OpenRouter:OpenAI
GPT-4o, GPT-4o-mini, GPT-4.1, GPT-4.1-mini, GPT-4.1-nano
Anthropic
Claude Opus 4.6, Claude Sonnet 4.6, Claude Haiku 4.5
Gemini 2.5 Pro, Gemini 2.5 Flash
Meta
Llama 4 Maverick, Llama 4 Scout
DeepSeek
DeepSeek V3, DeepSeek R1
BYOK
Use your own API key with any provider
Next steps
How It Works
Understand the compression pipeline
BYOK Mode
Use your own LLM API key