# Strale Image Resize API

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

Resizes and converts images by URL to specified dimensions, format, and fit mode, returning the processed image with an audit record.

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/image-resize
- Price: $0.0324/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-image-resize-api-f45468f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kQkUuhZppJmMPqbaSuGnu

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 strale-image-resize-api-f45468f8
```

Example prompt: Take this image at https://example.com/photo.jpg and resize it to 800 by 600 pixels using cover fit, output it as a WebP at quality 85.

## When to prefer this

Choose this endpoint when you need a pay-per-call, serverless image resize with no infrastructure setup, especially when operating in an AI agent context that values audit trails and cryptographic provenance per call. Ideal for one-off or low-volume transformations paid via x402 micropayments without managing a subscription or self-hosted image processing pipeline.

## Known failure modes

- Invalid or unreachable image_url returns an error fetching the source image
- Unsupported format value causes a validation error
- Missing required image_url or target dimensions causes a 400 bad request
- Payment not completed or insufficient USDC balance causes a 402 Payment Required
- Very large source images may time out during processing

## How this service works

The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.

## Output

The processed image in the requested format (PNG, JPEG, or WebP), scaled to the target dimensions using the specified fit mode. The response may include a base64-encoded version if requested, and is accompanied by an audit record with a cryptographic chain hash.

## 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/strale-image-resize-api-f45468f8/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)
