> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Compress an image

> Submit an image URL and track a compression task from the CLI.

Install the [Mouter CLI](/docs/cli.md) and [sign in](/docs/cli/authentication.md). This example uses a public Mouter image. Running it submits a tool task and may consume credits.

```bash theme={null}
mouter tools get image_compress
mouter call image_compress --input '{"image_url":"https://mouter.ai/brand/og-default.png"}'
```

Copy `data.task_id` from the response and wait for the result:

```bash theme={null}
mouter tasks wait TASK_ID --wait-timeout 300
```

The final output is in `data.result` when available. If the command stops waiting, read the same task again with `mouter tasks get TASK_ID`. To check the final charge, use `mouter tasks billing TASK_ID`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.