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 JSONをダウンロードAPI ドキュメント ↗
# 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)