Custom ComfyUI node plugin for Kie AI integrations.
Kie Nano Banana 2node- text-to-image
- optional reference image or reference image batch
- API key via node input,
KIE_API_KEY, or localconfig.json
Place this folder under:
ComfyUI/custom_nodes/ComfyUI-KieAPI
Then restart ComfyUI.
This repository is prepared for Comfy Registry publishing.
Add a repository secret named REGISTRY_ACCESS_TOKEN with your Comfy Registry publisher API key.
- bump the version in
pyproject.toml - push to
main - manually run
.github/workflows/publish_action.ymlfrom GitHub Actions - the node is published through
Comfy-Org/publish-node-action
Once published to the Registry, users can install it through ComfyUI-Manager without using Git URL installation.
The node resolves the Kie API key in this order:
api_keynode inputKIE_API_KEYenvironment variableconfig.jsonin this plugin folder
To use a local config file, copy config.example.json to config.json and fill in your key:
{
"api_key": "your-kie-api-key"
}config.json is ignored by git.
promptapi_keyreference_image(optional, accepts a single image or image batch)aspect_ratioresolutionoutput_formatgoogle_searchpoll_timeout_seconds
- If you put
api_keydirectly into the node, it may be stored in the workflow JSON. - Reference images are uploaded through Kie's base64 upload API before the generation task is created.
- When
reference_imagereceives a ComfyUI image batch, every image in the batch is uploaded to KIE in order. - The node polls Kie's common task detail endpoint until the task succeeds, fails, or times out.