4Z API

First and last frame video

Endpoint: POST https://4zapi.com/ent/v2/start-end2video

The first frame + the last frame generate a transition video.

Request body (application/json)

  • images (array<string>, required): List of image URLs or Base64 strings
  • model (string, required): Model name
  • aspect_ratio (string): Aspect ratio, e.g. 16:9, 9:16, 1:1 ["16:9", "9:16", "4:3", "3:4", "1:1", "auto"]
  • callback_url (string): Task completion callback URL
  • duration (integer): Video duration (seconds)
  • prompt (string): text prompt word
  • resolution (string): Resolution, such as 720p/1080p
  • seed (integer): Random seed, 0 is random
  • watermark (boolean): Whether to add watermark