demobook

ComfyUI: Integrating ChatGPT API for Prompt Generation

Demo summary

The instructor demonstrates signing into the ComfyUI API and using a ChatGPT node to automatically generate detailed image prompts for local models.

Step-by-step

  1. Click the plus icon to add a new blank workflow in ComfyUI
  2. Double-click the canvas and search for 'chat GPT' to add the API node
  3. Select a model from the OpenAI list within the node settings
  4. Drag a link from the node's string output and add a 'Preview as Text' node
  5. Go to Settings > User and click 'Sign In' to log in with a ComfyUI or Google account
  6. Click 'Purchase Credits' and select an amount (minimum $5) to fund the API usage
  7. Enter your prompt in the ChatGPT node and run the workflow to generate text
  8. Connect the ChatGPT node output to a local model's positive prompt input

Options

  • Select 'ChatGPT Mini' to consume near-zero credits per request
  • Select larger models for higher quality at a cost of 2-8 credits
  • Pay via Link, credit card, or Google Pay
  • Purchase credits as a business

Watch out for

  • API nodes require a stable internet connection to function
  • A minimum purchase of $5 (1,550 credits) is required to start using paid API nodes
  • You have less control over model internals compared to local nodes

Tips

  • Use ChatGPT Mini for testing to save credits as it is significantly cheaper
  • Log in with Google for a faster setup process
  • Refine your prompt instructions (e.g., 'generate a single prompt') to avoid getting multiple suggestions that might break your workflow
  • Use API nodes to save local VRAM and system resources when running heavy models

Highlights

From the workflow point of view, nothing special is happening. Nodes still connect left to right. Data still flows through cables.

All demos from “ComfyUI Course - Learn ComfyUI From Scratch | Full 5 Hour Course (Ep01)

  1. 9:173:04Install ComfyUI using Easy InstallThe instructor demonstrates how to download the ComfyUI Easy Install zip from GitHub, extract it, and run the BAT file to set up a portable local installation.ComfyUIAI Image Generator
  2. 13:355:23ComfyUI Interface OverviewA walkthrough of the ComfyUI UI, demonstrating the canvas, node search, top bar controls, view settings, and how to properly close the application.ComfyUIAI Image Generator
  3. 18:588:14Running a Ready-Made WorkflowThe video shows how to load a .json workflow, download the required Juggernaut Reborn model, refresh the node list, and generate an image of a cat.ComfyUIAI Image Generator
  4. 27:266:13Building a Basic Image Processing WorkflowDemonstration of adding nodes (Load Image, Image Crop, Save Image) and connecting them via color-coded links to perform non-AI image tasks.ComfyUIAI Crop Image
  5. 44:186:05Using Math and Grouping NodesThe instructor shows how to use Math Int and Preview as Text nodes for automation and how to organize nodes into Groups for better workflow management.ComfyUIAI Image Generator
  6. 1:27:395:06Image-to-Image Workflow with Denoise ControlDemonstration of converting a text-to-image workflow into an image-to-image setup using VAE Encode and adjusting the denoise parameter to control variation.ComfyUIImage to Image
  7. 1:48:162:58Managing Custom Nodes with ComfyUI ManagerThe video walks through searching for, installing, and uninstalling custom nodes (specifically the 'Align' node) using the built-in Manager.ComfyUIAI Image Generator
  8. 2:35:539:48Applying LoRA for Style ModificationDemonstration of adding a LoRA loader to a workflow, using trigger words, and adjusting LoRA strength to change a robot into a 'cake style' robot.ComfyUIAI Style Transfer
  9. 2:47:359:01Guiding Structure with ControlNetThe video shows how to use Canny and Depth ControlNet models with pre-processors to guide image generation based on an input sketch or 3D text.ComfyUIAI Image Generator
  10. 3:11:488:27Generating Images with Z-Image TurboA demonstration of setting up the modern Z-Image Turbo model, including the specific Model Sampling AuraFlow node and high-quality prompt generation.ComfyUIAI Image Generator
  11. 4:13:595:52Integrating ChatGPT API for Prompt GenerationCurrentThe instructor demonstrates signing into the ComfyUI API and using a ChatGPT node to automatically generate detailed image prompts for local models.ComfyUIAI Image Generator
  12. Watch “ComfyUI Course - Learn ComfyUI From Scratch | Full 5 Hour Course (Ep01)” →

AI Image Generator

  1. 1:560:39Load a text-to-image workflow and download missing modelsThe user demonstrates how to load a default text-to-image template in ComfyUI and use the 'show missing models' feature to download required AI checkpoints.Kevin Stratvert
  2. 4:110:29Manage generated assets in ComfyUIThe presenter demonstrates how to access the assets panel using the 'A' shortcut to view, save, or delete previously generated images.Kevin Stratvert
  3. 15:005:45Generate image with Hermes Agent and ComfyUIThe host uses the Hermes Agent TUI to request a 1024x1024 image of a tree using the Zimage Turbo model, which the agent executes by generating and running a ComfyUI workflow.ComfyUI
  4. 6:420:59Configure Gemma 2B Text Encoder in ComfyUIThe creator shows how to load the Gemma 2B text encoder model into the ComfyUI workflow and select it from the node dropdown menu.AI Search
  5. 4:270:30Copying and replacing prompts in ComfyUIThe user demonstrates a custom node feature that allows hovering over prompt examples to copy and then replace the current prompt in the workflow with a single click.pixaroma
  6. 13:030:51Managing node colors with PixaRoma nodesThe video demonstrates UI updates for PixaRoma nodes in ComfyUI, including selecting color swatches, copying/pasting colors between nodes, and setting favorite colors.pixaroma
  7. 4:150:35Launch ComfyUI on WindowsThe creator demonstrates how to launch the portable version of ComfyUI by running the 'run_nvidia_gpu' batch file and accessing the interface via a web browser.WINBUSH
  8. 10:071:30Browse and load ComfyUI templatesThe creator demonstrates how to navigate the templates menu, filter for local models, and load a Flux 2 image generation workflow.WINBUSH
  9. 0:000:33Configuring MSR mode in LTX DirectorThe user demonstrates setting up the Director node in ComfyUI for MSR (Multiple Subject Reference) mode, including bypassing clean latent slices and enabling the MSR LoRA.RedShade
  10. 5:090:19Loading LTX Director V5 workflow templateThe video shows how to search for and load the LTX Director V5 template within ComfyUI and input prompts for character generation.RedShade
  11. 4:251:21Iterative rerolling at specific generation stagesThe video shows how to use the 'reroll' button at specific stages of the workflow to change motion or visual quality without re-generating the initial seed samples.Fox•Fur•Essence Films
  12. 9:173:04Install ComfyUI using Easy InstallThe instructor demonstrates how to download the ComfyUI Easy Install zip from GitHub, extract it, and run the BAT file to set up a portable local installation.pixaroma