Extensions/Customizable API Call Nodes by BillBum
ComfyUI Extension

Customizable API Call Nodes by BillBum

API call node for Third-party platforms both official and local. Support VLMs LLMs Dalle3 Flux-Pro SD3 etc. And some little tools: img to b64 url, b64 url to img, b64 url to b64 data, reg text to word and ',' only, etc.

By AhBumm·Created 2 years ago·Updated 3 months ago· 11
AhBumm/ComfyUI_BillBum_APIset_Nodes
Nodes27
On cloudLocal install
CategoryBillBum Image Processing, BillBum_API
Stars11
Updated3 months ago

Nodes (27)

Base64 URL to Image Node

Turn a base64 data URI into an IMAGE tensor

BillBum Image Processing
Dall-E Custom API Node

DALL-E 3 in your graph, through any OpenAI-compatible endpoint

BillBum_API
Dropout by MaxToken Node

Dropping LLM text down to a token budget (and the bug that ships with it)

text_processing
Custom Flux API Node

Flux Pro and Kontext from the cloud, with an image reference input

BillBum_API
Custom GPTImage1 API Node

GPT Image 1 as a first-class IMAGE node — generation and inpainting

BillBum_API
Custom Ideogram API Node

Ideogram's text-in-image trick, without leaving the graph

BillBum_API
Custom Image Generation API Call Node

The 'give me raw JSON and I'll ship it' image API node

BillBum_API
Image to Base64 URL Node

Turn an image into a base64 data URL your APIs can eat

BillBum Image Processing
Custom LLM API Node (Old)

Talk to any OpenAI-compatible LLM from inside your workflow

BillBum_API
LLM StreamResponse Node (Old)

The legacy streaming LLM node — it works, but the pack moved on

BillBum_API
Custom Recraft API Node

Recraft v3 through an OpenAI-compatible endpoint — when you need words in the image

BillBum_API
Regular ResponseText to 1linePrompt Node

When your LLM answers like a poet and you need a one-line prompt

text_processing
OpenAI Responses API Node

Text, vision and image generation in one node — the OpenAI Responses API

BillBum_API
Stable Diffusion 3 API Node

Stable Diffusion 3 as an API call — sd3-core presets included

BillBum_API
API Node for Stream Response LLMs

The streaming LLM node you'll actually keep — text plus vision, no ceremony

BillBum_API/Stream Response
Vision LLMs API Node (Old)

Ask a vision model what's in your image — captioning, analysis, VLM-powered prompt writing

BillBum_API
Non-System Prompt VLMs API Node

The same vision-node, minus the system role — for VLMs that reject system messages

BillBum_API
Doubao Seedance2 VideoGen API Node

Seedance 2.0 video from inside ComfyUI — a cloud task, wrapped nicely

BillBum/API Nodes
Doubao Seedance VideoGen API Node

Doubao Seedance video from inside ComfyUI — submit a task, wait, grab the URL

BillBum/API Nodes
Doubao Seedream ImageGen API Node

Doubao Seedream images — the one API node that hands you a real IMAGE

BillBum/API Nodes
HyprLab ImageGen API Node

Nano Banana in ComfyUI, no Google account required

BillBum_API/Image_API
Input Text

A multiline text box that's boring on purpose

string processing
Load Video From URL (VHS Compatible)

Paste a video URL, get frames — no hand-downloading

BillBum_API/Utils
Load&Save Video From URL (Comfy Core)

Download a video URL into your output folder — the Comfy Core way

BillBum_API/Utils
UrlExtract from Chat Response

Pull the URLs out of an API's chat response — image or video

BillBum_API/Utils
Concat Text Strings Node

Stick two text strings together — the node you'll actually use more than you expect

string processing
Load Image from URL (BillBum)

The glue node that turns API image URLs back into actual ComfyUI images

BillBum_API/Utils
Readme

ComfyUI BillBum APIset Nodes

ComfyUI BillBum APIset Nodes is a custom node pack for calling external APIs from ComfyUI workflows. It focuses on OpenAI-compatible LLM and VLM endpoints, image generation APIs, provider-specific image and video APIs, and a small set of utility nodes for moving data between text, URLs, images, and base64 payloads.

This repository is useful if you want to:

  • run text generation from chat-style LLM APIs inside ComfyUI
  • caption or analyze images with vision-capable models
  • call image generation APIs such as DALL-E, SD3, Flux, GPT-Image-1, Ideogram, and Recraft
  • test custom image-generation endpoints without writing glue code
  • convert between image tensors, URLs, and base64 data in a workflow

Included Node Groups

The pack exports nodes in these categories:

  • LLM nodes: standard text generation, streaming response nodes, text input helpers, text concatenation, and token-drop utilities
  • Vision nodes: image captioning and image understanding through vision-capable chat APIs
  • Image generation nodes: DALL-E, Stable Diffusion 3, Flux, GPT-Image-1, Ideogram, Recraft, HyprLab, and generic image API calls
  • Video and provider-specific nodes: Doubao Seedance and Seedance2 video generation, plus Seedream image generation
  • Utility nodes: image to base64 URL, base64 URL to image, URL image loading, chat response parsing, and video loading from URLs

Some legacy nodes are still exported with names marked as Old. They remain available for compatibility with existing workflows.

Installation

Option 1: Install with ComfyUI Manager

Search for billbum in ComfyUI Manager and install the node pack.

Option 2: Install from Git URL

If you use Install via Git URL in ComfyUI Manager, paste this repository URL:

https://github.com/AhBumm/ComfyUI_BillBum_APIset_Nodes.git

If you prefer a manual install, clone it into your ComfyUI custom_nodes directory:

git clone https://github.com/AhBumm/ComfyUI_BillBum_APIset_Nodes.git

Install Python dependencies

Install the packages from requirements.txt with the same Python environment that runs ComfyUI:

pip install -r requirements.txt

Dependencies used by this project:

  • tenacity
  • openai
  • pillow
  • requests
  • numpy
  • tiktoken
  • urlextract

After installation, restart ComfyUI so the custom nodes are discovered correctly.

Quick Start

  1. Install the node pack and Python dependencies.
  2. Restart ComfyUI.
  3. Open the example workflow file minimal_api_group.json.
  4. Replace the placeholder API keys and base URLs with your own provider settings.
  5. Choose a model that is valid for the provider and endpoint you are using.
  6. Run one of the minimal workflow groups to confirm your setup.

The bundled example workflow includes these starter groups:

  • Minimal LLM Group
  • Minimal VisionLM Group
  • Minimal DALL-E Image Gen Group
  • Minimal Flux Image Gen Group
  • Minimal SD3 Image Gen Group
  • Minimal T2I API Call Group

Workflow Patterns by Node Group

These diagrams use a GitHub-safe Mermaid style: plain flowcharts, simple node shapes, and basic decision branches. They only show the most common external connections between nodes. Internal widget settings such as model, API URL, API key, seed, size, and similar parameters are intentionally omitted.

1. Text and LLM Nodes

Applies to stream LLM nodes, legacy chat nodes, text input helpers, concatenation, and token-limiting utilities.

flowchart TD
    A[Input Text] --> B[LLM API Node]
    B --> C[Raw Response Text]
    C --> D{Need post process}
    D -->|Yes| E[RegText or Next Text Node]
    D -->|No| F[Use Output Directly]

Use this pattern for prompt rewriting, prompt cleanup, chat generation, extraction, or any workflow where the main output is text.

2. Vision and Captioning Nodes

Applies to vision-capable API nodes and image-to-text analysis chains.

flowchart TD
    A[Load Image] --> C[Vision or VLM API Node]
    B[Prompt or Task Instruction] --> C
    C --> D[Caption or Analysis Text]
    D --> E{Need cleanup or next step}
    E -->|Yes| F[Text Cleanup or Next LLM Step]
    E -->|No| G[Use Output Directly]

Use this when you want caption generation, image analysis, prompt extraction, or visual QA before another text or image-generation step.

3. Image Generation Nodes

Applies to DALL-E, SD3, Flux, GPT-Image-1, Ideogram, Recraft, HyprLab, and similar text-to-image endpoints.

flowchart TD
    A[Prompt] --> B[Image Generation Node]
    B --> C{Output type}
    C -->|URL| D[Image URL]
    C -->|Base64| E[Base64 Image]
    D --> F[Load Image from URL]
    E --> G[Base64 URL to Image]
    F --> H[Preview or Downstream IMAGE Node]
    G --> H

Use this as the default pattern for most text-to-image endpoints, whether the API returns an image URL or a base64 payload.

4. Provider-Specific Media Nodes

Applies to provider-specific image or video nodes such as Doubao Seedream, Seedance, and Seedance2.

flowchart TD
    A[Prompt] --> B[Provider Specific Media Node]
    B --> C{Media type}
    C -->|Image| D[Image URL]
    C -->|Video| E[Video URL]
    D --> F[Load Image Node]
    E --> G[Load Video Node]
    F --> H[Preview Save or Next Step]
    G --> H

Use this when a provider exposes a custom media workflow that does not fit the generic OpenAI-compatible image request shape.

5. Utility and Conversion Nodes

Applies to nodes that bridge ComfyUI image tensors, URLs, base64 payloads, and extracted text.

flowchart TD
    A[ComfyUI IMAGE] --> B[Image to Base64 URL Node]
    B --> C[API or Remote Result]
    C --> D{Returned format}
    D -->|Base64| E[Base64 URL to Image]
    D -->|URL| F[Load Image from URL]
    E --> G[Preview or Next IMAGE Node]
    F --> G
    H[Chat Response with URLs] --> I[UrlExtract from Chat Response]
    I --> F

Use these nodes when an API expects encoded image input, when an API returns URLs instead of tensors, or when you need to turn chat output back into usable media.

Quick Mapping

| Goal | Recommended starting nodes | Typical output | | --- | --- | --- | | Generate or rewrite text | API Node for Stream Response LLMs, Custom LLM API Node, Input Text, Concat Text Strings Node | text | | Caption or analyze an image | Vision LLMs API Node, Non-System Prompt VLMs API Node | text | | Generate an image from text | Dall-E Custom API Node, Stable Diffusion 3 API Node, Custom Flux API Node, Custom GPTImage1 API Node, Custom Image Generation API Call Node | image URL or base64 | | Generate provider-specific media | HyprLab ImageGen API Node, Doubao Seedream ImageGen API Node, Doubao Seedance VideoGen API Node, Doubao Seedance2 VideoGen API Node | image URL or video URL | | Convert API outputs into ComfyUI data | Base64 URL to Image Node, Load Image from URL (BillBum), UrlExtract from Chat Response, Image to Base64 URL Node | IMAGE, URL, or cleaned text |

Provider Notes

Most nodes in this repository are designed around OpenAI-compatible request formats, but the actual base URL, API key, and model name depend on the service you use.

Examples visible in the repository include endpoints for:

  • OpenAI-compatible APIs
  • HyprLab
  • DashScope-compatible vision and chat APIs
  • Doubao image and video APIs

The repository does not enforce a single provider. You are expected to choose a valid base URL, API key, and model combination for each node.

Node Overview

Here are the main exported nodes you will likely use first:

Text and LLM

  • API Node for Stream Response LLMs
  • Custom LLM API Node (Old)
  • LLM StreamResponse Node (Old)
  • Input Text
  • Concat Text Strings Node
  • Dropout by MaxToken Node

Vision and Captioning

  • Vision LLMs API Node (Old)
  • Non-System Prompt VLMs API Node

Image Generation

  • Dall-E Custom API Node
  • Stable Diffusion 3 API Node
  • Custom Flux API Node
  • Custom GPTImage1 API Node
  • Custom Ideogram API Node
  • Custom Recraft API Node
  • Custom Image Generation API Call Node
  • HyprLab ImageGen API Node
  • Doubao Seedream ImageGen API Node

Utilities and Media

  • Image to Base64 URL Node
  • Base64 URL to Image Node
  • Load Image from URL (BillBum)
  • UrlExtract from Chat Response
  • Regular ResponseText to 1linePrompt Node
  • Load Video From URL (VHS Compatible)
  • Load&Save Video From URL (Comfy Core)
  • Doubao Seedance VideoGen API Node
  • Doubao Seedance2 VideoGen API Node

Example Workflow Notes

The sample workflow is meant to show minimal wiring for each API category rather than provide a polished end-to-end app.

Some nodes referenced in minimal_api_group.json come from other ComfyUI packs, such as text box or URL-loading helper nodes. If those nodes are missing in your setup, you can still use the BillBum API nodes themselves and replace the helper nodes with equivalents available in your environment.

Troubleshooting

  • If the nodes do not appear in ComfyUI, make sure the repository is inside custom_nodes and restart ComfyUI after installing dependencies.
  • If a node returns authentication errors, check the API key, base URL, and whether the endpoint matches the provider.
  • If a request fails with model errors, confirm that the selected model is actually available on the provider you configured.
  • If image or video helper nodes fail, verify that the returned URL or base64 payload format matches what the downstream node expects.
  • If the sample workflow cannot load fully, install the missing third-party helper nodes or replace them with local equivalents.

Repository Files

License

This project is distributed under the terms in LICENSE.