Skip to main content
POST
  1. After submission, use the returned task_id to retrieve the result through Query Task Status.
  2. Provide callback_url to receive a POST notification when the task reaches finished or failed.

Model

alibaba/z-image/turbo generates images from text and edits a single reference image.

Input parameters

  • prompt: Required string containing 1 to 1000 characters. Describe the image to generate or the edits to apply.
  • image_urls: Optional array containing exactly one HTTP(S) image URL. Providing this field selects image editing.
  • size: Required for text-to-image and optional for image editing. Values: 1:1, 4:3, 3:4, 16:9, 9:16.
  • enable_safety_checker: Optional boolean. Defaults to true.

Text to image

Image editing

Authorizations

Authorization
string
header
required

Use Authorization: Bearer VIDGO_API_KEY.

Body

application/json
model
enum<string>
required

Z-Image Turbo model identifier.

Available options:
alibaba/z-image/turbo
Example:

"alibaba/z-image/turbo"

input
object
required

Image generation parameters. size is required for text-to-image and optional when image_urls supplies an editing reference.

Provide at least one of size, image_urls.

callback_url
string<uri>

Optional webhook callback URL.

Response

Task submitted successfully

code
integer
required
Example:

200

data
object
required