HowDoesAIDoThat?

Guide / ComfyUI basics

Build your first ComfyUI workflow

Make your first ComfyUI image with the official purple-bottle recipe, then save the workflow and try a new subject.

By HowDoesAIDoThatSources checked 2026-10-11
  1. 01 / processInstall

    SD1.5 checkpoint and official starter

  2. 02 / processDescribe

    Publisher bottle prompt, 512-square canvas and fixed seed

  3. 03 / processGenerate

    Sample latent, then decode pixels

  4. 04 / processKeep

    Save image and export workflow JSON

Choose a route

RouteCost basisWhat you needWhat changes
Local ComfyUIFree localNo ComfyUI subscription; own hardware, electricity and model storage.Compatible local hardware and exact model files; check installation requirements.More setup and troubleshooting; local-model nodes need no paid API.
Comfy CloudPaid hostedPaid subscription plus runtime credits; a limited free tier is advertised. Check live terms.Account, available compatible models; Creator, Pro or Team for custom imports.No local GPU required; uploads leave your device and allowances vary.

Provider links are ordinary links. Free local software still needs hardware, storage and setup time; inspect current provider terms before paying.

Make one image and keep the recipe

A ComfyUI workflow is a recipe you can see: a model, a prompt, a few settings and an image at the end. Start with the official purple-bottle example, save the picture, then keep the recipe so you can make another. Its small SD1.5 graph is a useful way to learn what each connection does.

About the example: the screenshots and original bottle image are ComfyUI's publisher examples. This walkthrough follows the publisher’s starter recipe.

See the publisher's result first

ComfyUI documentation screenshot showing a generated purple galaxy bottle in the Media Assets panel and Save Image node.

Publisher screenshot: Comfy-Org's first-generation result, reproduced unmodified from its documentation repository under GPL-3.0. Open the image to inspect it at full size.

For this lesson's exact recipe, open the publisher's original 512 × 512 workflow PNG. It contains the prompt and workflow inside the image file: drag it into ComfyUI to reopen the graph. Its model, prompts, seed, size and sampler match the starter below. The saved graph records comfy-core version 0.3.14.

Download the original workflow PNG to import the recipe into ComfyUI. The screenshots show where to find the controls.

Choose local or hosted

Free local: use ComfyUI with your own compatible hardware. The software route has no subscription, but model storage, hardware and electricity still matter. Read Can I run AI locally? before downloading. Follow the installation route for your operating system in the official requirements.

Hosted alternative: Comfy Cloud gives you the editor and a generation GPU online, making it a useful option on a basic laptop. It offers free access and paid subscriptions. The first-generation documentation and pricing page describe different free allowances, so use the offer shown in your account when deciding how much you can make.

Prepare the model and starter

  1. Install and launch ComfyUI using the official first-generation guide. Note your ComfyUI and frontend versions beside the workflow so you can return to the same setup later.
  2. Download the official text-to-image.json, then use Workflows → Open to import it. This link fixes the inspected revision rather than silently changing with the next upstream edit. The starter uses built-in nodes; no third-party node pack is required. You can also drag the publisher's original workflow PNG into ComfyUI, but the documentation screenshot shown above is not an importable workflow.
  3. Download the exact v1-5-pruned-emaonly-fp16.safetensors checkpoint after reading its model card and licence. Save it under ComfyUI/models/checkpoints. For Windows Portable this is ComfyUI_windows_portable/ComfyUI/models/checkpoints. Desktop users should check their actual model directories in its Storage panel.
  4. Refresh the model list with R or restart ComfyUI. Select that file in Load Checkpoint. A JSON workflow is the recipe, not a copy of the model weights. Importing it alone cannot install everything it needs.

Keep the downloaded filename intact. Do not substitute an SDXL, Flux or video model into this small SD1.5 lesson and expect the same graph to work. Those families have their own required loaders, conditioning and sampling arrangements.

Understand the connections

Read the graph from inputs to output. Load Checkpoint supplies MODEL to KSampler, CLIP to both CLIP Text Encode nodes, and VAE to VAE Decode. The two text encoders feed KSampler's positive and negative conditioning. Empty Latent Image feeds its latent_image input. KSampler's LATENT output goes to VAE Decode, whose IMAGE goes to Save Image.

ComfyUI documentation screenshot labelling the checkpoint, latent canvas, positive and negative text encoders, sampler, decoder and image export.

Publisher graph screenshot: Comfy-Org's text-to-image node walkthrough, reproduced unmodified under GPL-3.0. It uses an older interface with a Queue button; current instructions call this Run. All settings are written below so you do not need to read tiny text in the screenshot.

These connections explain why a prompt cannot go straight into Save Image: text first becomes conditioning, sampling produces a latent representation, then decoding makes viewable pixels. See workflow and checkpoint if the terms are unfamiliar. The upstream node walkthrough explains the same stages.

Make the purple bottle

  1. In the positive text encoder, keep the publisher's starter prompt exactly, including its repeated comma:
beautiful scenery nature glass bottle landscape, , purple galaxy bottle,
  1. Keep the negative text encoder at text, watermark. This names things to discourage; it is not a guaranteed exclusion filter.
  2. Check the following settings against your nodes:
Setting Value
Checkpoint v1-5-pruned-emaonly-fp16.safetensors
Empty Latent Image width and height 512 × 512
Batch size 1
KSampler seed 156680208700286
Steps / CFG 20 / 8
Sampler / scheduler euler / normal
Denoise 1
Save Image filename prefix ComfyUI
  1. Change KSampler's control_after_generate from randomize to fixed before clicking Run. This keeps the seed in the table for your next run. Our fixed-seed version of the graph makes that one change for you.
  2. Click Run or press Ctrl + Enter on Windows/Linux; use Cmd + Enter on macOS. These are the default shortcuts, which users can customise. Wait for the queue to finish. If there is an error, read the exact failing node before retrying. Repeatedly queuing the same broken graph will not fix a missing model.

Look for a square image combining a glass bottle, scenery and a purple galaxy. Your picture may vary with the software and hardware you use. Once the queue finishes, save the 512 × 512 PNG and take a closer look at what the prompt produced.

Save, inspect and repeat

When successful, inspect the preview in Save Image and save it locally from the image menu. The local Save Image node also writes to ComfyUI/output. Open the saved file outside ComfyUI to confirm it exists and has the expected dimensions.

Use Workflows → Export to save the edited recipe as bottle-first-workflow.json. Keep the PNG, JSON, model filename, prompts, seed and version notes together. Test reopening the JSON before deleting your session. Retain the original upstream starter separately so you can recover from a broken edit.

The default Save Image implementation embeds workflow and prompt metadata in the PNG, unless metadata saving has been disabled. Drag your own original output back into the editor to check that it restores the recipe. A screenshot, a social-media upload or a re-encoded PNG may lack those fields. Keep the separate exported JSON regardless. The behaviour is implemented in ComfyUI's Save Image source.

Practise by changing the subject

Once the bottle route works, replace its positive prompt with our original practice prompt:

small cream-coloured robot, orange jacket, standing beside a wooden desk, three-quarter view, plain slate background, soft studio lighting, illustration

Set the negative prompt to text, watermark, duplicate subject, change the seed to 424242 and keep seed control fixed. Retain the other settings. This is a new practice exercise for your own run.

Save one output, then change only orange jacket to blue jacket and run again. Compare the clothing, robot shape and background: a fresh text-to-image run can alter more than the words you changed. Use masked inpainting when you want to edit one area of a picture you already like. The robot exercise JSON gives you the starting settings.

Run the hosted version

In Comfy Cloud, open the template browser or import your saved workflow. Confirm the selected checkpoint is available before running; a paid tier may be needed to import a missing custom model. Enter the same prompt and settings, then run and download the image from the output or queue panel. Also export the workflow JSON.

The pricing page explains runtime credits and separate Partner Node charges. This recipe uses core model nodes. Check the credits used for your own run when deciding how many pictures to make in a session.

Fix the common blockers

  • Load Checkpoint shows null: check the complete filename and actual checkpoints directory; refresh or restart after moving the file.
  • Missing nodes: this starter needs built-in nodes. Confirm you loaded the upstream file rather than another creator's extended graph; see missing-node diagnosis.
  • Out of memory: keep batch size one and the small dimensions. Check available VRAM and the model's runtime requirements as well as disk space.
  • The image ignores a detail: preserve the first output, change one phrase, then compare. More adjectives or sampling steps are not a reliable fix for every limitation.

Download the recipe prompt, model checklist and settings sheet below. Keep the original starter beside the fixed-seed and robot versions so you can undo an experiment and start again. You will need to obtain the model separately.

Publisher recipe prompt

Comfy-Org official SD1.5 starter; unchanged recipe text. Robot practice text is a separate, untested exercise in the guide.

beautiful scenery nature glass bottle landscape, , purple galaxy bottle,

Take the steps with you

Reader starter files

The guide, editable prompt, checklist, source register and a blank reproduction log. Includes the publisher graph, fixed-seed versions, attributed screenshots and licence notes. Download the model weights separately.

Download the starter pack

Sources and method

Primary references checked 2026-10-11. ComfyUI publisher examples accompany the official SD1.5 recipe. The original bottle PNG carries its saved prompt and settings.