Nodes/ComfyUI-ZML-Image/🎨 ZML_NovelAI V4/V4.5
ComfyUI Node

🎨 ZML_NovelAI V4/V4.5

NovelAI V4/V4.5 generation from inside ComfyUI — subscription required

By zml-w·Created about a year ago·Updated 2 months ago· 218
🎨 ZML_NovelAI V4/V4.5
  • Vibe图片
  • 参考图
  • 基础图
  • 图像
  • 生成信息
提示词masterpiece, best quality, 1girl, solo
负面提示词lowres, bad anatomy, bad hands, text, error, missing fingers
模型nai-diffusion-4-5-full
宽度832
高度1216
步数28
CFG5.1
采样器k_euler_ancestral
种子-1
API_Token
角色1_提示词
角色1_负面
角色1_位置center
角色2_提示词
角色2_位置center
角色3_提示词
角色3_位置center
Vibe强度0.50
参考模式character&style
参考强度1.00
参考图_CacheKey
Img2Img强度0.70
VarietyBoostfalse
使用坐标false
CFG重缩放0.61
自动上传参考图true
代理地址

This node does not run a model on your GPU. It's an API wrapper: you give it a NovelAI token, it phones NovelAI's servers, and a nai-diffusion-4-5 image comes back into your ComfyUI graph as if a local sampler had made it. That's the whole framing, and the README even credits a community contributor (Hanzhihu) for the original NovelAI nodes this was built around.

NovelAI Diffusion is a closed, subscription-only service - there are no open weights, so "running it locally" isn't an option. The node is one of the two real reasons to route out to an API (see the KB's API-wrapper doc): the model isn't downloadable, so you call it or you don't use it. If you're not a NovelAI subscriber, this node does nothing for you; if you are, it drags the service's specific strengths - V4/V4.5's character control and reference handling - into your normal workflow.

What it sends

The required inputs cover the standard generation knobs: 提示词 / 负面提示词, 模型 (nai-diffusion-4-5-full, nai-diffusion-4-full, or nai-diffusion-3), 宽度/高度, 步数, CFG, 采样器 (five k-samplers), 种子 (−1 = random), and API_Token. No token, and the node raises immediately - it won't even try.

The optional half is where NovelAI's features live:

  • 角色1/2/3_提示词 + 位置 - up to three character captions placed at positions (center/left/right/top/bottom and corners for character 1). V4's character composition, exposed as ports.
  • Vibe图片 + Vibe强度 - vibe transfer, NovelAI's style-vibe feature.
  • 参考图 + 参考模式 + 参考强度 - Precise Reference, in character&style, character, or style mode. 自动上传参考图 (default on) uploads the reference and gets the cache key for you; if the upload ever fails, the 参考图_CacheKey field is the manual fallback.
  • 基础图 + Img2Img强度 - plain img2img.
  • VarietyBoost, 使用坐标, CFG重缩放 (default 0.61), and 代理地址 (a proxy like http://localhost:7890, handy if your network can't reach the API directly).

Outputs: 图像 (IMAGE) and 生成信息 (STRING) with the response metadata.

Cost and trust, the honest version

Every generation is a paid API call, and your prompts and reference images leave your machine - that's the mechanism, not a bug, and the KB's API-wrapper doc is blunt that filtering follows the model: whatever NovelAI's moderation refuses, this node refuses, and there's no local bypass because there's nothing local to patch. Also: keep the token out of shared workflows. The pack's own LLM nodes store keys in browser cache for exactly this reason; this node wants the token in a field, so treat the workflow file as private.

Install

One node in ComfyUI-ZML-Image:

cd ComfyUI/custom_nodes
git clone https://github.com/zml-w/ComfyUI-ZML-Image
# restart ComfyUI

or ComfyUI Manager → search "ComfyUI-ZML-Image". Uses requests (pack requirement). Chinese-first UI - 提示词 is "prompt," 代理地址 is "proxy address" - translation patch at https://github.com/zml-w/ZZZ_ZML_English_Patch.

The README tags the NovelAI nodes as "待完善" (to be improved) - the author merged them in and flagged them as work-in-progress. Expect occasional rough edges, and check the pack's repo for updates if the API contract shifts.

Categoryimage/ZML_图像/NovelAI

Inputs (30)

NameTypeDefaultDescription
提示词STRINGmasterpiece, best quality, 1girl, solo
负面提示词STRINGlowres, bad anatomy, bad hands, text, error, missing fingers
模型COMBOnai-diffusion-4-5-full3 options: nai-diffusion-4-5-full, nai-diffusion-4-full, nai-diffusion-3
宽度INT832512–2048
高度INT1216512–2048
步数INT281–50
CFGFLOAT5.11–20
采样器COMBOk_euler_ancestral5 options: k_euler, k_euler_ancestral, k_dpmpp_2m, k_dpmpp_sde, k_dpmpp_2s_ancestral
种子INT-1-1–4294967295
API_TokenSTRING
角色1_提示词optSTRING
角色1_负面optSTRING
角色1_位置optCOMBOcenter9 options: center, left, right, top, bottom, top-left, +3
角色2_提示词optSTRING
角色2_位置optCOMBOcenter5 options: center, left, right, top, bottom
角色3_提示词optSTRING
角色3_位置optCOMBOcenter5 options: center, left, right, top, bottom
Vibe图片optIMAGEVibe Transfer 图片
Vibe强度optFLOAT0.500–1
参考图optIMAGEPrecise Reference 图片
参考模式optCOMBOcharacter&style3 options: character&style, character, style
参考强度optFLOAT1.000–1
参考图_CacheKeyoptSTRING可选:手动输入 cache key(如果自动上传失败)
基础图optIMAGEImg2Img 基础图像
Img2Img强度optFLOAT0.700–1
VarietyBoostoptBOOLEANfalse
使用坐标optBOOLEANfalse
CFG重缩放optFLOAT0.610–1
自动上传参考图optBOOLEANtrue关闭则必须手动提供 cache key
代理地址optSTRING可选:http://localhost:7890

Outputs (2)

NameTypeDescription
图像IMAGE
生成信息STRING