modelApiDoc_getStartedBeforeModeltongyi-mai/z-image/turbo/text-to-imagemodelApiDoc_getStartedAfterModel modelApiDoc_getStartedMid modelApiDoc_schemaLinkmodelApiDoc_getStartedAfterSchema
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/tongyi-mai/z-image/turbo/text-to-image \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A flash-lit, intimate close-up reveals a front pocket of acid-washed denim jeans, threads softened and grainy with wear. Nestled inside, a cluster of black-and-white photobooth strips peeks out, their glossy surfaces curling and one corner torn, capturing a group of friends mid-smirk. They hold lighters aloft, their faces alive with chaotic joy and youthful rebellion. The hard flash splinters against metal rivets and creased fabric, accentuating the textured weave of denim and the faint creases in the photographs. The composition’s tight crop focuses tension between rough fabric and fleeting memories, conjuring an authentic snapshot of carefree moments preserved in stillness."
}'modelApiDoc_authP1 YOUR_API_TOKEN modelApiDoc_authP2 modelApiDoc_profilemodelApiDoc_authP3 Authorization modelApiDoc_authP4 Authorization: Bearer $YOUR_API_TOKENmodelApiDoc_authP5
modelApiDoc_submitBody
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/tongyi-mai/z-image/turbo/text-to-image \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A flash-lit, intimate close-up reveals a front pocket of acid-washed denim jeans, threads softened and grainy with wear. Nestled inside, a cluster of black-and-white photobooth strips peeks out, their glossy surfaces curling and one corner torn, capturing a group of friends mid-smirk. They hold lighters aloft, their faces alive with chaotic joy and youthful rebellion. The hard flash splinters against metal rivets and creased fabric, accentuating the textured weave of denim and the faint creases in the photographs. The composition’s tight crop focuses tension between rough fabric and fleeting memories, conjuring an authentic snapshot of carefree moments preserved in stillness."
}'modelApiDoc_monitorBody
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/status \
--header "Authorization: Bearer <token>"modelApiDoc_retrieveBody
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/result \
--header "Authorization: Bearer <token>"modelApiDoc_cancelBody
curl --request POST \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/cancel \
--header "Authorization: Bearer <token>"modelApiDoc_hostedFileBody
{
"type": "object",
"title": "modelApiDoc_navInputSchema",
"required": [
"prompt"
],
"properties": {
"prompt": {
"title": "Prompt",
"description": "",
"type": "string",
"default": "A flash-lit, intimate close-up reveals a front pocket of acid-washed denim jeans, threads softened and grainy with wear. Nestled inside, a cluster of black-and-white photobooth strips peeks out, their glossy surfaces curling and one corner torn, capturing a group of friends mid-smirk. They hold lighters aloft, their faces alive with chaotic joy and youthful rebellion. The hard flash splinters against metal rivets and creased fabric, accentuating the textured weave of denim and the faint creases in the photographs. The composition’s tight crop focuses tension between rough fabric and fleeting memories, conjuring an authentic snapshot of carefree moments preserved in stillness."
},
"image_size": {
"title": "Aspect Ratio (W:H)",
"description": "",
"type": "string",
"enum": [
"square_hd",
"square",
"portrait_4_3",
"portrait_16_9",
"landscape_4_3",
"landscape_16_9"
],
"default": "landscape_4_3"
},
"num_inference_steps": {
"title": "Number of Inference Steps",
"description": "",
"type": "integer",
"minimum": 1,
"maximum": 30,
"default": 8
},
"seed": {
"title": "Seed",
"description": "",
"type": "integer",
"default": 0
},
"num_images": {
"title": "Number of Images",
"description": "The number of images to generate.",
"type": "integer",
"minimum": 1,
"maximum": 4,
"default": 1
},
"output_format": {
"title": "Output Format",
"description": "Specifies the output image format.",
"type": "string",
"enum": [
"jpeg",
"png",
"webp"
],
"default": "png"
}
}
}{
"output": {
"type": "object",
"properties": {
"image": {
"type": "string",
"format": "uri",
"description": "modelApiDoc_outDescImage"
},
"video": {
"type": "string",
"format": "uri",
"description": "modelApiDoc_outDescVideo"
},
"images": {
"type": "array",
"description": "modelApiDoc_outDescImages",
"items": {
"type": "string",
"format": "uri"
}
},
"videos": {
"type": "array",
"description": "modelApiDoc_outDescVideos",
"items": {
"type": "string",
"format": "uri"
}
}
}
}
}RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.