See your subject from a new angle
Choose a camera angle and distance to see the subject in your image from a new viewpoint.
ワークフローをダウンロードCloudで試す API ドキュメント
ワークフローの内部
ソーステンプレートの読み取り専用プレビューです。Cloud で開くと、ノードを確認して変更できます。
Loading the graph
Open full-size workflow preview- 作成者
- ComfyUI
コードからこのモデルを呼び出す
以下のリクエストでは、Playground と同じ準備済みグラフと設定を使用します。送信ごとに有料実行が開始される場合があります。結果が不明な送信を自動的に再試行しないでください。
1 API キーを取得 ↗
What you need
- Runs on
- Comfy Cloud
- キー
- COMFY_API_KEY
- ファイル
- コードによって URL からアップロードされます
有料の 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({
"1": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"2": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "Qwen_Edit_2511",
"images": [
"219:158",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"3": {
"class_type": "QwenMultiangleCameraNode",
"inputs": {
"camera_view": False,
"default_prompts": False,
"horizontal_angle": 24,
"image": [
"1",
0
],
"vertical_angle": 0,
"zoom": 5.7
},
"_meta": {
"title": "Qwen Multiangle Camera"
}
},
"219:145": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"219:220",
0
],
"sampling": "flow",
"shift": 3.1
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"219:146": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "qwen_image_vae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"219:147": {
"class_type": "FluxKontextMultiReferenceLatentMethod",
"inputs": {
"conditioning": [
"219:149",
0
],
"reference_latents_method": "index_timestep_zero"
},
"_meta": {
"title": "Edit Model Reference Method"
}
},
"219:148": {
"class_type": "FluxKontextMultiReferenceLatentMethod",
"inputs": {
"conditioning": [
"219:151",
0
],
"reference_latents_method": "index_timestep_zero"
},
"_meta": {
"title": "Edit Model Reference Method"
}
},
"219:149": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"219:162",
0
],
"image1": [
"219:160",
0
],
"prompt": "",
"vae": [
"219:146",
0
]
},
"_meta": {
"title": "TextEncodeQwenImageEditPlus"
}
},
"219:151": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"219:162",
0
],
"image1": [
"219:160",
0
],
"prompt": [
"3",
0
],
"vae": [
"219:146",
0
]
},
"_meta": {
"title": "TextEncodeQwenImageEditPlus (Positive)"
}
},
"219:152": {
"class_type": "CFGNorm",
"inputs": {
"model": [
"219:145",
0
],
"pre_cfg": False,
"strength": 1
},
"_meta": {
"title": "CFGNorm"
}
},
"219:153": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",
"model": [
"219:152",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"219:154": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 4
},
"_meta": {
"title": "CFG"
}
},
"219:155": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 1
},
"_meta": {
"title": "CFG"
}
},
"219:156": {
"class_type": "VAEEncode",
"inputs": {
"pixels": [
"219:160",
0
],
"vae": [
"219:146",
0
]
},
"_meta": {
"title": "VAE Encode"
}
},
"219:158": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"219:169",
0
],
"vae": [
"219:146",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"219:160": {
"class_type": "FluxKontextImageScale",
"inputs": {
"image": [
"1",
0
]
},
"_meta": {
"title": "FluxKontextImageScale"
}
},
"219:161": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "qwen_image_edit_2511_bf16.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"219:162": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
"device": "default",
"type": "qwen_image"
},
"_meta": {
"title": "Load CLIP"
}
},
"219:163": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"219:152",
0
],
"on_true": [
"219:153",
0
],
"switch": [
"219:168",
0
]
},
"_meta": {
"title": "Switch (Model)"
}
},
"219:164": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"219:154",
0
],
"on_true": [
"219:155",
0
],
"switch": [
"219:168",
0
]
},
"_meta": {
"title": "Switch (CFG)"
}
},
"219:165": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 4
},
"_meta": {
"title": "Steps"
}
},
"219:166": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 40
},
"_meta": {
"title": "Steps"
}
},
"219:167": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"219:166",
0
],
"on_true": [
"219:165",
0
],
"switch": [
"219:168",
0
]
},
"_meta": {
"title": "Switch (Steps)"
}
},
"219:168": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": True
},
"_meta": {
"title": "Enable 4steps LoRA?"
}
},
"219:169": {
"class_type": "KSampler",
"inputs": {
"cfg": [
"219:164",
0
],
"denoise": 1,
"latent_image": [
"219:156",
0
],
"model": [
"219:163",
0
],
"negative": [
"219:147",
0
],
"positive": [
"219:148",
0
],
"sampler_name": "euler",
"scheduler": "simple",
"seed": 174022977952515,
"steps": [
"219:167",
0
]
},
"_meta": {
"title": "KSampler"
}
},
"219:220": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "qwen-image-edit-2511-multiple-angles-lora.safetensors",
"model": [
"219:161",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
}
})
workflow.set_input("1", "image", client.assets.from_url("https://cdn.jsdelivr.net/gh/Comfy-Org/workflow_templates@90c71fb78b3726392d010ff62a8e79e92d7296ad/input/cyber_genesis.png"))
# 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("2"):
output.to_file(output.name)