Z-Image-Turbo: 텍스트 기반 이미지 생성
싱글 스트림 디퓨전 트랜스포머를 사용하는 효율적인 이미지 생성 기초 모델로, 영어와 중국어를 모두 지원합니다.
Loading the grid…
Explore more grids
워크플로 내부
소스 템플릿의 읽기 전용 미리보기입니다. Cloud에서 열어 노드를 살펴보고 변경할 수 있습니다.
Loading the graph
Open full-size workflow preview이 워크플로의 파일
- 출력
- 이미지
- 작성자
- ComfyUI
코드에서 이 모델 호출하기
아래 요청은 Playground와 동일하게 준비된 그래프와 설정을 사용합니다. 제출할 때마다 유료 실행이 시작될 수 있으므로 결과를 알 수 없는 제출을 자동으로 재시도하지 마세요.
What you need
- Runs on
- Comfy Cloud
- 키
- COMFY_API_KEY
유료 Cloud 요금제와 크레딧이 필요합니다.
# Python 3.10+: pip install comfy-sdk==0.4.0
import os
from comfy_sdk import Comfy
api_key = os.environ.get("COMFY_API_KEY", "").strip()
if not api_key: raise RuntimeError("Set COMFY_API_KEY")
os.environ.setdefault("COMFY_BASE_URL", "https://cloud.comfy.org")
client = Comfy(api_key=api_key)
workflow = client.workflows.from_json({
"9": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "z-image-turbo",
"images": [
"57:8",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"57:11": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"57:28",
0
],
"sampling": "flow",
"shift": 3
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"57:13": {
"class_type": "EmptySD3LatentImage",
"inputs": {
"batch_size": 1,
"height": 720,
"width": 1280
},
"_meta": {
"title": "EmptySD3LatentImage"
}
},
"57:27": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"57:30",
0
],
"text": "A wide-shot, eye-level photograph captures a lone Apollo astronaut standing beside a Lunar Roving Vehicle on the desolate moonscape. The astronaut’s white pressure suit, thick with wrinkled fabric folds, ribbed joints, and mechanical anodized connectors, glimmers under harsh, unfiltered sunlight. Subtle smudges of dark lunar dust cling to the knees and cuffs of the multi-layered garment. A gold-tinted reflective visor obscures their face, mirroring the stark, curved horizon and the bright specular highlight of the blazing sun, while a bulky white Portable Life Support System backpack, fitted with delicate telemetry sensors, is mounted to their rear. \n\nParked beside them, the metallic silver rover features distinctive red-orange fenders over wire-mesh wheels, which leave clear, geometric chevron tread patterns pressed deeply into the powdery, fine gray dust. An umbrella-shaped high-gain mesh antenna protrudes upward, surrounded by various clamped equipment bundles, scientific payload containers, and gold-foil-wrapped experiments strapped with utilitarian nylon ties. \n\nThe immediate ground is an intricately disturbed expanse of charcoal and light-gray regolith, heavily tracked with overlapping tread marks, boot prints showing ribbed sole patterns, and scattered with sharp, fragmented basalt rocks and mini-impact craters. In the far background, massive, softly rounded lunar mountains rise solemnly against an absolute, vacuum-black, starless sky. \n\nThe scene is side-lit from the low left, casting stark, ink-black, razor-sharp shadows across the undulating, cratered terrain that dramatically emphasize the intense contrast. The entire frame is marked by evenly spaced, small black Reseau crosshairs, a technical artifact of the historic medium-format Hasselblad 70mm camera. The palette is dominated by stark monochromatic grays, powdery whites, and obsidian shadows, punctuated solely by the mirrored gold visor, the vehicle's rust-colored accents, and delicate yellow thermal tape, all rendered with sharp, hyper-focused clarity and an infinite depth of field."
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"57:28": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "z_image_turbo_bf16.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"57:29": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "ae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"57:3": {
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"57:13",
0
],
"model": [
"57:11",
0
],
"negative": [
"57:33",
0
],
"positive": [
"57:27",
0
],
"sampler_name": "res_multistep",
"scheduler": "simple",
"seed": 0,
"steps": 8
},
"_meta": {
"title": "KSampler"
}
},
"57:30": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen_3_4b.safetensors",
"device": "default",
"type": "lumina2"
},
"_meta": {
"title": "Load CLIP"
}
},
"57:33": {
"class_type": "ConditioningZeroOut",
"inputs": {
"conditioning": [
"57:27",
0
]
},
"_meta": {
"title": "Conditioning Zero Out"
}
},
"57:8": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"57:3",
0
],
"vae": [
"57:29",
0
]
},
"_meta": {
"title": "VAE Decode"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)
for output in job.get_outputs("9"):
output.to_file(output.name)예시 사용해 보기
이 워크플로 정보
Z-Image-Turbo Text to Image 워크플로는 Z-Image-Turbo 모델을 사용해 텍스트 설명으로부터 이미지를 효율적으로 생성하도록 설계되었습니다. 이 워크플로는 영어와 중국어를 모두 지원하는 Single-Stream Diffusion Transformer를 활용해 다양한 활용 사례에 적용할 수 있습니다. 워크플로의 핵심은 텍스트 입력을 처리해 고품질 이미지를 생성하는 f2fdebf6-dfaf-43b6-9eb2-7f70613cfdc1 노드입니다. 생성된 이미지는 SaveImage 노드로 저장하며, MarkdownNote 노드는 워크플로 내부에 문서와 메모를 제공해 과정 이해 및 추적을 돕습니다.
기술적으로 이 워크플로는 속도와 품질에 최적화된 Z-Image-Turbo 모델의 효율을 활용합니다. 모델은 노이즈에서 시작해 입력 텍스트를 반영하는 일관된 이미지로 점진적으로 정제하는 디퓨전 과정을 사용합니다. 이 방식은 높은 출력 품질을 보장하는 동시에, 전통적인 방식보다 더 빠른 생성 시간을 제공합니다. 다국어 지원은 워크플로의 활용 범위를 넓혀 전 세계 사용자에게 적합한 도구가 됩니다.
질문과 답변
Z-Image-Turbo 모델은 영어와 중국어를 모두 지원하여 다양한 텍스트에서 이미지로 생성이 가능합니다.
노이즈에서 시작해 점진적으로 변환을 적용하며 이미지를 일관된 형태로 정제하여, 효율적으로 고품질 출력을 만듭니다.
예. Z-Image-Turbo 모델의 라이선스 조건을 준수하는 한 상업 프로젝트에 사용할 수 있습니다.
작성자 노트에 제공된 링크를 따라 GitHub 이슈 트래커에서 문제를 보고할 수 있습니다.