How to batch-generate content with the gen-ai-batch skill

What you'll learn
What is the gen-ai-batch skill?
Common use cases
Run your batch generation step by step
STEP 1: Download and import the skill
- On web: Go to picsart.com/cli/#skills-starter → Download gen-ai-batch → Extract to your agent's skills directory
- On mobile: Use desktop — batch operations require a development environment with sufficient resources
STEP 2: Create your batch manifest
Define what you want to generate using a JSON manifest or directory scan:
- JSON manifest: List each generation with model, prompt, and output path
- Directory scan: Point to a folder and apply the same operation to all files
- Concurrency control: Set max parallel jobs to manage API limits and speed
- Credit estimation: Review total cost before executing the batch
- Resume tokens: Automatically save progress to restart failed batches

STEP 3: Execute and monitor
Your agent runs the batch job. Progress appears in real-time with completed count, failures, and estimated time remaining. Output files save to your specified directories. If the batch fails mid-run, the skill saves a resume token so you can restart without re-generating completed items.
STEP 4: Review and export
Check your output directory for completed files and verify quality: Found errors or low-quality outputs? Use the manifest to re-run specific items, or adjust prompts and regenerate the entire batch with updated parameters.
- Verify all files generated successfully (check file count vs. manifest)
- Spot-check quality across different generation types
- Review the JSON output log for any API errors or skipped items
Tips for best results
💡 Start small, then scale up
Before running a 500-item batch, test with 5-10 items to verify your manifest structure, prompts, and output paths work correctly. This saves credits and time if something is misconfigured.
💡 Use concurrency to balance speed and stability
Higher concurrency (10+ parallel jobs) runs faster but can hit API rate limits. Lower concurrency (3-5 jobs) is slower but more stable. Start with 5 and adjust based on your credit balance and urgency.
💡 Estimate costs before large batches
The skill can calculate total credit cost before executing. Always run an estimate for batches over 100 items to avoid mid-job failures due to insufficient credits. You can top up your balance if needed before starting.
💡 Pipe output JSON to other tools
Use silent mode and JSON output to feed results into jq, curl, or CI/CD pipelines. Example: generate product images in batch, then auto-upload to Shopify using the structured JSON response.
Manifest structure guide
Frequently asked questions

Ready to scale your content production?
Import the gen-ai-batch skill and automate hundreds of generations in one command.
Download skill