
This ComfyUI workflow, titled 'Wan2.5: Text to Image,' is designed to generate high-quality images from text prompts using the FLUX.1 Pro model. The workflow leverages the WanTextToImageApi node to process text inputs and produce visually appealing images with excellent prompt adherence. The use of the Wan2.5 model ensures that the generated images maintain a high level of detail and quality, making it a powerful tool for creative projects. The workflow also includes a SaveImage node, which allows users to easily save the generated images for further use or distribution. This workflow is particularly useful for artists, designers, and content creators who need to quickly generate images based on specific textual descriptions.
API
Use this workflow from code
Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.
Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
// Install (beta)
npm i @comfyorg/sdk
// Run "Wan2.5: Text to Image" (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("api_wan_text_to_image_api.json");
const job = await client.run(wf);
await job.getOutputs("13")[0].toFile("output.png"); // SaveImageThe SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).
Comfy Cloud API access requires a plan with an API key.
FAQ













