compress
Convert and shrink images: JPEG, PNG, WebP, AVIF, GIF out; HEIC and AVIF in. Resize to fit, EXIF orientation applied and metadata stripped. Cost €0.001 per image, charged to the API key in Authorization: Bearer. Parameters — url: image url; format: webp | jpeg | png | avif | gif (default webp); quality: 1–100 (default 82); width: max width px; height: max height px.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| width | No | ||
| format | No | ||
| height | No | ||
| quality | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |