Loading Apertis changelog
Feature
✨ New Feature: Context Compression
Context Compression automatically summarizes conversation history using a smaller, cost-efficient model before sending requests to your primary model. This significantly reduces input token costs while preserving conversation context.
conservative — compresses after 8+ turns (minimal context loss)on — compresses after 6+ turns (balanced)aggressive — compresses after 3+ turns (maximum savings)POST /v1/chat/completionsPOST /v1/messagesPOST /v1/responsesGo to API Key Management → Edit your API key → Enable Context Compression and select your preferred strategy. All requests using that key will automatically apply compression.
{
"model": "gpt-4.1",
"messages": [...],
"compression": {
"enabled": true,
"strategy": "on",
"model": "gpt-4.1-mini"
}
}X-Context-Compression: on X-Compression-Model: gpt-4.1-mini
Compression examples are now available for all supported SDKs:
Request body params > HTTP headers > API key defaults. Per-request settings always override key-level defaults.
See more on **Documentation**