How to use the Picsart CLI for AI image, video, and audio generation

What you'll learn
What is the Picsart CLI?
Common use cases
Use the Picsart CLI step by step
STEP 1: Install the CLI
- On web: Go to picsart.com/cli → Copy the macOS/Linux/Windows install command
- On mobile: Not applicable — CLI runs in terminal environments only
STEP 2: Authenticate your account
Run gen-ai login to connect your Picsart account:
- A browser tab opens automatically
- Click "Allow" to authorize the CLI
- Credentials are stored locally on your machine
- No API keys to copy or paste — authentication happens once

STEP 3: Generate your first file
Run gen-ai generate with a prompt and optional model flag. The CLI picks a smart default model if you don't specify one. Your file saves to the current directory automatically.
STEP 4: Review and iterate
Check that the output matches your intent: Not perfect? Run the command again for a new variation, switch models with -m, or tweak your prompt for better results.
- Look for visual quality and composition accuracy
- Verify aspect ratio and resolution match your needs
- Check that the style aligns with your brand or project
Tips for best results
💡 Start with the default model
The CLI auto-selects a good model for your prompt type. Once you see the result, switch models if you need a different style or speed. Recraft for vector-style graphics, Flux for photorealism, Sora for cinematic video.
💡 Use --json for scripting
Add --json to any command to get structured output you can pipe to jq, curl, or CI tools. Perfect for build scripts, batch jobs, or chaining multiple generations together.
💡 Check credit cost before running
Run gen-ai estimate with your prompt to see the credit cost upfront. Video and long audio clips cost more than single images. Batch jobs show total cost before you commit.
💡 Wire skills into your AI agent
If you use Claude Code, Cursor, Windsurf, or ChatGPT, load the gen-ai-use skill so your agent can generate media without you typing commands. Just say what you need in plain English.
Command quick reference
Frequently asked questions

Ready to start generating?
Install the CLI and connect 130+ frontier AI models to your terminal in under a minute.
Get the CLI