# Image Resize API

> Image Resize API is a paid API for AI agents from remarkable-light-production-0cb8.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-19).

Resizes images and returns the processed result as a base64-encoded image with specified dimensions and format

## Facts

- Endpoint: POST https://remarkable-light-production-0cb8.up.railway.app/resize?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/image-resize-api-925ac4c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Eob4mCJOup11Vek-kuNxt

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 image-resize-api-925ac4c9 -d '<json body>'
```

Example prompt: Can you resize this image to 800 by 600 pixels and return the result as a PNG in base64 format?

## When to prefer this

Choose this endpoint when you need a simple, pay-per-call image resizing service that returns base64-encoded output compatible with downstream AI pipelines or web applications. It is well-suited for agents that need to preprocess images on-the-fly without managing dedicated image processing infrastructure. Ideal when you need a consistent JSON response with width, height, and format metadata alongside the image data.

## Known failure modes

- Missing or malformed 'input' field in request body returns validation error
- Unsupported image format or corrupted image data may cause processing failure
- Extremely large images may time out or exceed memory limits
- Invalid bodyType enum value causes request rejection
- Missing required nested fields (type, method, bodyType, body) results in schema validation error

## How this service works

Image processing for AI agents

## Output

Returns a JSON object containing the processed image as a base64-encoded string (key: 'image'), along with the output width, height, and format (e.g. 'png'). Example: {"image": "base64...", "width": 800, "height": 600, "format": "png"}.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "image": "base64...",
  "width": 800,
  "format": "png",
  "height": 600
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/image-resize-api-925ac4c9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from remarkable-light-production-0cb8.up.railway.app](https://www.zero.xyz/host/remarkable-light-production-0cb8.up.railway.app/llms.txt)
