Skip to main content
POST
/
generation
/
z-image
/
z-image
Z-Image
curl --request POST \
  --url https://open.skills.video/api/v1/generation/z-image/z-image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>"
}
'
{
  "id": "<string>",
  "status": "starting",
  "usage": {
    "total": 0,
    "subscription": 0,
    "permanent": 0
  }
}
Z-Image image generation model

Authorizations

Authorization
string
header
required

API Key for API endpoints

Body

application/json
prompt
string
required

A text description of the image you want to generate

n
integer
default:1

Number of results to generate (1-4)

Required range: 1 <= x <= 4
image_url
string<uri>

Input image for image-to-image generation

aspect_ratio
enum<string>
default:match_input_image

Aspect ratio of the generated image

Available options:
1:1,
2:3,
3:2,
3:4,
4:3,
4:5,
5:4,
9:16,
16:9,
21:9
resolution
enum<string>
default:720p

Image generation resolution. 1K: standard, 2K: high-res.

Available options:
720p,
1080p
output_format
enum<string>
default:jpg

Format of the output image

Available options:
jpg,
png

Response

Generation status

id
string
required

Generation id.

status
enum<string>
required

Generation status

Available options:
starting,
processing,
succeeded,
failed,
canceled
usage
object
required

Credit usage breakdown for the request