Loading...
Loading...
PixVerse CLI — generate AI videos and images from the command line. Supports PixVerse, Veo, Sora, Kling, Hailuo, Wan, and more video models; Nano Banana (Gemini), Seedream, Qwen image models; and PixVerse's rich effect template library. Start here.
npx skill4agent add pixverseai/skills pixverse-ai-image-and-video-generator--jsonnpm install -g pixversenpx pixversepixverse --version# 1. Install
npm install -g pixverse
# 2. Authenticate (OAuth device flow — opens browser)
pixverse auth login --json
# 3. Create a video (waits for completion by default)
RESULT=$(pixverse create video --prompt "A cat astronaut floating in space" --json)
VIDEO_ID=$(echo "$RESULT" | jq -r '.video_id')
# 4. Download the result
pixverse asset download $VIDEO_ID --jsonRESULT=$(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 --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
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 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) | | |
| 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 |
| Flag | Description |
|---|---|
| Pure JSON output to stdout (required for agent use) |
| Show CLI version |
| Show help for any command |
--json--json--json--jsonjq| 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 |
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
fi