# Relaystation Video-to-Animated-GIF Converter

> Relaystation Video-to-Animated-GIF 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-15).

Converts a video segment into a palette-optimized animated GIF suitable for sharing and looping

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/media/gif
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-video-to-animated-gif-converter-a7f646af
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Kri2qsI7KKXNjpimqu82C

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-video-to-animated-gif-converter-a7f646af -d '<json body>'
```

Example prompt: Take the clip from my video between 0:05 and 0:12 and convert it into a palette-optimized animated GIF I can share — keep the loop smooth and the colors tight.

## When to prefer this

Choose this endpoint when you need to convert a specific video segment into a palette-optimized animated GIF for web sharing, social media, or embedding — particularly when you want cost-effective per-MB pricing with automatic credit handling via x402. Prefer this over general video transcoding APIs when the output must be a GIF loop rather than a video container format.

## Known failure modes

- Unsupported video format or codec — returns error indicating incompatible input
- Video segment out of bounds (start/end time exceeds video duration) — returns validation error
- Input file too large for the per-MB pricing tier without sufficient credit — returns payment or credit error
- Corrupt or inaccessible video source URL — returns fetch or parsing error
- Extremely long or high-resolution segments may time out or produce oversized GIF output

## How this service works

$0.0005/MB. Turn a video segment into a palette-optimized animated GIF — share-ready loops. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

A palette-optimized animated GIF file derived from the specified video segment, returned as binary image data or a URL to the output file, ready for embedding or sharing as a looping animation.

## 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": {
     "type": "object",
     "properties": {
      "fps": {
       "type": "integer",
       "minimum": 1
      },
      "file": {
       "type": "object",
       "description": "cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key ≤ 50 MB> }. The input container must sniff (ffprobe) to the live allowlist (operator-tunable cputools.media.input_formats): 3g2, 3gp, aac, asf, avi, flac, flv, gif, m4a, m4v, matroska, mj2, mov, mov,mp4,m4a,3gp,3g2,mj2, mp3, mp4, mpeg, mpegts, mpegvideo, ogg, wav, webm, wmv. An off-list input is a free 422 UNSUPPORTED_FORMAT."
      },
      "start": {
       "type": "number",
       "minimum": 0
      },
      "width": {
       "type": "integer",
       "minimum": 16
      },
      "duration": {
       "type": "number",
       "minimum": 0.1
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-video-to-animated-gif-converter-a7f646af/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)
