Extensions/LingKe AI API Nodes
ComfyUI Extension

LingKe AI API Nodes

LingKe AI (灵客AI) API nodes: call cloud image / video / audio / chat models directly from ComfyUI workflows, no GPU required.

By lingkeai·Created about a month ago·Updated about a month ago· 1
lingkeai/ComfyUI-LingKe
Nodes17
On cloudLocal install
CategoryLingKe AI, LingKe AI/image
Stars1
Updatedabout a month ago

Nodes (17)

LingKe AI Audio Generation

Suno, Doubao TTS and One Socket for a Voice Sample

LingKe AI
LingKe AI Balance

Check the Wallet Before You Queue, Not After

LingKe AI
LingKe AI · 纳米香蕉 2.1 按次

Fourteen Reference Images and a Web Search

LingKe AI/image
LingKe AI Chat (LLM)

The Node That Turns Your Lazy Prompt Into a Paragraph

LingKe AI
LingKe AI · 豆包 语音合成 2.0

The Voice Picker Is a Text Box, and You Have to Go Find the ID

LingKe AI/audio
LingKe AI · GK-video-3.5

GK-video-3.5 Wants One Photo and One Sentence, and Hands Back Fifteen Seconds With Sound

LingKe AI/video
LingKe AI Image Generation

One Image Node, Three Models, Zero Sampler Settings

LingKe AI
LingKe AI · MiniMax H3

The Open Weights Say No, the Hosted Model Says Yes

LingKe AI/video
LingKe AI Model Params

The Node You Run Before You Write a Single Line of params_json

LingKe AI
LingKe AI · 海螺 音乐生成 2.5+

Lyrics on the Left, Style on the Right, and Don't Swap Them

LingKe AI/audio
LingKe AI · SD 2.0 按次

One Flat Price, 720p Only, and the 15-Second Clip That Comes Back at Ten

LingKe AI/video
LingKe AI · SD 2.5 满血版 按秒

Do the Multiplication Before You Press Queue

LingKe AI/video
LingKe AI · Suno 音乐生成 6

Two Songs Per Run, and You Only Get to Hear One

LingKe AI/audio
LingKe AI · TT Image 2

The Size Dropdown Is Pixels, Not Ratios, and That One Detail Costs People an Hour

LingKe AI/image
LingKe AI · TT Image 2.5

Ratio and Resolution Are Two Separate Dials, and That's the Point

LingKe AI/image
LingKe AI Video Generation

Four Video Models Behind One Node and a JSON Box

LingKe AI
LingKe AI · Vidu Q4 Preview

4K Video That Your NLE Might Not Thank You For

LingKe AI/video
Readme

ComfyUI-LingKe

LingKe AI (灵客AI) API nodes for ComfyUI — call cloud image / video / audio / chat models directly inside your workflows. No GPU required.

灵客AI API 节点:在 ComfyUI 工作流里直接调用灵客AI 云端的生图、生视频、音频与对话模型,本机无需显卡。

Nodes / 节点

Dedicated nodes for popular models / 热门模型专属节点 (LingKe AI/image|video|audio)

TT Image 2.5 / 2, Nano Banana 2.1, SD 2.0 / 2.5, GK-video-3.5, Vidu Q4, MiniMax H3, Suno v6, Doubao TTS 2.0, MiniMax Music 2.5+. Every param is a dropdown or text box; first/last frames, reference images and reference audio are sockets. Leave a dropdown on default to use the model's own default. 参数都做成了下拉框 / 输入框,首尾帧、参考图、参考音频直接连线;下拉保持 default 即按模型默认值。

Generic nodes / 通用节点 — any listed model:

| Node | Output | 说明 | |---|---|---| | LingKe AI Image Generation | IMAGE | 文生图 / 图生图,参考图支持批次多张 | | LingKe AI Video Generation | VIDEO | 文生视频 / 首尾帧生视频 | | LingKe AI Audio Generation | AUDIO | 语音、音乐,可接参考音频 | | LingKe AI Chat (LLM) | STRING | 对话模型,适合扩写提示词 | | LingKe AI Model Params | STRING | 查看某个模型可填的参数,用于写 params_json | | LingKe AI Balance | STRING | 查看余额 |

Each generation node shows an estimated price under it as you change params, and the task ID and actual charge after it runs. 生成节点下方会随参数实时显示预估价格,跑完显示任务号与实际扣费。

The model dropdown is fetched from the API (cached 6h, delete models_cache.json and restart to refresh). 模型下拉清单从接口拉取并缓存 6 小时,删除 models_cache.json 后重启即可刷新。

Ready-to-run examples are in example_workflows/ (also in ComfyUI's template browser): prompt expansion → image → video, and first + last frame video. example_workflows/ 里有可直接运行的示例(ComfyUI 模板浏览器里也能看到):扩写 → 生图 → 生视频、首尾帧视频。

Install / 安装

  1. Clone into ComfyUI/custom_nodes/:
    git clone https://github.com/lingkeai/ComfyUI-LingKe
    
  2. Create an API key at lingkeai.ai → API Keys. Copy config.example.json to config.json and fill it in. / 在 lingkeai.ai 的「开放 API」创建 Key,复制 config.example.json 为 config.json 并填入:
    { "api_key": "sk-xxxx" }
    
    Or set the env var LINGKE_API_KEY. / 也可以用环境变量 LINGKE_API_KEY。
  3. Restart ComfyUI. Search LingKe (or 灵客) on the canvas to add nodes.

The API key is never stored in workflow files, so sharing a workflow won't leak it. API Key 不会写进工作流文件,分享工作流不会泄露。

Notes / 注意

  • Every run is billed. Changing seed (or leaving it on "randomize") triggers a new paid generation; set it to "fixed" to reuse results. / 每次运行都会计费,seed 变化即重新生成;设为 fixed 可复用结果。
  • Cancelling in ComfyUI only stops waiting; the cloud task keeps running and is still billed. / 在 ComfyUI 里取消只是停止等待,云端任务仍会继续并计费。
  • Input images/audio are sent inline (≤9MB each, ≤28MB total). Reference videos must be passed as public URLs in params_json. / 参考视频需在 params_json 里传公网直链。

License

GPL-3.0