
The 'Chroma: Text to Image' workflow is designed to leverage the enhanced capabilities of the Chroma model, which builds upon the Flux model to produce high-quality, detailed images from text prompts. This workflow integrates several key nodes, including the VAEDecode, CFGGuider, and ModelSamplingAuraFlow, to ensure that the generated images are not only visually appealing but also accurately reflect the input prompts. The workflow begins by loading the necessary models using nodes like VAELoader and UNETLoader, setting the stage for precise image generation. The CLIPTextEncode node plays a crucial role in interpreting the text prompts, ensuring that the model understands the nuances of the input, which is further refined by the CFGGuider node to control the creativity and adherence to the prompt.
Technically, the workflow excels by employing a RandomNoise node to introduce controlled randomness, which is essential for generating unique outputs. The BasicScheduler and SamplerCustomAdvanced nodes work in tandem to manage the sampling process, ensuring that the images are generated efficiently and with high fidelity. The inclusion of the T5TokenizerOptions node allows for flexible prompt customization, making it easier for users to experiment with different text inputs. This workflow is particularly useful for artists and content creators who need to generate high-quality images from textual descriptions, as it combines advanced model capabilities with user-friendly settings to produce stunning visual results.
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 "Chroma: текст в изображение" (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("image_chroma_text_to_image_api.json");
wf.setInput("748", "text", "your prompt here"); // CLIPTextEncode
const job = await client.run(wf);
await job.getOutputs("740")[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














