Skip to main content
POST
/
generate
/
hf
/
z-image-turbo
Z-Image Turbo Free Image Generation
curl --request POST \
  --url https://api.sinancode.com/v1/generate/hf/z-image-turbo \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "A beautiful sunset over mountains",
  "num_images": 1,
  "resolution": "1024x1024",
  "seed": -1
}
'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
Generate images for FREE using Alibaba Cloud’s Tongyi Wanxiang Z-Image Turbo model.
This is the free version with limited features. For production use, please consider the paid Z-Image Turbo version.
Key Features:
  • FREE - No cost for image generation
  • Fast Speed - 6B parameter distilled model with quick inference
  • Bilingual Text Rendering - Excellent Chinese and English text rendering in images
  • Multiple Resolutions - Support for various aspect ratios (1024x1024, 1280x720, etc.)

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Body

application/json

Task parameters

prompt
string
required

Prompt text (required)

Minimum string length: 1
Example:

"A beautiful sunset over mountains"

num_images
integer

Number of images to generate, 1-4

Required range: 1 <= x <= 4
Example:

1

resolution
enum<string>

Resolution setting (supports 1024/1280/1536 series)

Available options:
1024x1024,
1152x896,
896x1152,
1280x720,
720x1280,
1280x1280,
1440x1120,
1536x1024,
1536x864,
1536x1536,
1728x1344,
2048x1152,
1152x2048
Example:

"1024x1024"

seed
integer

Random seed, -1 for random

Example:

-1

Response

OK

task_id
string
required

Task ID

Example:

"01234567-89ab-cdef-0123-456789abcdef"