Z-Image文生图
Z-Image是一个照片级图片生成 AI ,字体不变形,细节纹理拉满,精准渲染,轻松还原创意场景,生成效果媲美照片水准。
Query Parameters
mode?string
可选参数,接口调用模式,默认同步模式
Value in
"sync" | "async_websocket" | "async_callback"callback?string
当mode=async_callback时,此参数必填,用于接收异步调用的结果通知
costLookup?boolean
可选参数,默认值为false,如果指定为true,用于查询参数对应的积分消耗值,接口不实际执行生成任务
Header Parameters
token*string
Default
""Request Body
application/json
prompt*string
你的图片描述。告诉AI你想看到什么。
Default
""negativePrompt?string
避免的内容。描述你不想看到的东西。
Default
""imageRatio*string
图片的比例。
Default
"1:1"Value in
"21:9" | "2:1" | "16:9" | "3:2" | "4:3" | "5:4" | "1:1" | "4:5" | "3:4" | "2:3" | "9:16" | "1:2" | "9:21"imageCount*integer
生成图片数量。
Default
5Response Body
application/json
curl -X POST "https://api.crowdcomputed.com/api/v1/generate/z-image-text-to-image?mode=sync&callback=&costLookup=false" \ -H "token: " \ -H "Content-Type: application/json" \ -d '{ "prompt": "", "imageRatio": "1:1", "imageCount": 5 }'