Nodes/Tikpan Official Nodes/图片|Grok Imagine Image 生图
ComfyUI Node

图片|Grok Imagine Image 生图

Closed-model text-to-image without a GPU

By htrert·Created 5 months ago·Updated 2 months ago· 1
图片|Grok Imagine Image 生图
    • Image
    • Log
    💰_福利_💰
    获取密钥请访问
    节点说明
    API_密钥sk-
    生成指令A cinematic product poster with precise details, realistic lighting, high-end commercial photography.
    模型grok-imagine-image
    生成张数1
    画面比例auto
    清晰度auto
    返回方式云端链接|url
    跳过错误false

    This node is xAI's grok-imagine-image model dropped into a ComfyUI canvas - text prompt in, image tensor out, nothing running on your machine. It's part of the ComfyUI-Tikpan-Pro pack from Tikpan (攀升AI), which is a reseller layer that wraps closed cloud models behind one sk- API key. No weights to download, no VRAM needed, and that's the whole pitch: if you want Grok Imagine images in your workflow and you don't have (or don't want to spend on) the hardware, this is the on-ramp.

    Understand what you're getting first, because the tradeoffs are real. Every call costs money (Tikpan lists this node at about 0.208 RMB per image), your prompt leaves your machine and lands on someone else's server, and the content filter belongs to the model, not to you - nothing to abliterate on a closed service. The community's honest line, per the KB, is that an API node is the right tool for a model you can't run locally and the wrong default for one you can. Grok Imagine is one you can't run locally, so this qualifies.

    How it works

    Mechanically it's a thin HTTP client. You fill in 生成指令 (the prompt), the node POSTs to Tikpan's /v1/images/generations endpoint with n/aspect_ratio/resolution/response_format params, waits for the result, decodes it, and hands back a standard IMAGE tensor plus a Log string. The model name grok-imagine-image is fixed; the node doesn't let you swap models, which keeps things simple.

    The inputs that actually matter, out of the defaults:

    • API_密钥 - your Tikpan key, starts with sk-, from https://tikpan.com. There's no free tier; you're on prepaid virtual tokens.
    • 生成指令 - be specific. The default is a cinematic product-poster prompt, which tells you the author's target audience (this pack is built for TikTok e-commerce sellers). English recommended.
    • 画面比例 - auto lets the model decide; 1:1, 16:9, 9:16 are the ones you'll actually set.
    • 清晰度 - 1k is the cheap-and-fast lane, 2k doubles the detail and the bill.
    • 生成张数 - 1 to 10; each one is another billed image.

    Two optional toggles worth knowing: 跳过错误 returns a black image instead of killing the workflow when the API fails (handy for batch runs), and 返回方式 switches between a cloud URL and raw Base64 - leave it on url, it's what the Image output expects anyway.

    Wiring it up

    Outputs are Image (IMAGE) and Log (STRING). Plug the Image into a Save Image / Preview node like you would any generator. That's the whole appeal: it sits in your graph next to your local upscaler and masks, letting the closed model do the part you can't.

    Install and first run

    Install is standard for the pack:

    cd ComfyUI/custom_nodes
    git clone https://github.com/htrert/ComfyUI-Tikpan-Pro
    

    Restart ComfyUI, then either use ComfyUI Manager (search "Tikpan") or the clone above. No extra Python deps beyond what ComfyUI already ships - the code uses requests, numpy, torch, and Pillow. No model downloads at all. Then grab your key from tikpan.com and paste it in.

    Common issues

    The usual failure modes are key and money, not code. A 401 means the key is wrong or has stray whitespace; 402/insufficient_quota means you're out of balance; 429 means you're hammering it - back off and wait 30–60s. If the request dies mid-batch, the Log output will show you the raw error and whether you still got billed. Start at 1k and one image to test, then scale up once the prompt is right - that habit will save you more than any single setting.

    Category👑 Tikpan 官方独家节点/01 图片 Image

    Inputs (11)

    NameTypeDefaultDescription
    💰_福利_💰COMBO1 options: 🔥 0.6元RMB兑1美元余额 | 全网底价 👉 https://tikpan.com
    获取密钥请访问COMBO1 options: 👉 https://tikpan.com (官方授权Key获取点)
    节点说明COMBO1 options: Grok Imagine Image | /v1/images/generations | 文生图 | Tikpan 参数: n / aspect_ratio / resolution / response_format | 0.208 RMB per image
    API_密钥STRINGsk-Tikpan 平台的 API 密钥,以 sk- 开头,从 https://tikpan.com 获取
    生成指令STRINGA cinematic product poster with precise details, realistic lighting, high-end commercial photography.描述你想生成的画面,越具体越准确,推荐英文
    模型COMBOgrok-imagine-image本节点使用的 Grok Imagine 模型
    生成张数INT11–10一次生成几张结果;张数越多越慢越贵
    画面比例COMBOauto画面比例:auto 让模型决定;常用 1:1 通用、16:9 横屏、9:16 竖屏
    清晰度COMBOauto分辨率档位:1k 省钱快出;2k 更精细但更慢更贵
    返回方式optCOMBO云端链接|urlTikpan response_format:url 或 b64_json
    跳过错误optBOOLEANfalse本地执行参数:请求失败时返回黑图,避免工作流中断。

    Outputs (2)

    NameTypeDescription
    ImageIMAGE
    LogSTRING