Z-Image Int8: Text to Image
Generate high-quality, diverse images from text prompts using the Z-Image Int8 model, which leverages an undistilled transformer for precise prompt adherence…
下载工作流在 Cloud 中试用 API 文档
简介
Generate high-quality, diverse images from text prompts using the Z-Image Int8 model, which leverages an undistilled transformer for precise prompt adherence…
你需要提供
- 正在读取工作流
在 ComfyUI 中运行。 此工作流无法在本页面运行。请下载后在 ComfyUI 中打开。
下载工作流此工作流暂无示例输出。
查看工作流内部
节点图的只读预览。在 Comfy Cloud 中打开或下载后即可编辑节点。
Loading the graph
Open full-size workflow preview此工作流中的文件
- Comfy Cloud
- 是
- 输出
- 图像
- 作者
- 作者信息暂不可用
需要自定义节点
- 正在读取工作流
通过代码使用此工作流
尽可能根据工作流图和输入自动生成代码,否则显示已保存的示例。运行代码可能产生费用,请先核对凭据和端点。
1 获取 API 密钥 ↗
What you need
- Runs on
- Comfy Cloud
- 密钥
- COMFY_API_KEY
需要付费的 Cloud 方案和额度。
下载 API JSONAPI 文档 ↗
# 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({
"94": {
"class_type": "ResolutionSelector",
"inputs": {
"aspect_ratio": "1:1 (Square)",
"megapixels": 1,
"multiple": 8
},
"_meta": {
"title": "Resolution Selector"
}
},
"95": {
"class_type": "SaveImageAdvanced",
"inputs": {
"filename_prefix": "Z_image_base_int8",
"format": "png",
"format.bit_depth": "8-bit",
"format.input_color_space": "sRGB",
"images": [
"76:65",
0
]
},
"_meta": {
"title": "Save Image (Advanced)"
}
},
"76:62": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen_3_4b.safetensors",
"device": "default",
"type": "lumina2"
},
"_meta": {
"title": "Load CLIP"
}
},
"76:63": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "ae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"76:65": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"76:69",
0
],
"vae": [
"76:63",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"76:66": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "z_image_int8_convrot.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"76:67": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"76:62",
0
],
"text": "Surreal double exposure portrait, semi-transparent glass human silhouette filled with fresh flowers and green foliage, faceless, glossy royal blue nylon baseball cap & shiny royal blue puffer jacket, bird of paradise, white jasmine, light purple forget-me-nots, lush leaves through glass gaps, subtle glass light refraction, plain off-white minimalist background, soft studio lighting, high fashion editorial, hyperrealistic texture, reflective synthetic fabric, delicate translucent flower layers, vertical composition, sharp focus, 8K ultra detailed, neutral tones with bright blue & orange floral pops, botanical glass fashion art"
},
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
},
"76:68": {
"class_type": "EmptySD3LatentImage",
"inputs": {
"batch_size": 1,
"height": [
"94",
1
],
"width": [
"94",
0
]
},
"_meta": {
"title": "EmptySD3LatentImage"
}
},
"76:69": {
"class_type": "KSampler",
"inputs": {
"cfg": 4,
"denoise": 1,
"latent_image": [
"76:68",
0
],
"model": [
"76:70",
0
],
"negative": [
"76:71",
0
],
"positive": [
"76:67",
0
],
"sampler_name": "res_multistep",
"scheduler": "simple",
"seed": 677498465340151,
"steps": 25
},
"_meta": {
"title": "KSampler"
}
},
"76:70": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"76:66",
0
],
"sampling": "flow",
"shift": 3
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"76:71": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"76:62",
0
],
"text": ""
},
"_meta": {
"title": "CLIP Text Encode (Negative Prompt)"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)相关工作流
- ZZ-Image
Z-Image:文生图
- ZZ-Image-Turbo
1.1 入门 - 文本生成图像
- Nano Banana 2 Text-to-Image
3x3 联系表
- AAnima
Anima Anime 文生图生成
- AAnima
Anima Base v1: 文本生成图像
- AAnima
Anima Lllite: Any Control to Image
- AAnima
Anima Lllite: Depth Control to Image
- AAnima
Anima Lllite: Image Inpainting
- QQuiver
Arrow 2: Text to SVG
- BBoogu
Boogu Turbo: Text to Image
- BRIA
Bria: FIBO 2.0 Text to Image
- CChroma, Flux
Chroma: 文生图