app.nzapp
AppsProjectsReposPullsChatIntegrationsGatewayModelsEvalsToolsDatasetsMCPDeploysPricingBlogDocsAssistantsCharactersArtMusic
Sign inStart building
Agent stack
Cloud coding agentAgents SDKIntegrationsBrowser agentMonitors & auto-agentsSchedulersAgent skillsMCP serversDeep research
Models & API
AI GatewayModel catalogModel evalsModel spacesPlaygroundText to imageImage to 3DText to 3DMusic & SFXAudio editorMedia optimizerAI art & libraryChatAPI referenceSchemaBecome a provider
Compute & hosting
DeploysAddonsPostgres hostinggobed vector searchSite hostingAnalyticsCog GPU hostingRL trainingBuilds & CIWorkersTask queuesDomainsGit hosting
Tools
AI toolsDrawDiffusion canvasLive DrawWriteSheetsArtifactsVideo studioNotebooksDatasets
Learn
DocsBlogEval guidesPrompt libraryCLIAlternativesPapersAI charactersArt gallerySecurityConsulting
Company
PricingEnterpriseSettingsBillingStatusInvestorsCreate accountTerms of ServicePrivacy Policy
app.nzapp.nz

AI agent cloud for coding, deploys, model routing, and research. Built for teams shipping software.

Built in New Zealand by App AI NZ.

Social
X / TwitterGitHubYouTube
The app.nz network
GpuBrainPapersReading TimemojojojoNetwrckText-Generator.ioCodex InfinityOpenPathsCuteDSLAI Art GeneratorAIArt-Generator.artSiteSimSimplexGenDictatorFlowWebFiddleRing.nzChatGibidyBitBankExperimentFlowEvangelerHires.nzHow.nzV5 GamesAddicting Word GamesBig Multiplayer ChessWord SmashingreWord GameMultiplication Master
© 2026 App AI NZ Ltd. All rights reserved.All systems normalTermsPrivacy
Blog
July 22, 2026·7 min read·app.nz

ComfyUI lesson 4: Build text-to-image from a blank canvas

Wire the seven-node mental model from checkpoint to saved pixels.

Listen to this article

On-device voice

Uses the voice built into your browser; no article text leaves this page.

Audio narration is not supported by this browser.

Templates are useful after you understand their skeleton. Open a blank ComfyUI canvas and build the Proteus graph without importing it; use the downloadable JSON only to compare your result.

The seven-node mental model

  1. Load Checkpoint returns MODEL, CLIP, and VAE.
  2. Two CLIP Text Encode nodes create positive and negative conditioning.
  3. Empty Latent Image sets width, height, and batch size.
  4. KSampler combines model, conditioning, latent, seed, steps, CFG, sampler,

scheduler, and denoise.

  1. VAE Decode turns sampled latents into pixels.
  2. Save Image writes the output and embeds workflow metadata where supported.

Connect sockets by type, not by visual proximity. MODEL goes to the sampler. CLIP goes to both text encoders. Their CONDITIONING outputs go to positive and negative. LATENT enters the sampler and leaves it. The checkpoint's VAE decodes the sampled latent, and IMAGE goes to Save.

Make useful inputs visible

The runnable gallery version maps prompt, negative prompt, seed, steps, CFG, width, and height as API inputs. That is the difference between a graph that works once and a workflow that can become a product endpoint.

Use multiples of 64 for dimensions and stay near the model's training resolution. Doubling both width and height quadruples latent area and sharply increases memory. Start at 1024×1024, batch size one.

When your hand-built graph matches the downloaded graph, save both normal workflow JSON and Save (API Format). The former preserves editor layout; the latter is the graph a queue or deployment endpoint executes.

Run the lesson, do not just read it

  • Open the tested workflow in Comfy Studio
  • Download the exact API-format JSON
  • CLI: app comfy download proteus-v04-text-to-image

The gallery records model sources, minimum VRAM, custom-node requirements, and verification state beside the graph. That is the portable unit for this series.


Series progress: lesson 4 of 10. Previous: Prompt with intent, not incantations Next: Build image-to-image and master denoise

Build what you just read

Ship agents, models, and apps on one cloud.

Start with free credits, then use the same platform from the web app, CLI, desktop app, or MCP.

Start building freeRead the docs

Keep reading

ComfyUI lesson 5: Build image-to-image and master denoise

Encode a source image and use denoise to choose between a retouch and a rebuild.

ComfyUI lesson 1: Install ComfyUI cleanly and make your first image

Pick a portable install, verify the GPU, place one checkpoint correctly, and run a known-good graph.

ComfyUI lesson 10: Debug any broken ComfyUI workflow

Start at the first red node and resolve models, nodes, VRAM, shapes, and blank outputs systematically.