File Compression API — Compress Files Programmatically

A developer API to compress files at scale. Compress images, PDFs, videos, and archives from your app with a simple HTTP request — free tier available.

开发者友好的文件压缩

为什么使用 API

简洁 HTTP API

只需一个 POST 请求即可压缩文件。无需 SDK —— 适用于任何语言或平台。

快速可扩展

低延迟大规模处理文件。低用量免费,生产级用量付费。

API 密钥认证

使用仪表盘中的密钥进行认证。可为每个环境设置速率限制和配额。

隐私优先

文件处理后即被删除 —— 永不存储或用于训练。

How to use the compression API

使用方法

  1. 1

    Sign up and generate an API key from your dashboard.

  2. 2

    Send a POST request to the API endpoint with your file and API key in the header, plus an optional target size.

  3. 3

    Receive the compressed file in the response and use it in your application.

POST /api/compress
Authorization: Bearer YOUR_API_KEY
Content-Type: multipart/form-data

file: <binary>
target_size_kb: 200   # optional

FAQ

关于此压缩工具的常见问题。

常见问题