Skip to main content
POST
  1. After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
  2. Regardless of whether callback_url is provided, you can retrieve the result through the unified Query Task Status endpoint.

Models

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