# api.strale.io Image Resize

> api.strale.io Image Resize is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0324/call, status unknown (last checked 2026-10-10).

Resize, crop, and convert images to PNG, JPEG, or WebP with configurable dimensions, quality, and fit mode using Sharp

## Facts

- Endpoint: GET https://api.strale.io/x402/image-resize?utm_source=zero.xyz
- Price: $0.0324/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Success rate: 0% of calls made through Zero
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-1711ca94
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kOy-v7vXztb8P-1Mge8gh

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-strale-io-1711ca94
```

Example prompt: Resize this image at https://example.com/photo.jpg to 800 pixels wide and 600 pixels tall, convert it to WebP format at quality 85, and use cover fit mode so it fills the dimensions.

## When to prefer this

Use this endpoint when you need server-side image resizing, format conversion, or cropping with fine control over dimensions, quality, and fit behavior — especially for preparing images for web delivery or thumbnailing. Prefer over client-side processing when working in headless or automated agent workflows.

## Known failure modes

- Invalid or unreachable image_url returns an error
- Unsupported format value returns validation error
- Quality value out of range causes bad request
- Malformed base64 input causes processing failure
- Payment not included or insufficient returns 402

## How this service works

Resize, crop, and convert images. Supports PNG, JPEG, WebP. Configurable dimensions, quality, fit mode. Uses Sharp.

## Output

Returns the processed image binary in the requested format (PNG, JPEG, or WebP), resized and cropped according to the specified dimensions, quality, and fit mode.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "fit": {
       "enum": [
        "cover",
        "contain",
        "fill",
        "inside",
        "outside"
       ],
       "type": "string",
       "description": "cover, contain, fill, inside, outside"
      },
      "base64": {
       "type": "string"
      },
      "format": {
       "enum": [
        "png",
        "jpeg",
        "webp"
       ],
       "type": "string",
       "description": "png, jpeg, or webp"
      },
      "quality": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1
      },
      "image_url": {
       "type": "string"
      },
      "target_width": {
       "type": "integer"
      },
      "target_height": {
       "type": "integer"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-1711ca94/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
