Zhenhen Sora2 New
Sora 2 in ComfyUI, with a key caveat you need to know first
- reference_image
- video
- video_url
- response
OpenAI's Sora 2 has been a frustratingly closed shop for ComfyUI users, so when a node claims to generate Sora 2 video from your graph, it gets attention. Comfly_sora2_new is that node - a paid API client that sends your prompt to Sora 2 through a Comfly-operated relay and returns the finished video. It works, but there's a catch in the fine print that the README is admirably upfront about, and you should know it before you queue your first run.
The catch: the key is special
Every other node in this pack authenticates against https://ai.comfly.chat with the key from your account there. Not this one. The README says it plainly: this node's API key "temporarily can't be a comfly.chat key" - you have to contact the author and buy a separate key, roughly 0.2 RMB per generation. The code confirms it: Comfly_sora2_new points at a different relay, https://leo.comfly.chat, and starts with an empty key rather than reading your Comflyapi.json. So if you wire in your normal Comfly key and it fails, that's not a bug - you're using the wrong credential class.
What you control
- prompt - multiline, required.
- model -
sora-2orsora-2-pro. Pro is wherelargesize becomes available. - orientation -
portrait(default) orlandscape. - size -
small(standard) orlarge(HD; README notes large is sora2-pro only). - duration - 10s, 15s, or 25s.
- reference_image - optional; feed it a character or scene still to ground the video.
- seed - 0 means "surprise me," or set it to reproduce a shot.
Outputs: video (VIDEO - plugs into ComfyUI's native Save Video node, per the pack README), plus video_url and response for the raw side of things. Sora 2 also does character cameos, but that's a sibling node (Comfly_sora2_character), not this one.
Install
Shared with the pack:
cd ComfyUI/custom_nodes
git clone https://github.com/ainewsto/Comfyui_Comfly
Or ComfyUI Manager → search "Comfyui_Comfly" → restart. No models download - nothing runs locally. Buy the separate Sora key from the author as described above; the node's apikey input is where it goes.
Gotchas
Beyond the key situation: Sora 2 renders are slow and each one costs money, so treat runs as precious - lock your prompt and reference image before you spend. The README also notes this pack's Sora story is fragmented across several nodes (Comfly_sora2, Comfly_sora2_chat, Comfly_sora2_openai) with different refund behaviors - one chat-format node explicitly does not refund failed tasks, and it's worth checking which behavior you're signing up for before you pick your node. This one is the "new" clean variant, but it's still a third-party relay: outages happen, and a failed paid task stings.
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | — | |
| model | COMBO | sora-2 | 1 options: sora-2 |
| orientation | COMBO | portrait | 2 options: portrait, landscape |
| size | COMBO | small | 1 options: small |
| duration | COMBO | 15s | 2 options: 10s, 15s |
| apikey | STRING | — | |
| reference_imageopt | IMAGE | — | |
| seedopt | INT | 00–2147483647 | — |
| skip_erroropt | BOOLEAN | false | 开启后,节点失败时不报错、按旧行为返回默认空结果;关闭时(默认)失败直接抛出错误。 |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| video | VIDEO | — |
| video_url | STRING | — |
| response | STRING | — |