# CompressGIF > Compress GIF files online with Gifsicle 1.96. The browser tool processes files locally; the REST API and MCP service run compression in the cloud for automated workflows. The browser tool offers quality-first, size-first, and target-size compression. It preserves animation timing and looping, keeps dimensions unless resizing is selected, and returns a result no larger than the input. Target sizes are best-effort: a valid result can have `targetMet: false`. Compression does not use large language model inference. Selecting a file in the browser does not upload it to CompressGIF. HTTPS image imports are fetched by the browser and require the source to allow CORS. REST and MCP requests upload or fetch files for cloud processing instead. Cloud file access expires after 24 hours; download links expire after 15 minutes. Background storage cleanup is not an exact 24-hour physical deletion guarantee. REST and MCP use the same account API keys, credit balance, and limits. API keys belong in authorization headers, not URLs. Create a task with `POST /api/v1/compressions`, poll `GET /api/v1/compressions/{id}`, and read the balance with `GET /api/v1/usage`. Creation requires an account-scoped `Idempotency-Key`. Once the task succeeds, use `result.downloadUrl` from the status response to download the GIF. The Streamable HTTP MCP endpoint is `https://compressgif.net/api/mcp`. Its tools are `compress_gif`, `get_compression`, and `get_usage`. MCP accepts a public HTTPS GIF URL; local files use REST multipart uploads. It does not accept server-local paths or large Base64 payloads. MCP has no separate fee. Successful results consume the disclosed credits even when the target is missed; failed processing releases reserved credits. Pro browser features do not increase API credits. Current prices, quotas, limits, and examples are maintained in the pricing and developer documentation below. ## Product and developer documentation - [Compress GIF online](https://compressgif.net/): Browser tool, compression methods, target sizes, batch processing, and frequently asked questions. - [API and MCP documentation](https://compressgif.net/docs): Free API activation, key creation, upload and polling examples, MCP configuration, authentication, credits, limits, retries, and errors. - [OpenAPI schema](https://compressgif.net/openapi.json): Machine-readable REST endpoints, request and response schemas, security requirements, and credit tiers. - [Pricing](https://compressgif.net/pricing): Free, Pro, and Developer features, billing periods, API credits, and cancellation details. ## Languages Each language has translated home, pricing, docs, about, contact, privacy, terms, and refund pages. English uses the site root; the other languages use the prefixes below, such as `/zh/docs` and `/pt-BR/pricing`. - [English](https://compressgif.net/): Compress GIF online. - [简体中文](https://compressgif.net/zh/): 在线压缩 GIF,减小动图文件大小。 - [日本語](https://compressgif.net/ja/): GIFを圧縮してファイルサイズを小さく。 - [한국어](https://compressgif.net/ko/): GIF를 압축해 파일 크기를 줄이세요. - [Deutsch](https://compressgif.net/de/): GIF-Dateien online komprimieren. - [Français](https://compressgif.net/fr/): Compresser un GIF en ligne. - [Español](https://compressgif.net/es/): Comprimir GIF en línea. - [Português do Brasil](https://compressgif.net/pt-BR/): Comprima GIFs online. ## Optional - [About CompressGIF](https://compressgif.net/about): How the tool works and when to use local or cloud compression. - [Contact and support](https://compressgif.net/contact): Support channels and useful troubleshooting details. - [Privacy policy](https://compressgif.net/privacy): Local processing, cloud uploads, account data, and retention. - [Terms of service](https://compressgif.net/terms): Service limits, account responsibilities, subscriptions, and cancellation. - [Refund policy](https://compressgif.net/refund): First-purchase eligibility and Developer credit conditions. - [XML sitemap](https://compressgif.net/sitemap.xml): All public pages across eight languages with language alternates.