Skip to content
Node packVerifiedExternal
Open source

ComfyUI-Kie-API

Maintainer@gatewayB · adoptiongrade

Package profile

Status
Verified
Publisher
@gateway
Source
GitHub

README

ComfyUI KIE API Nodes

Project overview

A set of ComfyUI custom nodes that connect to the Kie.ai API for image and video generation workflows.

Why this exists

ComfyUI users often need consistent, API-backed nodes that map directly to model capabilities and work reliably in production workflows. This pack focuses on clear inputs, predictable outputs, and practical integration.

Supporting Development

This project is built for the ComfyUI community and maintained in personal time.

If you find the nodes useful and are already planning to use Kie.ai, using the link below is one way to support continued development and improvements. There is no obligation, and everything works the same regardless.

👉 https://kie.ai

What’s included

  • Image generation nodes
  • Image-to-video and text-to-video nodes
  • Utility helpers for grid slicing and prompt parsing

Node-specific documentation is available in web/docs.

API Key Setup

To use these nodes, you must provide your own Kie.ai API key.

Steps:

  • Open config/kie_key.example.txt
  • Paste your Kie.ai API key into the file
  • Save the file as kie_key.txt in the same config/ directory

Important:
Do NOT share your API key or commit it to version control.

Current Available Nodes

This node pack currently includes the following nodes:

Image Nodes

  • Nano Banana Pro Image
    • Image generation node using the Googles Nano Banana Pro model
    • Supports up to 8 optional input/reference images.
  • Nano Banana 2
    • Image generation node using Nano Banana 2.
    • Supports up to 14 optional input/reference images.
    • Supports optional Google web-search grounding.
  • GPT Image Text-to-Image / Image-to-Image
    • Two nodes with a model selector: GPT Image 2, GPT Image 2.5 Flare, and GPT Image 2.5 Sunburst.
    • Model-aware aspect ratio/resolution dropdowns and GPT Image 2.5 background controls.
    • RGB IMAGE plus transparency MASK outputs; existing GPT Image 2 workflow IDs are preserved.
    • Image-to-image accepts up to 16 input/reference images via ComfyUI batch.
  • Seedream Text-to-Image / Edit
    • Text-to-image and image-editing node for Seedream models.
    • Supports prompt-based generation and edits (edit node accepts up to 14 input images).
  • Flux 2 Image-to-Image (Pro/Flex)
    • Image-to-image node with a model dropdown for Pro or Flex.
    • Accepts 1–8 input images via ComfyUI batch.
  • Grok Imagine Text-to-Image
    • Generates one or more images from a text prompt.
    • Returns the image batch plus a task_id for downstream Grok I2V chaining.
  • Grok Imagine Image-to-Image
    • Generates one or more edited images from a single uploaded source image.
    • Returns the image batch plus a task_id for downstream Grok I2V chaining.

Video Nodes

  • Kling 2.6 Image-to-Video
    • Generates video from a single input image.
    • Uses the Kling 2.6 image-to-video model.
  • Kling 2.5 I2V Pro
    • Generates video from a required first image and optional tail image.
    • Uses the Kling 2.5 Turbo image-to-video Pro model.
  • Kling 2.6 Text-to-Video
    • Generates video directly from a text prompt.
    • Supports aspect ratio, duration, and sound options as exposed by the API.
  • Grok Imagine Text-to-Video
    • Generates video directly from a text prompt.
    • Supports aspect ratio, mode, duration, and resolution options from the KIE Grok Imagine API.
  • Grok Imagine Image-to-Video
    • Generates video from either one uploaded external image or a Grok image-generation task reference.
    • Supports task_id + index selection for animating one of Grok's generated images.
  • Kling 2.6 Motion-Control Image-to-Video
    • Image-to-video generation with additional motion control parameters.
    • Designed for more directed camera and motion behavior.
  • Kling 3.0 Motion-Control Image-to-Video
    • Generates video from a required reference image and a required motion-driver video.
    • M

Nodes in this pack

31 nodes
  • KIE_Flux2_I2I
  • KIE_Gemini3Pro_LLM
  • KIE_GetRemainingCredits
  • KIE_GPTImage2_ImageToImage
  • KIE_GPTImage2_TextToImage
  • KIE_GridSlice
  • KIE_GrokImagine_I2I
  • KIE_GrokImagine_I2V
  • KIE_GrokImagine_T2I
  • KIE_GrokImagine_T2V
  • KIE_Kling25_I2V_Pro
  • KIE_Kling26_I2V
  • KIE_Kling26_T2V
  • KIE_Kling26Motion_I2V
  • KIE_Kling3_Preflight
  • KIE_Kling3_Video
  • KIE_Kling3Motion_I2V
  • KIE_KlingElements
  • KIE_KlingElementsBatch
  • KIE_NanoBanana2_Image
  • KIE_NanoBananaPro_Image
  • KIE_Seedance15Pro_I2V
  • KIE_Seedance2_Preflight
  • KIE_Seedance2_Video
  • KIE_SeedanceV1Pro_Fast_I2V
  • KIE_Seedream45_Edit
  • KIE_Seedream45_TextToImage
  • KIE_Suno_Music_Advanced
  • KIE_Suno_Music_Basic
  • KIE_SystemPrompt_Selector
  • KIEParsePromptGridJSON

Sources

3 sources
GitHubSource
github.com/gateway/ComfyUI-Kie-API

Verified Nov 5

GitHubSourceVersion 9c8bd258de5af68fffe4ab390283a17225b09b7e
github.com/gateway/ComfyUI-Kie-API

Verified Oct 13

Source excerpts

1 excerpt

Source context: Repo gateway/ComfyUI-Kie-API