pixverse 1.2.13 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -269,6 +269,39 @@ These flags are available across most `create` subcommands:
269
269
  | `--no-wait` | Return immediately without waiting for completion |
270
270
  | `--timeout <sec>` | Polling timeout in seconds (default 300) |
271
271
 
272
+ ### MiniApps
273
+
274
+ MiniApps are preset, single-purpose generators from the PixVerse web app (Magic
275
+ Extend, Image Region Editor, …). The CLI is a thin pass-through: it does not
276
+ bundle each app's parameter schema. Instead, `miniapps info <id>` returns the
277
+ app's **parameter schema** (required fields, types, enum values, and a
278
+ copy-pasteable example) — read it, then submit the app id plus its `args` as JSON
279
+ with `miniapps create`.
280
+
281
+ ```bash
282
+ # List available MiniApps
283
+ pixverse miniapps list
284
+
285
+ # Show a MiniApp's details + its parameter schema (what to put in --params)
286
+ pixverse miniapps info magic_extend # add --json for the machine-readable params_schema
287
+
288
+ # Create a MiniApp project — --id and --params are required; --params takes JSON (a literal, a file path, or - for stdin)
289
+ pixverse miniapps create --id magic_extend --params '{"image":"<media-path>","ratio":"16:9","quality":"720p"}'
290
+ pixverse miniapps create --id image_region_editor --params ./args.json
291
+
292
+ # create returns a project_id — query / download / delete it with --type miniapps
293
+ pixverse task status <project_id> --type miniapps
294
+ pixverse task wait <project_id> --type miniapps
295
+ pixverse asset info <project_id> --type miniapps
296
+ pixverse asset download <project_id> --type miniapps --dest ./out/
297
+ pixverse asset delete <project_id> --type miniapps
298
+ ```
299
+
300
+ Media fields inside `--params` must be **media paths** — the `path` returned by
301
+ `asset upload` (not a URL, not a local file). The CLI passes `--params` straight
302
+ through without uploading, so upload first with `pixverse asset upload <file>` and
303
+ use the returned `path`.
304
+
272
305
  ### Task Management
273
306
 
274
307
  ```bash
@@ -278,6 +311,9 @@ pixverse task status <id>
278
311
  # Poll a voice/music audio task (audio is not auto-detected — pass --type audio)
279
312
  pixverse task status <id> --type audio
280
313
 
314
+ # Poll a MiniApp project (pass --type miniapps; project_id comes from `miniapps create`)
315
+ pixverse task status <project_id> --type miniapps
316
+
281
317
  # Batch status query with space-separated IDs (parallel; per-ID failures captured)
282
318
  pixverse task status 123 456 789 --type video --json
283
319
 
@@ -296,6 +332,7 @@ pixverse asset list
296
332
  pixverse asset list --type image
297
333
  pixverse asset list --type audio # voice and music audio history
298
334
  pixverse asset list --type audio --source upload
335
+ pixverse asset list --type miniapps # MiniApp projects
299
336
  pixverse asset list --source upload
300
337
  pixverse asset list --source create --off-peak
301
338
 
@@ -5,7 +5,7 @@
5
5
  "cli": {
6
6
  "name": "pixverse",
7
7
  "package": "pixverse",
8
- "version": "1.2.13",
8
+ "version": "1.3.0",
9
9
  "binary": "pixverse",
10
10
  "node": ">=20",
11
11
  "description": "PixVerse CLI - generate videos and images from the command line"
@@ -49,6 +49,7 @@
49
49
  "template",
50
50
  "voice",
51
51
  "music",
52
+ "miniapps",
52
53
  "saved",
53
54
  "workspace",
54
55
  "update"
@@ -375,7 +376,7 @@
375
376
  },
376
377
  "options": {
377
378
  "--ids <ids>": "Comma-separated list of IDs for batch query (e.g. 123,456,789)",
378
- "--type <type>": "Asset type: video, image, or audio | default: video",
379
+ "--type <type>": "Asset type: video, image, audio, or miniapps | default: video",
379
380
  "--json": "Output as JSON"
380
381
  }
381
382
  },
@@ -385,10 +386,10 @@
385
386
  "run": true,
386
387
  "auth": true,
387
388
  "args": {
388
- "id": "Video, image, or audio ID"
389
+ "id": "Video, image, audio, or MiniApp project ID"
389
390
  },
390
391
  "options": {
391
- "--type <type>": "Asset type: video, image, or audio | default: video",
392
+ "--type <type>": "Asset type: video, image, audio, or miniapps | default: video",
392
393
  "--timeout <seconds>": "Timeout in seconds | default: 300",
393
394
  "--json": "Output as JSON"
394
395
  }
@@ -404,7 +405,7 @@
404
405
  "run": true,
405
406
  "auth": true,
406
407
  "options": {
407
- "--type <type>": "Asset type: video, image, or audio | default: video | choices: video, image, audio",
408
+ "--type <type>": "Asset type: video, image, audio, or miniapps | default: video | choices: video, image, audio, miniapps",
408
409
  "--source <source>": "Asset source: create or upload | default: create | choices: create, upload",
409
410
  "--off-peak": "Filter off-peak generations only (video + create only)",
410
411
  "--limit <number>": "Number of items per page | default: 20",
@@ -421,7 +422,7 @@
421
422
  "id": "Video, image, or audio ID"
422
423
  },
423
424
  "options": {
424
- "--type <type>": "Asset type: video, image, or audio (auto-detected if omitted)",
425
+ "--type <type>": "Asset type: video, image, audio, or miniapps (auto-detected if omitted; miniapps must be explicit)",
425
426
  "--source <source>": "Audio source: create or upload | default: create | choices: create, upload",
426
427
  "--json": "Output as JSON"
427
428
  }
@@ -435,7 +436,7 @@
435
436
  "id": "Created video, image, or audio ID (uploads not downloadable)"
436
437
  },
437
438
  "options": {
438
- "--type <type>": "Asset type: video, image, or audio (auto-detected if omitted)",
439
+ "--type <type>": "Asset type: video, image, audio, or miniapps (auto-detected if omitted; miniapps must be explicit)",
439
440
  "--dest <path>": "Destination directory",
440
441
  "--json": "Output as JSON"
441
442
  }
@@ -464,7 +465,7 @@
464
465
  "id": "Video, image, or audio ID"
465
466
  },
466
467
  "options": {
467
- "--type <type>": "Asset type: video, image, or audio (auto-detected if omitted) | choices: video, image, audio",
468
+ "--type <type>": "Asset type: video, image, audio, or miniapps (auto-detected if omitted; miniapps must be explicit) | choices: video, image, audio, miniapps",
468
469
  "--source <source>": "Asset source: create or upload | default: create | choices: create, upload",
469
470
  "--json": "Output as JSON"
470
471
  }
@@ -702,6 +703,46 @@
702
703
  "--json": "Output as JSON"
703
704
  }
704
705
  },
706
+ {
707
+ "cmd": "pixverse miniapps",
708
+ "desc": "Run PixVerse MiniApps (preset generators)",
709
+ "children": ["list", "info", "create"]
710
+ },
711
+ {
712
+ "cmd": "pixverse miniapps list",
713
+ "desc": "List available MiniApps",
714
+ "run": true,
715
+ "auth": true,
716
+ "options": {
717
+ "--json": "Output as JSON"
718
+ }
719
+ },
720
+ {
721
+ "cmd": "pixverse miniapps info",
722
+ "desc": "Show a MiniApp's details",
723
+ "run": true,
724
+ "auth": true,
725
+ "args": {
726
+ "id": "MiniApp id (e.g. magic_extend)"
727
+ },
728
+ "options": {
729
+ "--json": "Output as JSON"
730
+ }
731
+ },
732
+ {
733
+ "cmd": "pixverse miniapps create",
734
+ "desc": "Create a MiniApp project (returns a project_id)",
735
+ "run": true,
736
+ "auth": true,
737
+ "options": {
738
+ "--id <app_id>": "MiniApp id, e.g. magic_extend or image_region_editor",
739
+ "--params <input>": "App args as JSON (required) - a literal string, a file path, or - for stdin",
740
+ "--output <path>": "Download the finished main asset to this directory",
741
+ "--no-wait": "Return immediately with the project_id, without polling | negates: wait",
742
+ "--timeout <seconds>": "Polling timeout in seconds | default: 300",
743
+ "--json": "Output as JSON"
744
+ }
745
+ },
705
746
  {
706
747
  "cmd": "pixverse saved",
707
748
  "desc": "Manage saved folders and their contents",