Zum Inhalt
HALOWERK

Medienwerk

video gif

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.

POST https://medien.halowerk.com/v1/video-gif

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
sourceobjectJa
start_secondsnumberNein
length_secondsnumberNein
widthintegerNein
fpsintegerNein
formatstringNein
loopbooleanNein
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "source"
  ],
  "additionalProperties": false,
  "properties": {
    "source": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "url": {
          "type": "string",
          "maxLength": 2048
        },
        "content_base64": {
          "type": "string",
          "maxLength": 12000000
        },
        "filename": {
          "type": "string",
          "maxLength": 260
        }
      }
    },
    "start_seconds": {
      "type": "number",
      "minimum": 0,
      "maximum": 36000,
      "default": 0
    },
    "length_seconds": {
      "type": "number",
      "minimum": 0.5,
      "maximum": 15,
      "default": 4
    },
    "width": {
      "type": "integer",
      "minimum": 64,
      "maximum": 800,
      "default": 360
    },
    "fps": {
      "type": "integer",
      "minimum": 2,
      "maximum": 25,
      "default": 12
    },
    "format": {
      "type": "string",
      "enum": [
        "gif",
        "webp"
      ],
      "default": "gif"
    },
    "loop": {
      "type": "boolean",
      "default": true
    }
  }
}

Originalschema öffnen

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →