Loading...
Loading...
Compare original and translation side by side
--json--jsonnpm install -g pixversenpx pixversepixverse --versionnpm install -g pixversenpx pixversepixverse --versionundefinedundefined
To skip waiting and poll later:
```bash
RESULT=$(pixverse create video --prompt "A cat astronaut floating in space" --no-wait --json)
VIDEO_ID=$(echo "$RESULT" | jq -r '.video_id')
pixverse task wait $VIDEO_ID --json
pixverse asset download $VIDEO_ID --json
若要跳过等待,后续再轮询状态:
```bash
RESULT=$(pixverse create video --prompt "A cat astronaut floating in space" --no-wait --json)
VIDEO_ID=$(echo "$RESULT" | jq -r '.video_id')
pixverse task wait $VIDEO_ID --json
pixverse asset download $VIDEO_ID --jsonpixverse auth login --json~/.pixverse/pixverse auth login --jsonPIXVERSE_TOKENpixverse auth status --jsonpixverse auth login --json~/.pixverse/pixverse auth login --jsonPIXVERSE_TOKENpixverse auth status --json| I want to... | Use skill |
|---|---|
| Create a video from text or image | |
| Create or edit an image | |
| Extend, upscale, or add audio to a video | |
| Create transition animation between frames | |
| Check generation progress | |
| Browse, download, or delete assets | |
| Set up auth or check account | |
| Browse and create from effect templates | |
Looking up models or parameters? Don't wait until you're generating — read the relevant capabilities file directly:
- Video models & constraints →
(Model Reference section)skills/capabilities/create-video.md- Image models & constraints →
(Model Reference section)skills/capabilities/create-and-edit-image.md
| 我想要... | 使用对应技能 |
|---|---|
| 从文本或图片创建视频 | |
| 创建或编辑图片 | |
| 扩展视频时长、提升分辨率或为视频添加音频 | |
| 在帧之间创建转场动画 | |
| 查看生成进度 | |
| 浏览、下载或删除资产 | |
| 设置认证或查看账户信息 | |
| 浏览并从特效模板创建内容 | |
想要查看模型或参数? 不用等到生成时才了解——直接阅读相关的功能文档:
- 视频模型与限制 →
(模型参考章节)skills/capabilities/create-video.md- 图像模型与限制 →
(模型参考章节)skills/capabilities/create-and-edit-image.md
pixverse create video --model <value>pixverse create video --model <value>| Model | | Max Quality | Duration |
|---|---|---|---|
| PixVerse v5.6 (default) | | | |
| Sora 2 | | | |
| Sora 2 Pro | | | |
| Veo 3.1 Standard | | | |
| Veo 3.1 Fast | | | |
| Grok Imagine | | | |
| 模型 | | 最高画质 | 时长 |
|---|---|---|---|
| PixVerse v5.6(默认) | | | |
| Sora 2 | | | |
| Sora 2 Pro | | | |
| Veo 3.1 Standard | | | |
| Veo 3.1 Fast | | | |
| Grok Imagine | | | |
pixverse create image --model <value>pixverse create image --model <value>| Model | | Max Quality |
|---|---|---|
| Qwen Image (default) | | |
| Seedream 5.0 Lite | | |
| Seedream 4.5 | | |
| Seedream 4.0 | | |
| Gemini 2.5 Flash (Nanobanana) | | |
| Gemini 3.0 (Nano Banana Pro) | | |
| Gemini 3.1 Flash (Nano Banana 2) | | |
| 模型 | | 最高画质 |
|---|---|---|
| Qwen Image(默认) | | |
| Seedream 5.0 Lite | | |
| Seedream 4.5 | | |
| Seedream 4.0 | | |
| Gemini 2.5 Flash (Nanobanana) | | |
| Gemini 3.0 (Nano Banana Pro) | | |
| Gemini 3.1 Flash (Nano Banana 2) | | |
| I want to... | Use skill |
|---|---|
| Generate video from text end-to-end | |
| Animate an image into video | |
| Generate image then animate it | |
| Iteratively edit an image | |
| Full video production (create + extend + audio + upscale) | |
| Create multiple items in parallel | |
| 我想要... | 使用对应技能 |
|---|---|
| 从文本端到端生成视频 | |
| 将图片动作为视频 | |
| 先生成图片再将其动作为视频 | |
| 迭代编辑图片 | |
| 完整视频制作(创建+扩展+音频+提升分辨率) | |
| 并行生成多个内容 | |
| Command | Description |
|---|---|
| Login via browser (OAuth device flow) |
| Check authentication status |
| Remove stored token |
| Text-to-video or image-to-video |
| Text-to-image or image-to-image |
| Create transitions between keyframes |
| Add lip-sync speech to video |
| Add AI sound effects to video |
| Extend video duration |
| Upscale video resolution |
| Generate video with character references |
| Create video or image from an effect template |
| List template categories |
| Browse templates (with optional category filter) |
| Search templates by keyword |
| Get template details |
| Check task status |
| Wait for task completion |
| List generated assets |
| Get asset details |
| Download a generated asset |
| Delete an asset |
| View account info and credits |
| View credit usage records |
| Open subscription page in browser |
| List all config values |
| Get a config value |
| Set a config value |
| Reset config to defaults |
| Show config file path |
| Manage per-mode creation defaults |
| 命令 | 描述 |
|---|---|
| 通过浏览器登录(OAuth设备流) |
| 查看认证状态 |
| 删除存储的令牌 |
| 文本转视频或图片转视频 |
| 文本转图片或图片转图片 |
| 在关键帧之间创建转场效果 |
| 为视频添加唇形同步的语音 |
| 为视频添加AI音效 |
| 扩展视频时长 |
| 提升视频分辨率 |
| 基于角色参考生成视频 |
| 从特效模板创建视频或图片 |
| 列出模板分类 |
| 浏览模板(可按分类筛选) |
| 按关键词搜索模板 |
| 获取模板详情 |
| 查看任务状态 |
| 等待任务完成 |
| 列出已生成的资产 |
| 获取资产详情 |
| 下载已生成的资产 |
| 删除资产 |
| 查看账户信息和剩余点数 |
| 查看点数使用记录 |
| 在浏览器中打开订阅页面 |
| 列出所有配置值 |
| 获取某个配置值 |
| 设置某个配置值 |
| 将配置重置为默认值 |
| 显示配置文件路径 |
| 管理各创建模式的默认设置 |
| Flag | Description |
|---|---|
| Pure JSON output to stdout (required for agent use) |
| Show CLI version |
| Show help for any command |
--json--json--json| 标志 | 描述 |
|---|---|
| 向标准输出输出纯JSON(Agent使用时必填) |
| 显示CLI版本 |
| 查看任意命令的帮助信息 |
--json--json--json--json--jsonjqjq| Code | Name | Meaning | Recovery |
|---|---|---|---|
| 0 | SUCCESS | Completed | — |
| 1 | GENERAL_ERROR | Unexpected error | Check stderr for details |
| 2 | TIMEOUT | Polling timed out | Increase |
| 3 | AUTH_EXPIRED | Token invalid/expired | Re-run |
| 4 | CREDIT_INSUFFICIENT | Not enough credits | Check |
| 5 | GENERATION_FAILED | Generation failed/rejected | Check prompt, try different parameters |
| 6 | VALIDATION_ERROR | Invalid parameters | Check flag values against enums in each skill |
| 代码 | 名称 | 含义 | 恢复方法 |
|---|---|---|---|
| 0 | SUCCESS | 任务完成 | — |
| 1 | GENERAL_ERROR | 意外错误 | 查看标准错误输出获取详情 |
| 2 | TIMEOUT | 轮询超时 | 增加 |
| 3 | AUTH_EXPIRED | 令牌无效/过期 | 重新运行 |
| 4 | CREDIT_INSUFFICIENT | 点数不足 | 查看 |
| 5 | GENERATION_FAILED | 生成失败/被拒绝 | 检查提示词,尝试不同参数 |
| 6 | VALIDATION_ERROR | 参数无效 | 检查标志值是否符合各技能中的枚举值 |
RESULT=$(pixverse create video --prompt "A sunset over mountains" --json 2>/tmp/pv_err)
EXIT_CODE=$?
if [ $EXIT_CODE -eq 0 ]; then
VIDEO_ID=$(echo "$RESULT" | jq -r '.video_id')
echo "Success: $VIDEO_ID"
pixverse asset download $VIDEO_ID --json
elif [ $EXIT_CODE -eq 3 ]; then
echo "Token expired, re-authenticating..."
pixverse auth login --json
elif [ $EXIT_CODE -eq 4 ]; then
echo "Not enough credits"
pixverse account info --json | jq '.credits'
elif [ $EXIT_CODE -eq 5 ]; then
echo "Generation failed — check prompt or parameters"
cat /tmp/pv_err
else
echo "Error (code $EXIT_CODE)"
cat /tmp/pv_err
fiRESULT=$(pixverse create video --prompt "A sunset over mountains" --json 2>/tmp/pv_err)
EXIT_CODE=$?
if [ $EXIT_CODE -eq 0 ]; then
VIDEO_ID=$(echo "$RESULT" | jq -r '.video_id')
echo "Success: $VIDEO_ID"
pixverse asset download $VIDEO_ID --json
elif [ $EXIT_CODE -eq 3 ]; then
echo "令牌过期,重新认证中..."
pixverse auth login --json
elif [ $EXIT_CODE -eq 4 ]; then
echo "点数不足"
pixverse account info --json | jq '.credits'
elif [ $EXIT_CODE -eq 5 ]; then
echo "生成失败 — 检查提示词或参数"
cat /tmp/pv_err
else
echo "错误(代码 $EXIT_CODE)"
cat /tmp/pv_err
fi