
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.
GET https://comfy.org/workflows/download/782abbc43435.jsonFetching workflow JSON…
Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
# Install (beta)
pip install comfy-sdk # Python
npm i @comfyorg/sdk # TypeScript
# Run "Chroma: Text to Image" (Python)
from comfy_sdk import Comfy
client = Comfy(api_key="comfyui-...")
# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("image_chroma_text_to_image_api.json")
wf.set_input("748", "text", "your prompt here") # CLIPTextEncode
job = client.run(wf)
for output in job.get_outputs("740"): # SaveImage
output.to_file(output.name)The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key
FAQ














