AI_DoubaoWebPreview
Pull generated images back from a Doubao browser session
- image
- task_completed
This node has no prompt field, no model picker, nothing that looks like it submits a generation job - because it doesn't. AI_DoubaoWebPreview is the retrieval half of a two-node pair with AI_web_tool (also in this pack): one node drives a browser session on doubao.com to actually generate images through ByteDance's free consumer web app, and this one waits for that job to finish and pulls the results back into ComfyUI.
It's a workaround for a specific problem. ByteDance's Seedream models are sold as a paid API through Volcano Engine, and that signup process is Chinese-market-first - a real barrier if you don't have a mainland China phone number and don't want to deal with cloud billing just to try an image model. The free-tier doubao.com web app, by contrast, is something anyone can click through in a browser. Automating that browser instead of paying for the API is the whole idea behind this pair of nodes.
The schema reflects that division of labor cleanly: no required fields at all, and only two optional ones - download_dir (where to save what gets pulled down) and image_count (1–32, how many images to wait for and retrieve). It outputs image (a list of IMAGEs, since you may be pulling back several at once) and task_completed, a boolean flag telling you whether the browser-side job actually finished before this node returned. That flag matters more than it looks - check it before you assume the images you got are the full, final set rather than whatever was ready when a timeout hit.
Installing it: through ComfyUI Manager (search "ComfyUI-Apt_Preset") or manually - cd ComfyUI/custom_nodes && git clone https://github.com/cardenluo/ComfyUI-Apt_Preset, then install.bat and restart. Browser-automation nodes like this typically need a headless browser driver (Playwright or Selenium plus a Chromium binary) installed as part of that dependency step - if install.bat doesn't handle it fully on your platform, that's the piece to install by hand.
Troubleshooting: the honest caveat here is that this entire approach is fragile by construction. It works by automating a real website's UI, not a stable API contract - the moment ByteDance redesigns doubao.com's page layout, moves a button, or adds a new verification step, this node can break silently with no changelog entry warning you it's coming. If task_completed keeps coming back false, check first whether the site itself loaded correctly (CAPTCHA, login prompt, regional block) before assuming the node's logic is at fault - and if you're outside China, be aware doubao.com's own access and rate limits may behave differently for you than for the environment this was built and tested in. If reliability matters more than saving on API costs, Ai_doubao_seedream's direct API path is the sturdier option, cost aside.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| download_diropt | STRING | — | |
| image_countopt | INT | 11–32 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| task_completed | BOOLEAN | — |