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 Contact Sheet
- 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: 文生圖