# Video Clip to GIF Renderer (Two-Pass Palette)

> Video Clip to GIF Renderer (Two-Pass Palette) is a paid API for AI agents from zero-gif-zeroclick.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-23, last successful call 2026-10-20).

Converts a time-range of a direct video URL into a high-quality animated GIF using two-pass palette encoding, returning a hosted GIF URL with metadata.

## Facts

- Endpoint: POST https://zero-gif-zeroclick.vercel.app/v1/clip?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Last successful call: 2026-10-20
- Success rate: 76% of calls made through Zero
- Rating: 5.0 / 5 from 2 reviews
- Activations on Zero: 1196
- Provider: zero-gif-zeroclick.vercel.app
- Website: https://zero-gif-zeroclick.vercel.app
- Canonical page: https://www.zero.xyz/c/zero-gif-zeroclick-vercel-app-video-clip-to-gif-renderer-two-pass-3850ac73
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pajxBFSO0iwE4718M6357

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 zero-gif-zeroclick-vercel-app-video-clip-to-gif-renderer-two-pass-3850ac73 -d '<json body>'
```

Example prompt: Turn seconds 4 to 9 of this direct mp4 URL (https://example.com/clip.mp4) into an animated GIF at 360px wide and 12fps — I want a smooth, palette-optimized loop I can share.

## When to prefer this

Use this endpoint when you have a direct downloadable video URL (.mp4, .webm, .mov, .mkv) and need to render a specific time range as a shareable animated GIF with optimized color palette. Prefer this over generic ffmpeg wrappers when you need a hosted output URL and two-pass palette quality. Not suitable for streaming URLs, social media page URLs, or clips longer than 30 seconds.

## Known failure modes

- Non-direct video URLs (YouTube, Vimeo, Reddit, X, HLS .m3u8) are rejected — only direct .mp4/.webm/.mov/.mkv URLs work
- Source video exceeds 10 minutes or 500 MB — request fails
- Output clip exceeds 30 seconds — request rejected
- Output GIF exceeds recommended ~10 MB (especially for cartoons/line-art at high width/fps) — may result in very large files or failure
- Source URL is inaccessible or returns an error — recommend using /v1/probe first to validate
- Invalid or missing required fields (video_url, start_seconds, end_seconds) — 4xx error

## How this service works

Render a [start_seconds, end_seconds] range of a video URL as a gif (two-pass palette). Body: { video_url, start_seconds, end_seconds, width?: 360 (max 720), fps?: 12 (max 30) }. Returns { gif_url, start, end, duration, size_bytes }. REQUIRED: video_url must be a direct .mp4/.webm/.mov/.mkv URL — YouTube/Vimeo/Reddit/X page URLs and HLS .m3u8 streams do NOT work. RECOMMENDED: keep clips 1-5 seconds and aim for ≤ 10 MB output. Size scales with width × fps × duration. SIZE CHEATSHEET (5s clip): live-action @ 360/12 ≈ 6 MB; live-action @ 480/15 ≈ 14 MB; b/w cartoon or line-art @ 360/12 ≈ 22 MB (cartoons compress poorly — drop to 240/10 to land near 10 MB). LIMITS: source ≤ 10 min / 500 MB; output clip ≤ 30 s. Use /v1/probe (free) first to confirm the source loads.

## Output

Returns a JSON object with gif_url (hosted link to the rendered GIF), start and end timestamps, duration in seconds, and size_bytes of the output file.

## Example request

```json
{
 "fps": 12,
 "width": 360,
 "video_url": "https://www.w3schools.com/html/mov_bbb.mp4",
 "end_seconds": 5,
 "start_seconds": 0
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object"
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zero-gif-zeroclick-vercel-app-video-clip-to-gif-renderer-two-pass-3850ac73/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zero-gif-zeroclick.vercel.app](https://www.zero.xyz/host/zero-gif-zeroclick.vercel.app/llms.txt)
