REST API, streaming support, MCP integration, and SDKs for Python, Node.js, and Go. Compress anything from anywhere.
Install the Python SDK and compress your first file in under a minute.
Base URL: https://api.ahanazip.com
mode (lossless | adaptive | smart | quantum), level (1โ22).{"text": "..."}. Returns .aarm container. Ideal for logs, JSON payloads, and API response caching.{"url": "..."}. We fetch and compress. Useful for compressing remote datasets, model downloads, or web content.content_type.Compression metadata is returned in HTTP headers so you can log, monitor, and alert on compression performance.
| Header | Example | Description |
|---|---|---|
| X-AARM-Ratio | 8.32 | Compression ratio (original รท compressed) |
| X-AARM-Savings-Pct | 87.97 | Percentage of bytes saved |
| X-AARM-Duration-Ms | 142 | Compression time in milliseconds |
| X-AARM-Original-Size | 104857600 | Original file size in bytes |
| X-AARM-Mode | adaptive | Compression mode used |
| X-AARM-Content-Type | text/structured | Detected content type (adaptive mode) |
pip install ahana-acp
Full sync/async support, streaming compression, type hints, and automatic .aarm detection. Python 3.10+.
npm install @ahanaai/acp
ESM and CommonJS. Stream API, Buffer support, TypeScript types included. Node 18+.
go get github.com/ahanazip/acp-go
io.Reader/Writer interface, concurrent compression, zero-copy decompression. Go 1.21+.
The AhanaAI MCP server exposes 6 tools for Claude Desktop, Cursor, VS Code Copilot, and any MCP-compatible client.
Compress a local file to .aarm
Compress a file from URL
Compress a text string
Decompress a .aarm file
View account statistics
Predict savings for a file