4Z API

Edit video

Endpoint: POST https://4zapi.com/v1/videos/edits

Grok Imagine video editing (POST /v1/videos/edits). Supported by grok-imagine-video models; poll via GET /v1/videos/{id}.

Parameters

  • Content-Type (header, string): Request body Content-Type, usually application/json
  • Authorization (header, string): Bearer API Key

Request body (application/json)

  • aspect_ratio (string, required): ("1:1" | "16:9" | "9:16" )
  • model (string, required): grok-imagine-video
  • prompt (string, required): prompt word
  • resolution (string, required): ("480p" | "720p")
  • video (object, required): Video URL or identifier