POST

Convert video clip to animated GIF. Dynamic: base $0.003 (≤30s) + $0.0015/min extra. Uses ffmpeg

/v1/video-gif

Powered by FFmpeg

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/video-gif
Content-Type: application/json

{
  "url": "https://tools402.dev",
  "start": 0,
  "duration": 3,
  "fps": 12,
  "width": 480
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Convert video clip to animated GIF. Dynamic: base $0.003 (≤30s) + $0.0015/min extra. Uses ffmpeg.

Open-source framework for recording, converting, and streaming audio and video.

Request schema

Body: JSON · application/json

FieldTypeDescription
urlstringrequired
duration_hint_secnumberoptional
startnumberrequiredmin: 0
durationnumberrequiredmin: 0.1
fpsnumberrequiredmin: 1
widthnumberrequiredmin: 32
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/video-gif \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://tools402.dev",
  "start": 0,
  "duration": 3,
  "fps": 12,
  "width": 480
}'

402 payment flow omitted — see Integrations for settlement.