# Relaystation Image Format Converter

> Relaystation Image Format Converter is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Converts images between PNG, JPEG, WebP, and AVIF formats (with HEIC input support), preserving animation when requested, billed per megapixel.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/image/convert
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-image-format-converter-ce8b0ed3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1tz8Uklt64Z6cfUiQtRGR

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 relaystation-image-format-converter-ce8b0ed3 -d '<json body>'
```

Example prompt: Can you convert this PNG image to WebP format? I want to keep the animation intact — use animated:true.

## When to prefer this

Choose this endpoint when you need a simple, pay-per-use image format conversion without provisioning your own image processing infrastructure. It is ideal when HEIC input support is needed (common for iPhone photos), when animated image preservation is required, or when you want a low-cost per-megapixel billing model with no subscription. Prefer it over self-hosted solutions when conversion is occasional or when operating in an agentic x402-payment workflow.

## Known failure modes

- Unsupported output format specified — only PNG, JPEG, WebP, AVIF supported as output
- Input image corrupted or unreadable — returns error
- HEIC input processing failure if file is malformed
- Payment insufficient — x402 minimum of $0.01 USDC required
- Image too large causing timeout or processing error

## How this service works

$0.0003/MP. Convert between PNG, JPEG, WebP, AVIF — HEIC accepted in, animation preserved with animated:true. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns the converted image binary in the requested output format (PNG, JPEG, WebP, or AVIF), with animation frames preserved if animated:true was specified.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "file": {
       "type": "object",
       "description": "cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."
      },
      "format": {
       "type": "string",
       "enum": [
        "png",
        "jpeg",
        "webp",
        "avif"
       ]
      },
      "quality": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100
      },
      "animated": {
       "type": "boolean",
       "description": "Preserve all frames of an animated GIF/WebP (billed per-frame)."
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-image-format-converter-ce8b0ed3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
