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·8 min read·app.nz

ComfyUI lesson 9: Automate batches, prompt lists, REST, CLI, and MCP

Treat workflow inputs as an API contract and keep a manifest for every batch.

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.

Automation starts when named inputs replace hand-edited nodes. The gallery workflow already maps prompt, negative prompt, seed, steps, CFG, width, and height, so the same graph works from web, REST, CLI, desktop MCP, or a nightly batch.

Deploy Proteus V0.4

app comfy tutorials
app comfy deploy-gallery --mode auto proteus-v04-text-to-image

The deployment response includes an id. Put one job's values in inputs.json:

{
  "prompt": "paper-cut ocean research station, soft morning light",
  "negative_prompt": "watermark, text, blurry",
  "seed": 4201,
  "steps": 24,
  "cfg": 5
}

Then queue and poll it:

app comfy run DEPLOYMENT_ID --inputs inputs.json
app comfy status RUN_ID --json

For CuteDSL-accelerated Z-Image, deploy cute-zimage-turbo instead. It exposes prompt, seed, steps, width, and height through the same run API.

Build a batch manifest

Use one JSONL row per prompt with a stable job id, seed, workflow slug, workflow hash, and inputs. Submit rows with limited concurrency, poll with backoff, and append the run id, output artifact, duration, and error. Never generate seeds implicitly if you need a batch to resume.

REST clients use POST /api/comfy/spaces/{slug}/deploy, POST /api/comfy/{deployment}/run, and GET /api/comfy/runs/{run}. Desktop agents can call comfy_workflow_deploy, comfy_inference_run, and comfy_inference_status. The contract is the same; only the transport changes.

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 9 of 10. Previous: Run modern models on modest VRAM Next: Debug any broken ComfyUI workflow

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 2: Diffusion, seeds, CFG, samplers, and schedulers

Learn what each setting changes by holding every other variable still.

ComfyUI lesson 3: Prompt with intent, not incantations

Layer subject, composition, light, and finish; use negatives only to correct observed failures.

ComfyUI lesson 10: Debug any broken ComfyUI workflow

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