Nodes/Tikpan Official Nodes/视频|Grok Imagine Video 音视频生成/编辑
ComfyUI Node

视频|Grok Imagine Video 音视频生成/编辑

Text, first-frame, or full video editing in one node

By htrert·Created 5 months ago·Updated 2 months ago· 1
视频|Grok Imagine Video 音视频生成/编辑
  • 首帧图
  • 参考图
  • 本地视频
  • 📁_本地保存路径
  • 🆔_任务ID
  • 🔗_视频云端直链
  • 📄_完整日志
  • 🎬_视频输出
💰_福利_💰
获取密钥请访问
节点说明
API_密钥sk-
生成模式文生视频|text_to_video
生成指令A cinematic short video with smooth motion, natural sound, realistic lighting, high detail.
模型grok-imagine-video
分辨率480p
画面比例16:9 横屏|16:9
随机种子888888
视频URL
本地视频路径
中转站地址https://tikpan.com
最长等待秒数1200
查询间隔秒数8
校验HTTPS证书false
跳过错误false

Grok Imagine Video is xAI's closed video model, and this node is the Swiss-army version of it inside the Tikpan pack: one node that does text-to-video, first-frame (image-to-video), reference-image video, and video-to-video editing depending on a single dropdown. If you only install one video node from this pack, it's a decent bet - you get four workflows without learning four nodes.

The catch is the price model, which is worth reading before you run anything long. Tikpan bills per second of output video: 0.3000 per second at 480p, 0.4200 at 720p, plus 0.0120 per input image and 0.0600 per second of input video when you're editing. A 10-second 720p clip lands around 4.2 units plus inputs. This is a metered cloud API, same as every node in this pack - your footage leaves the machine, and the model's content rules apply.

How it works

Pick 生成模式 and the node does the rest: it builds a payload for Tikpan's /v1/videos/generations endpoint (or /v1/videos/edits when mode is video_edit), submits the task, then polls the task endpoint every few seconds until the clip is ready. On success it downloads the file, saves it under your ComfyUI output directory, and hands back five outputs:

  • 🎬_视频输出 (VIDEO) - the tensor you can preview or feed downstream.
  • 📁_本地保存路径 - where the mp4 actually lives.
  • 🔗_视频云端直链 - the hosted URL, useful if you'd rather skip the download.
  • 🆔_任务ID - needed if the job times out and you want to fetch it later.
  • 📄_完整日志 - the raw response, your debugging friend.

The inputs that matter

  • 生成模式 - text_to_video (prompt only), first_frame (needs 首帧图), reference_image (needs 参考图), or video_edit (needs a source video).
  • 分辨率 - 480p vs 720p. The tooltips are blunt about it: 720p bills higher per second.
  • 画面比例 - 16:9, 9:16, or 1:1.
  • 随机种子 - default 888888; same seed + same prompt reproduces the clip.
  • 最长等待秒数 (default 1200) and 查询间隔秒数 (default 8) - how long the node polls before giving up. Long or 720p jobs sometimes need a higher ceiling.

For video_edit, you can feed a local VIDEO tensor, a 本地视频路径 (mp4/mov/webm), or a 视频URL. The docs flag a real limit here: big local files hit the inline upload cap - under about 18MB inline is fine, anything bigger should go through a URL.

Install and first run

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

Restart (or ComfyUI Manager → search "Tikpan"), paste your sk- key from https://tikpan.com, set a mode, write the prompt. Video takes a while - expect the node to sit polling for a minute or more, with a progress bar tracking it.

Common issues

Video is where timeouts and partial failures actually bite, and this pack's docs are refreshingly specific about them. If the task times out, you still have the 任务ID - grab it and use the pack's Task Fetcher node to poll for the finished clip instead of paying for a re-run. If money was deducted but no file arrived, the log's task_id and cloud_url tell you whether the clip actually rendered. 跳过错误 returns empty outputs instead of killing your workflow. And if 🎬_视频输出 won't preview, the file is usually still on disk - check 本地保存路径, since a missing video-preview extension is a local ComfyUI thing, not a generation failure.

Category👑 Tikpan 官方独家节点/02 视频 Video

Inputs (20)

NameTypeDefaultDescription
💰_福利_💰COMBO1 options: 🔥 0.6元RMB兑1美元余额 | 全网底价 👉 https://tikpan.com
获取密钥请访问COMBO1 options: 👉 https://tikpan.com (官方授权Key获取点)
节点说明COMBO1 options: Grok Imagine Video:支持文生视频、首帧图生视频、参考图生视频、视频编辑,使用 Tikpan 官方格式 /v1/videos/generations 与 /v1/videos/edits。 | 优质 Grok 分组按次计费:480p 输入图 0.0120/张、输入视频 0.0600/秒、输出视频 0.3000/秒;720p 输入图 0.0120/张、输入视频 0.0600/秒、输出视频 0.4200/秒。
API_密钥STRINGsk-Tikpan 平台的 API 密钥,以 sk- 开头,从 https://tikpan.com 获取
生成模式COMBO文生视频|text_to_video选择文生、首帧图生、参考图生或视频编辑
生成指令STRINGA cinematic short video with smooth motion, natural sound, realistic lighting, high detail.描述视频主体、动作、镜头、风格和声音氛围,推荐英文或中英混合
模型COMBOgrok-imagine-video本节点固定使用 grok-imagine-video
分辨率COMBO480p选择 480p 或 720p;720p 输出按秒计费更高
画面比例COMBO16:9 横屏|16:9画面比例参数
随机种子INT8888880–2147483647固定种子便于复现;旧工作流的 -1 会自动规范化
首帧图optIMAGE首帧图生视频模式必填
参考图optIMAGE参考图生视频模式必填
视频URLoptSTRING视频编辑模式可填 http/https 视频地址,优先于本地视频
本地视频optVIDEO视频编辑模式可连接本地视频;大文件建议改用 视频URL
本地视频路径optSTRING视频编辑模式可直接填写 mp4/mov/webm 等本地路径
中转站地址optCOMBOhttps://tikpan.comTikpan 中转站地址,一般保持默认即可
最长等待秒数optINT120060–7200等待视频生成完成的最长秒数
查询间隔秒数optINT85–60轮询任务状态的间隔秒数
校验HTTPS证书optBOOLEANfalse默认关闭以兼容部分网络;遇到 SSL 问题可保持关闭
跳过错误optBOOLEANfalse开启后异常时返回空,不打断后续工作流

Outputs (5)

NameTypeDescription
📁_本地保存路径STRING
🆔_任务IDSTRING
🔗_视频云端直链STRING
📄_完整日志STRING
🎬_视频输出VIDEO