Powered by qix engine · Cloudflare Edge WASM

Compress short text
up to 62% smaller
in one API call

Shrink logs, JSON, UUIDs, URLs, IPs, and stored AI payloads with a single POST. Runs on Cloudflare's edge via WASM — milliseconds, any region. Built for AI pipelines and edge storage.

Get free API key → Try live demo ↓
~62%
compression
<5ms
latency
Edge
300+ cities
Lossless
roundtrip
Live demo

Try it right now

Hit our API live — compress, then decompress, and verify the roundtrip is lossless.

POST /v1/compress
Bytes In
Bytes Out
Savings
Ratio
Compressed payload (base64)
Use cases

Why a compression API?

General-purpose algorithms (gzip, brotli) are tuned for large payloads. Short strings get barely any compression — or even expand. smol·text is purpose-built for the long tail of small payloads.

Edge & serverless storage savings

Compress every log line, event, and record before writing to KV, D1, R2, or S3. Cut storage costs by up to 60% with zero infrastructure changes.

AI / LLM log + payload storage

Shrink stored prompts, conversation logs, and function-call payloads in your AI pipeline's queues, caches, and databases. Cuts storage and bandwidth — note: compressed output is binary, so decompress before feeding text back to a model.

No-code glue

Call it from Zapier, n8n, Make, or any webhooks-based workflow. One POST, one compressed string. No SDKs, no dependencies, no build step.

Pricing

Simple, transparent pricing

Every compress or decompress call counts as one billable unit. Start free, scale as you grow.

Monthly
Annual 2 months free
Free
$0/mo
 
10 requests / day
  • Unlimited decompress
  • Edge compression
  • Community support
Get started
Pro
$9/mo
$90/yr · save $18
500k requests / month
  • Everything in Starter
  • Webhook alerts
  • Priority support
  • Custom rate limits
Get started
Scale
$29/mo
$290/yr · save $58
2M requests / month
  • Everything in Pro
  • Dedicated support
  • Custom integration help
  • Volume discounts
Contact us
Free API key

Get your key in seconds

No credit card required. Enter your email and we'll generate an API key instantly.

Quickstart

Running in 30 seconds

A single curl call is all it takes. Replace $API_KEY with your key.

Terminal
# Compress a string
curl -X POST https://api.smoltext.sprapp.com/v1/compress \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Hello smoltext, shrink me down!"}'

# Response
{
  "compressed": "gQyNoQJIZWxsb...",
  "bytesIn": 30,
  "bytesOut": 22,
  "ratio": 0.73,
  "savingsPct": 26.7,
  "incompressible": false
}