4Z API

Tusheng Video (enhanced version function)

Endpoint: POST https://4zapi.com/mj/submit/video

Request body (application/json)

  • image (string, required): Original image base64 (data URL prefix). I2V base image; pass-through; not declared in backend struct
  • prompt (string, required): video content / motion description
  • base64 (string): Original image base64; same value as image on the client; pass-through
  • mode (string): Generation mode (pass-through). FAST(default)/RELAX/TURBO ["FAST", "RELAX", "TURBO"]
  • motion (string): Motion strength (pass-through). low(default)/high ["low", "high"]
  • notifyHook (string): Callback URL; falls back to the global notifyHook when empty
  • state (string): The quality of the image that will be generated. `hd` creates images with finer detail and greater consistency. This parameter only supports `dall-e-3`.
  • taskId (string): Optional. For video from an existing MJ task, pass that task ID (relay-mj.go:690 needs taskId); not needed for I2V with image