Auto-generate content from your terminal or agent
with the Picsart CLI

One CLI for images, video, and audio — powered by Nano Banana, Flux, Sora, Kling, Veo, Runway, Recraft, ElevenLabs, and 120+ more. Drop it in any terminal, CI job, or Dockerfile today. MCP server for Claude Code, Cursor, and ChatGPT coming soon.

Explore workflows
130+ models 25+ providers 3 content types 15+ commands
For the build-curious What's a CLI? And how your AI agent makes it friendly.
Show me Hide

Plain English in. Real creative output out. You don't need to learn a single command. Your AI agent speaks CLI so you don't have to. You bring the imagination, the taste, the idea. It handles the syntax.

01 · Demystify

A CLI is just text in, text out.

No tricks. No decade of computer science. A command-line interface is a text box where you type an instruction and the computer writes back. The scary-looking window is actually the simplest kind of software there is.

$gen-ai images
The command
  --prompt "a neon cat on a surfboard"
What you want
→ saved to ./out/cat-surfboard.webp
What you get
02 · Bridge

Your AI agent already speaks CLI.

You don't have to memorize the commands. Tools like Claude Code and Cursor read your plain English and write the CLI for you. Drop a gen-ai skill into your agent once, then trigger it with sentences. You bring the taste. The agent handles the syntax.

You say
"Make me 20 launch posters, each with a different vibe."
Agent writes
gen-ai images
--prompt "..."
--count 20
-m flux-2-pro
You get
20 posters, saved locally, ready to pick your favorite.
03 · Elevate

The barrier to entry has never been lower.
The value of taste and imagination has never been higher.

Agents change who gets to build. We are all builders. Or can be. What you bring is the thing no tool can manufacture: your eye, your voice, your weird idea at 2am.

50 video intros a podcast trailer 200 logo variants a bedtime story in your voice

Run this in your shell — works in any terminal, CI job, or Dockerfile.

macOS / Linux curl -fsSL https://picsart.com/cli/install.sh | bash
Windows iwr -useb https://picsart.com/cli/install.ps1 | iex
npm npm install -g @picsart/gen-ai

First run opens your browser to sign in · Or use without installing →

Editorial still-life generated with Recraft V4
Recraft V4 · 1024×1024 · 12s · 2 credits
CLI
gen-ai generate -m recraft-v4 -p "editorial still-life, neon rim-light" --ar 1:1
Ask

"Render a 16:9 editorial still-life with neon magenta and cyan rim-light — use Recraft V4, save as hero.webp."

Kling 3.0 · 1280×720 · 5s · 20 credits
CLI
gen-ai generate -m kling-3.0-standard -p "neon liquid ribbons" --duration 5 --ar 16:9
Ask

"Animate a 5-second neon-liquid ribbon loop in 16:9 — use Kling 3.0 Standard. Keep it cinematic, slow motion."

ElevenLabs voiceover waveform
Eleven v3 · MP3 · 6s · 3 credits
CLI
gen-ai generate -m eleven-v3 -p "Welcome to Picsart. One CLI for every media type."
Ask

"Voice this line in a warm, confident read with Eleven v3: 'Welcome to Picsart. One CLI for every media type.'"

One CLI. Three media types. Real output, generated with gen-ai.


Command reference

Everything the CLI can do

17 top-level commands. Consistent flags across all models. Every command takes stdin and writes stdout — pipe it through anything.

Generate

gen-ai generate

Create an image, video, or audio clip with any of 130+ models. One command covers every modality — switch providers by changing -m.

$ gen-ai generate -m recraft-v4 -p "editorial product shot" --ar 16:9
--model --prompt --ar --duration --input --output --variants --save-to-drive --script
Generate

gen-ai extend

Chain 7-second extensions onto an existing clip to any length. Pair with Topaz upscale for finals.

$ gen-ai extend --video clip.mp4 --times 3
--video --times --model --output
Generate

gen-ai redo

Re-run the last generation with a tweak — don't retype the whole command.

$ gen-ai redo -p "same but darker" --ar 16:9
--prompt --model --ar --variants
Batch

gen-ai batch

Run a manifest of jobs in parallel. Tune concurrency, resume on failure, push results to Drive.

$ gen-ai batch --manifest jobs.json --concurrency 4
--manifest --concurrency --resume --on-error --save-to-drive
Batch

generate --input-dir

Process every file in a directory with the same model and prompt — great for bulk bg-replace, upscale, or re-style.

$ gen-ai generate --input-dir ./imgs -m recraft-replace-bg --batch
--input-dir --batch --concurrency --output-dir
Script

--script

Script mode: emits one JSON object on stdout per result. Pipe into jq, curl, or any CI step.

$ gen-ai generate -m recraft-v4 -p "$PROMPT" --script | jq -r .url
--script -s --silent
Models

gen-ai models

Browse the catalog of 130+ models. Filter by mode, provider, or input type.

$ gen-ai models --mode video --provider runway
--mode --provider --input-type --params
Models

gen-ai models info

Show full specs for a single model — inputs, limits, defaults, pricing.

$ gen-ai models info kling-3.0-pro
<model-id> --json
Models

gen-ai models compare

Side-by-side capability + cost across 2–N models. Helps pick the right tier before spend.

$ gen-ai models compare sora-2 veo-3.1 kling-3.0-pro
<model-id>…
Models

gen-ai pricing

Credit cost per model, or all prices within a mode. Use estimate for a dry-run of a specific call.

$ gen-ai pricing --mode image
--mode --model
Drive

gen-ai drive ls

List files and folders in your Picsart Drive.

$ gen-ai drive ls --folder "Brand"
--folder --type --json
Drive

gen-ai drive upload

Upload a file or directory to a Drive folder. Permissions and sharing are respected.

$ gen-ai drive upload ./assets --folder "Brand"
--folder --recursive
Drive

gen-ai drive get

Download a Drive asset to a local path.

$ gen-ai drive get asset-id --out ./download
<asset-id> --out
Config

gen-ai config

Set, read, or list defaults: default model, aspect, voice, Drive folder. All persist per profile.

$ gen-ai config set defaultModel kling-3.0-pro
set get list reset
Update

gen-ai update

Self-update the CLI to the latest release. Do not run mid-batch — it restarts the process.

$ gen-ai update
Shell

gen-ai completion

Install shell completion for bash, zsh, or fish. Tab-through every flag and model.

$ gen-ai completion zsh >> ~/.zshrc
bash zsh fish
Auth

gen-ai whoami

Check your auth status, account, and token expiry.

$ gen-ai whoami
Auth

gen-ai login

Authenticate with your Picsart account via browser OAuth. Use --token-stdin for CI.

$ gen-ai login
--token-stdin

Install guide · for non-techies

From zero to your first generation in three steps.

Paste a command — or ask your agent to do it for you. Sign in. Ask for what you want. That's the whole setup.

Step 01

Install the CLI

Paste one command into any terminal — or ask your AI agent (Claude Code, Codex, Cursor, Windsurf) to do it for you. Works on macOS, Linux, and Windows.

Step 02

Sign in

Run gen-ai login. A browser tab opens, you click "allow", you're authenticated. Credentials stay on your machine.

Step 03

Your first generation

Run gen-ai generate and describe what you want in plain English. Your file lands in your folder, ready to use.


Skill library

Give your agent skills. It does the rest.

Each skill is a drop-in folder that teaches your AI agent a complete job — generate a hero, cut a reel, re-shoot a 1000-SKU catalog. Install one, ask in plain English, and the agent delivers end-to-end. Below: 6 starter skills covering every media type, plus 6 persona-specific workflow packs.

  1. Step 01

    Download the skill

    Click any skill card below. A .zip bundle saves to your Downloads folder — the whole skill in one file (instructions plus any helper assets).

    e.g. gen-ai-images.zip
  2. Step 02

    Drop the folder into your skills dir

    Unzip the bundle and move the skill folder into ~/.claude/skills/. Or drop the zip into Claude Code and say: "Install this skill for me."

    ~/.claude/skills/gen-ai-images/SKILL.md
  3. Step 03

    Ask in plain English

    The skill auto-triggers when your prompt matches — "generate a hero for this post" — and the agent picks the right model and runs it.

    Zero config. Forever.
CLI gen-ai auth && gen-ai generate -m flux-2-pro -p "sunrise over mountains"
Ask "Install the CLI, authenticate me, and generate my first image."
Skill gen-ai-use.md · covers every command, batch, Drive sync, shell completions, troubleshooting Download
CLI gen-ai generate -m flux-2-pro -p "editorial hero image" --ar 16:9
Ask "Generate a 16:9 hero for the blog at ./draft.md using Flux, save to /public."
Skill gen-ai-images.md · auto-triggers on "generate image" / "render hero" / "make og image" Download
CLI gen-ai generate -m kling-o3-pro -i hero.webp --duration 10 --audio
Ask "Animate hero.webp into a 10-second reel with Kling and add a soundtrack."
Skill gen-ai-video.md · auto-triggers on "generate video" / "animate image" / "make reel" Download
CLI gen-ai generate -m elevenlabs-v2 -p "warm, confident voiceover" --duration 15
Ask "Record a 15-second voiceover of this paragraph in a warm, confident voice."
Skill gen-ai-audio.md · auto-triggers on "record voiceover" / "make music" / "generate sfx" Download
CLI gen-ai batch --manifest products.json -m recraft-replace-bg --concurrency 4
Ask "Re-render every image in /products with a clean background, save to Drive."
Skill gen-ai-batch.md · auto-triggers on "batch process" / "run manifest" / "wire into CI" Download
CLI gen-ai workflow run launch-kit --brief product.md
Ask "Turn this product brief into a full launch kit — hero, socials, 15-second reel, soundtrack."
Skill gen-ai-workflows.md · auto-triggers on "build campaign kit" / "launch kit" / "og image service" Download
CLI gen-ai generate -m kling-o3-pro -i portrait.png --ar 9:16 --duration 8 --audio
Ask "Build a 25-second vertical reel: hook + value + CTA, character-consistent via a reference portrait, with AI voiceover."
Skill marketer-motion-studio.md · auto-triggers on "build a reel" / "TikTok" / "video story" Download
CLI gen-ai batch --manifest campaign.json -m flux-2-pro --concurrency 4
Ask "Generate a campaign kit from this brief: LinkedIn card, IG post, IG story, LP hero, 3 ad variants each."
Skill marketer-campaign-kit.md · auto-triggers on "campaign kit" Download
CLI gen-ai generate -m recraft-v4 -i hero.webp --variants 50 --ar 9:16,1:1,16:9 --batch
Ask "Fan out 50 ad variants from hero.webp — 5 headlines × 5 visuals × 2 CTAs across 9:16, 1:1, 16:9."
Skill marketer-ad-variant-factory.md · auto-triggers on "fan out ad variants" Download
CLI gen-ai batch --manifest localize.json -m qwen-edit-plus -i hero.webp
Ask "Localize this campaign across DE, FR, JP, BR, ES — translate copy and swap cultural motifs in the hero."
Skill marketer-localize-campaign.md · auto-triggers on "localize campaign" Download
CLI gen-ai generate -m flux-2-pro -p "$HERO" --ar 16:9
Ask "Read ./draft.md, render a 16:9 hero, 3 inline illustrations, and a 1200×630 OG image. Save to ./assets."
Skill marketer-blog-to-visuals.md · auto-triggers on "blog visuals" Download
CLI gen-ai generate -m flux-2-pro -p "$PRODUCT — magazine editorial" --ar 16:9
Ask "Build a launch kit for my product: hero, 8 social variants, a 15s Kling reel, and a MiniMax soundtrack."
Skill prosumer-launch-kit.md · auto-triggers on "launch kit" Download
CLI gen-ai generate -m ideogram-character -i art.png -p "tshirt, mug, poster, hoodie, tote, sticker" --variants 6
Ask "Take art.png and mock it up on a tshirt, mug, poster, hoodie, tote, and sticker — all consistent placement."
Skill prosumer-product-mockups.md · auto-triggers on "product mockups" Download
CLI gen-ai generate -m ideogram-character -i selfie-hd.png -p "linkedin, id, editorial, casual" --variants 4
Ask "Turn selfie.jpg into 4 polished headshots — LinkedIn, ID, editorial, casual. Keep my face consistent."
Skill prosumer-headshot-studio.md · auto-triggers on "headshot" Download
CLI pbpaste | gen-ai generate -m recraft-v4 -s -o inline.webp
Ask "Read my clipboard and render one inline visual that matches the paragraph intent."
Skill prosumer-content-visual-pair.md · auto-triggers on "inline visual" Download
CLI gen-ai generate -m kling-o3-pro -i portrait.png --ar 9:16 --duration 8 --audio
Ask "Ship a 25-second TikTok: 3 scenes with the same on-screen creator, title card, text overlays, voiceover, captions."
Skill prosumer-motion-studio.md · auto-triggers on "TikTok" / "reel" / "Short" Download
CLI gen-ai generate -m recraft-v4 -p "$TITLE — brand style" --ar 1200x630 --script | jq -r .url
Ask "Fetch this page's title and render a branded 1200×630 OG image. Return only the URL."
Skill dev-og-image-service.md · auto-triggers on "og image" Download
CLI gen-ai generate -m recraft-v4-vector -i style.svg -p "icon-search, icon-bell, empty-inbox" --variants 6
Ask "Using style.svg as reference, render icon-search, icon-bell, icon-user, empty-inbox, onboarding-welcome, first-run."
Skill dev-app-assets.md · auto-triggers on "app assets" Download
CLI gen-ai generate -m recraft-replace-bg -i raw.png -p "soft studio gradient, subtle shadow"
Ask "Take raw.png, swap the background for a soft studio gradient, add a subtle device frame and shadow."
Skill dev-screenshot-beautifier.md · auto-triggers on "beautify screenshot" Download
CLI gen-ai generate -m recraft-v4 -p "avatar, $USER_SEED" --ar 1:1 --script | jq -r .url
Ask "Generate a deterministic avatar from $USER_SEED, return only the CDN URL."
Skill dev-avatar-service.md · auto-triggers on "avatar service" Download
CLI gen-ai batch --manifest catalog.json -m recraft-replace-bg --concurrency 10 --save-to-drive
Ask "Batch re-render every SKU in catalog.json with N lifestyle variants. Enforce brand.md. Export audit log."
Skill enterprise-catalog-reshoot.md · auto-triggers on "catalog reshoot" Download
CLI gen-ai generate -m flux-2-pro -p "$PROMPT" --rules brand.md --on-violation reject
Ask "Set brand.md as policy — reject any generation that violates it. Log violations to audit trail."
Skill enterprise-brand-governor.md · auto-triggers on "brand governance" Download
CLI gen-ai batch --manifest press.json --watermark logo.png
Ask "Process these 50 photos: upscale to print, grade, watermark, export wire / web / print / social packs."
Skill enterprise-press-batch.md · auto-triggers on "press batch" Download
CLI gen-ai config set registry.flux [email protected]
Ask "Pin our Flux alias to 1.3, Recraft to v4.0, Kling to Standard 3.0. Commit the registry config."
Skill enterprise-pinned-registry.md · auto-triggers on "pin model versions" Download
CLI gen-ai generate -m recraft-replace-bg -i product.png -p "airy studio, warm natural light"
Ask "Swap this product's white background for a warm studio lifestyle scene. Keep the product pixel-accurate."
Skill ecommerce-catalog-styling.md · auto-triggers on "catalog styling" Download
CLI gen-ai generate -m qwen-edit-plus -i hero.png -p "red, navy, olive, cream" --variants 4
Ask "Take this product photo and generate color variants in red, navy, olive, cream — keep lighting identical."
Skill ecommerce-variant-fan-out.md · auto-triggers on "product variants" Download
CLI gen-ai generate -m runway-gen4-ref -i product.png -p "on a marble kitchen counter, morning light"
Ask "Composite this product onto a marble kitchen counter with morning light. Natural shadows, photoreal."
Skill ecommerce-lifestyle-compose.md · auto-triggers on "lifestyle compose" Download
CLI gen-ai batch --manifest holiday.json -m qwen-edit-plus -p "holiday 2026 — warm, festive"
Ask "Refresh our catalog for the winter holiday — add festive props, warm lighting, snow where it fits."
Skill ecommerce-seasonal-refresh.md · auto-triggers on "seasonal refresh" Download
CLI gen-ai generate -m recraft-v4 -p "$CLIENT — 5 visual directions" --variants 5 --ar 16:9
Ask "Generate 5 distinct visual directions for this brand pitch — editorial, bold, minimal, playful, cinematic."
Skill agency-brand-scoping.md · auto-triggers on "brand scoping" Download
CLI gen-ai batch --manifest pitch.json -m recraft-v4 --brand client.md
Ask "Build pitch mockups for this deck: 1 hero, 3 product tiles, 2 quote slides — all client-branded."
Skill agency-pitch-mockups.md · auto-triggers on "pitch mockups" Download
CLI gen-ai batch --manifest clients.json --workspace agency
Ask "Generate asset templates for each client in clients.json — scoped to their brand files, tagged per workspace."
Skill agency-multi-brand-pack.md · auto-triggers on "multi-brand pack" Download
CLI gen-ai export --workspace client-x --format zip --white-label
Ask "Export the final deliverable for client-x — white-label the metadata, package as a zip, generate a changelog."
Skill agency-client-handoff.md · auto-triggers on "client handoff" Download
CLI gen-ai generate -m kling-o3-pro -i talent.png --ar 9:16 --duration 8 --audio
Ask "Mock up a 20-second pitch reel for $CLIENT: title card, 3 scenes with the same on-brand character, CTA card, fade transitions."
Skill agency-motion-studio.md · auto-triggers on "video pitch" / "video mockup" Download

Live from the CLI

Real outputs. Real commands.

Every visual below was generated with the CLI or the MCP — no mock-ups. Click any card to reveal the exact prompt, or copy it and run it yourself.


Feature highlights

Every creative primitive. One install. Zero glue code.

Built on the same stack that powers Picsart Agents — now open to every builder.


MCP Server · Coming soon

One MCP server. Every AI tool can generate media.

The @picsart/gen-ai-mcp server will plug into Claude Code, ChatGPT, Cursor, Windsurf, Zapier, n8n — any MCP-compatible host. Your agent will get native access to all 130+ Picsart models and call them in plain English. The CLI below ships today; MCP lands in the next release.

MCP Server Coming soon

One-line install for Claude Code, Cursor, ChatGPT, Windsurf, and any MCP host. Shipping in the next release — the CLI below is live today.

Frequently asked questions

How do I install the Picsart gen-ai CLI?

On macOS or Linux: curl -fsSL https://picsart.com/cli/install.sh | bash installs a signed, self-contained binary — no Node.js required. On Windows: irm https://picsart.com/cli/install.ps1 | iex sets up Node.js 22+ (via winget) and installs from npm. Developers with Node.js already can skip the installer and run npm install -g @picsart/gen-ai directly.

What AI models does the Picsart CLI support?

130+ frontier models across 25+ providers — Flux 2 Pro/Max, Sora 2, Kling 3.0, Veo 3.1, Runway Gen 4.5, Luma Ray 2, Nano Banana, Imagen 4, Recraft V4, Seedream 5, Ideogram v3, Hunyuan V3, Hailuo 2.3, Pika, ElevenLabs, MiniMax Music, and more. Covers image, video, and audio generation.

Run gen-ai models list to see everything available on your account.

Can I use it with AI agents like Claude Code or Cursor?

Yes — any agent with shell access can already call gen-ai directly. Claude Code, Codex, and Cursor happily run CLI commands today; drop one of our skill files into your agent and it'll start generating media on request.

A dedicated @picsart/gen-ai-mcp server is coming in the next release, which will expose every CLI command as a native MCP tool call for Claude Code, Cursor, VS Code Copilot, Windsurf, ChatGPT, and any MCP host.

Do I pay per CLI call, per model, or via credits?

The CLI is free. Generations consume Picsart credits, drawn from a single balance that spans every model and modality. New accounts get a starter balance; run gen-ai pricing -m <model> before heavy usage to confirm cost. One key, one balance, one invoice — no per-vendor contracts. The forthcoming MCP server will share the same credit balance.

Can I use it for batch or scripted generation?

Yes. Point --input-dir at a folder of images, or run a manifest JSON with per-item models and prompts. Use --concurrency to tune throughput, --resume to pick up where a run left off, and --script to emit JSON on stdout for CI/CD pipelines.

How do I enforce brand guidelines across generations?

Pass --rules brand.md to gate every generation through your brand policy — colors, typography, tone, banned terms, mandatory disclaimers. Off-brand output is auto-rejected and logged to an audit trail so you can trace every asset back to its prompt, model, and rule set.

What's the relationship to Picsart Agents?

The gen-ai CLI is the same stack that powers Picsart Agents (currently in early access). Everything Picsart Agents does — catalog re-shoots, brand-gated generation, multi-platform campaign kits — is now open to any builder with a terminal. The official MCP wrapper is shipping next, so the same stack will plug into any MCP host too.

Which operating systems are supported?

macOS 12+ (Apple Silicon and Intel), Linux (x86_64 and ARM64), and Windows 10/11. macOS and Linux install a signed, self-contained binary (~60 MB) via curl — no Node.js required. Windows and the npm path install the pure-JS distribution and need Node.js 22+ (the PowerShell installer sets it up automatically via winget). Runs in Docker, GitHub Actions, GitLab CI, and WSL.

How does authentication work?

Run gen-ai login once — the CLI opens a browser for OAuth and stores a token in your OS keychain. For CI, set PICSART_API_KEY as an environment variable. When the MCP server ships, hosts will inherit the same credentials with no per-agent setup.

Where are my generated files saved, and are they private?

Outputs are written to ./out/ by default, or wherever you point --output. Nothing is uploaded to Picsart beyond the prompt and input assets needed to run the model. You own the outputs; enterprise plans add retention controls, SSO, and data-residency options.

Can I switch between models without rewriting my scripts?

Yes — that's the whole point. Every command takes -m <model>, flags are consistent across providers, and stdin/stdout piping works the same way everywhere. Swap Flux for Recraft, or Sora for Veo, by changing one flag. No per-vendor SDKs, no rewriting prompts.