vibetoken-cli

使用指南

任何命令都可以加 --help 查看参数和示例。

暂不支持对话补全(chat completion)类模型。

找模型

vibetoken models list                     # 所有模型及价格
vibetoken models list --modality video    # image、video、audio、3d
vibetoken models list --search kling

第一列的 ID 就是 -m 要传的值。

查看模型参数

每个模型支持的参数不同:

$ vibetoken models schema bytedance/seedream-4.0
FIELD         TYPE    REQUIRED  DEFAULT  ALLOWED
prompt        text    required           max length 2000
aspect_ratio  enum    optional  "auto"   auto|1:1|4:3|3:4|16:9|9:16|3:2|2:3|21:9
n             number  optional  1        1..15; integer
size          enum    optional  "2K"     1K|2K|4K

用 -P 字段=值 传入,可以重复使用:

-P size=2K -P n=2

生成图像、视频、3D

命令会等待生成完成,然后打印结果地址。加 --dir 会把结果下载到本地。

vibetoken image create -m bytedance/seedream-5.0-flash "a red apple on a white table" --dir ./out
vibetoken video create -m bytedance/seedance-2-t2v "a cat playing piano" --duration 5 --dir ./out
vibetoken 3d create -m tripo/h3.1-text-to-3d "a ceramic teapot" --dir ./models

需要输入图片的模型(图生图、图生视频、图生 3D)用 --image,可以是网址或本地文件:

vibetoken image create -m bytedance/seedream-4.0-edit "make it watercolor" --image ./photo.jpg

结果地址只保留 7 天,需要的文件请及时下载。

不想一直等

视频通常要几分钟。可以先提交,之后再取结果:

vibetoken video create -m bytedance/seedance-2-t2v "a cat" --no-wait   # 打印任务 id
vibetoken video wait <id> --dir ./out                                    # 等待并下载
vibetoken video get <id>                                                 # 查看当前状态

等待时按 Ctrl-C 不会取消任务,之后可以用 wait 继续等。

语音合成

vibetoken audio speech -m minimax/speech-2.8-turbo --voice "Chinese (Mandarin)_News_Anchor" "你好,世界!"

默认保存为 speech.mp3。-O 指定文件名,-f 指定格式(mp3、wav、flac、pcm、opus)。可用音色见 MiniMax 系统音色。

费用与余额

vibetoken billing balance          # 余额(人民币)
vibetoken billing transactions     # 充值和消费记录
vibetoken generation <id>          # 某次生成花了多少

生成失败不扣费。

常用全局参数

参数 作用
--json 以 JSON 输出,见 脚本与 AI agent
-q 不显示进度信息
--dry-run 只显示将要发送的请求,不实际发送