Skip to content

CLI Quickstart

The gen-ai CLI is one terminal command for the entire model catalog. It's designed for piping and automation: anything the web app can do is scriptable.

Install & log in

bash
npm install -g @picsart/gen-ai     # or the install script — see Installation
gen-ai login                       # one-time browser auth

Your first generation

bash
# Image
gen-ai generate -m flux-2-pro -p "studio shot of a ceramic cup, soft light" --ar 4:3

# Video (text-to-video)
gen-ai generate -m seedance-2.0 -p "a fox running through autumn leaves" -d 8

# Audio (text-to-speech)
gen-ai generate -m eleven-v3 -p "Welcome to Picsart AI Playground."

By default the CLI submits the job, shows a progress bar, prints the result URL, and downloads the file to ./output.

Interactive mode

Run a command with no flags to get a guided wizard (mode → model picker → params):

bash
gen-ai generate         # walks you through everything
gen-ai                  # launch the REPL with a numbered menu

Scripting & piping

bash
# Pipe a prompt from stdin
echo "a neon city flyover at dusk" | gen-ai generate -m veo-3.1 -d 8 -s

# Fully scripted: silent, no prompts, JSON output
gen-ai generate -m flux-2-pro -p "a cat in a hat" --script | jq '.results[0].url'

-s / --script = --silent --quiet --json.

Common flags

FlagAliasMeaning
--model-mModel id (e.g. flux-2-pro)
--prompt-pText prompt (or pipe via stdin)
--image-iInput image(s) — local path or URL, repeatable
--video--vdInput video — local path or URL
--aspect-ratio--are.g. 16:9, 9:16, 1:1
--resolution-re.g. 720p, 1080p, 4k
--duration-dVideo length in seconds
--count-nNumber of outputs
--download <dir>Download directory (default ./output)
--no-downloadPrint the URL only
--save-to-drive--driveSave the result to Picsart Drive
--dry-runShow the resolved payload without generating
--jsonMachine-readable output

Explore the catalog

bash
gen-ai models                         # browse all models with badges & pricing
gen-ai models --mode video            # filter by mode
gen-ai models --provider google       # filter by provider
gen-ai models info seedance-2.0       # full capabilities + parameters
gen-ai models compare kling-v3 veo-3.1
gen-ai pricing seedance-2.0 -d 5 -r 1080p   # quote a cost before generating

More

Built on @picsart/ai-sdk · gen-ai CLI · Picsart MCP · Skills