cURL
curl --request POST \ --url https://api.tensorslab.com/v1/images/zimage \ --header 'Authorization: <api-key>' \ --header 'Content-Type: multipart/form-data' \ --form 'prompt=<string>' \ --form 'resolution=1024*1024' \ --form seed=123 \ --form prompt_extend=0
{ "code": 123, "msg": "<string>", "data": { "taskid": "<string>", "url": "<string>" } }
Generate images using Z-Image model
API Key authentication, please include the Authorization field in the request header
Prompt (required)
Image resolution: 9:16, 16:9, 1:1, 3:4, 4:3 or WxH
Random seed
Extend prompt content, 1 for enabled
0
1
Request successful
General response
Response status code: 1000=Success, 9999=Failure, 9000=Insufficient Credits
Response message
General data response
Show child attributes