# HALOWERK Video-to-GIF/WebP Converter

> HALOWERK Video-to-GIF/WebP Converter is a paid API for AI agents from medien.halowerk.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-12-02).

Converts a clip from a video file into an animated GIF or WebP using a custom-computed palette for high-quality output, with configurable width, frame rate, start time, duration, and looping.

## Facts

- Endpoint: POST https://medien.halowerk.com/v1/video-gif?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/halowerk-video-to-gif-webp-converter-6734f4ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BtdyzY9tZaCH0OQJx5MOh

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 halowerk-video-to-gif-webp-converter-6734f4ef -d '<json body>'
```

Example prompt: Take the video at https://example.com/myclip.mp4, start at 10 seconds in, grab 6 seconds of it, and convert it to an animated GIF at 360 pixels wide and 12 fps with looping enabled.

## When to prefer this

Choose this endpoint when you need a high-quality animated GIF or WebP from a specific segment of an existing video file, especially when palette quality matters (custom per-clip palette avoids banding). It is ideal for short social-media clips, looping previews, and animated thumbnails. Prefer the WebP format option when file size is critical and browser support is not a concern. Use this over generic conversion tools when you want ffmpeg-quality output with fine control over start time, duration, dimensions, and frame rate, and are comfortable paying a fixed per-call fee in USDC.

## Known failure modes

- Video file exceeds 24 MB upload limit — request rejected
- Output GIF exceeds 12 MB — endpoint returns a suggestion to reduce width or frame rate rather than the file
- Unsupported video format or corrupted file — ffmpeg processing error
- start_seconds beyond video duration — empty or error output
- width outside 64–800 px or fps outside 2–25 — validation error
- Payment not received or insufficient USDC — x402 payment required error

## How this service works

Takes a video (up to 24 MB) and returns the part from start_seconds, up to 15 seconds long, as an animated GIF built with a palette computed for exactly this clip (much cleaner gradients than the default palette), or as animated WebP, which is smaller and true-colour but not supported everywhere. Width, frame rate and looping are selectable. Output inline as base64, max 12 MB; if the GIF would be larger, lower width or frame rate is suggested. Runs locally with ffmpeg. Fixed price per call.

## Output

Returns the animated GIF or WebP as a base64-encoded string (up to 12 MB). The output uses a palette optimised specifically for the clip for cleaner gradients. If the resulting file would exceed 12 MB, the response suggests lowering the width or frame rate instead of returning the oversized file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fps": {
   "type": "integer",
   "default": 12,
   "maximum": 25,
   "minimum": 2
  },
  "loop": {
   "type": "boolean",
   "default": true
  },
  "width": {
   "type": "integer",
   "default": 360,
   "maximum": 800,
   "minimum": 64
  },
  "format": {
   "enum": [
    "gif",
    "webp"
   ],
   "type": "string",
   "default": "gif"
  },
  "source": {
   "type": "object",
   "properties": {
    "url": {
     "type": "string",
     "maxLength": 2048
    },
    "filename": {
     "type": "string",
     "maxLength": 260
    },
    "content_base64": {
     "type": "string",
     "maxLength": 12000000
    }
   },
   "additionalProperties": false
  },
  "start_seconds": {
   "type": "number",
   "default": 0,
   "maximum": 36000,
   "minimum": 0
  },
  "length_seconds": {
   "type": "number",
   "default": 4,
   "maximum": 15,
   "minimum": 0.5
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/halowerk-video-to-gif-webp-converter-6734f4ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from medien.halowerk.com](https://www.zero.xyz/host/medien.halowerk.com/llms.txt)
