gen-ai-use

gen-ai-use is a skill for Claude Code from PicsArt/gen-ai-skills. It costs 18 tokens per session (1,750 once invoked), scanned C, original, MIT.

A command-line tool for generating and editing images, videos, and audio through the Picsart API. A command-line tool is a program you operate by typing commands in a terminal.

In plain words
What is it for?
Use it to generate media, remove or change image backgrounds, enhance or vectorize images, extend or redo results, compare models, manage credits and history, and upload or download files.
Why use it?
It puts media generation and common edits in one terminal workflow, while also providing commands for authentication, models, pricing, credits, files, and batch jobs.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the picsart plugin — 23 skills, 2 MCP servers shipped together

Good fit Use it to generate media, remove or change image backgrounds, enhance or vectorize images, extend or redo results, compare models, manage credits and history, and upload or download files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/picsart/gen-ai-skills/gen-ai-use
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PicsArt/gen-ai-skills --skill gen-ai-use
Clone the repo
git clone --depth 1 https://github.com/PicsArt/gen-ai-skills

Made for: Claude Code.

Or install picsart, the plugin that ships this one along with the rest of its 23 skills, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gen-ai-use

README.md
[![agentmods](https://agentmods.dev/badge/skills/picsart/gen-ai-skills/gen-ai-use/github.svg)](https://agentmods.dev/skills/picsart/gen-ai-skills/gen-ai-use)
Your own site
<a href="https://agentmods.dev/skills/picsart/gen-ai-skills/gen-ai-use"><img src="https://agentmods.dev/badge/skills/picsart/gen-ai-skills/gen-ai-use/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gen-ai-use

Your own site · 80×15
<a href="https://agentmods.dev/skills/picsart/gen-ai-skills/gen-ai-use"><img src="https://agentmods.dev/badge/skills/picsart/gen-ai-skills/gen-ai-use.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,750 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.01750
Opus 5 $0.00009 $0.00875
Sonnet 5 $0.00004 $0.00350
Haiku 4.5 $0.00002 $0.00175

Measured 12d ago against content hash 14d29044f251, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

gen-ai-use scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://picsart.com/gen-ai-cli/install.sh | bash

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://picsart.com/gen-ai-cli/install.sh | bash
skills/gen-ai-use/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gen-ai CLI — Usage Guide

The gen-ai CLI generates AI images, videos, and audio from the terminal via the Picsart API.

When to Use

See the description above.

Prerequisites

Picsart gen-ai CLI installed and authenticated (gen-ai login). Note that gen-ai whoami only reads cached credentials from disk and reports "✓ Authenticated" if a token file exists with the right shape — it doesn't check expiry and makes no network call, so it succeeding is not proof that a subsequent network-dependent command will succeed.

How to Run

Use the agent's terminal tool to invoke gen-ai commands as described in the Procedure below.

Quick Reference

  • Auth: login, logout, whoami
  • Generation: generate, remove-bg, change-bg, enhance, vectorize, redo, extend
  • Models / pricing: models, models info, models compare, pricing, credits, validate
  • Batch: batch run, batch status, batch resume
  • Drive: upload, upload-to-drive, download, list
  • Config: config get | set | list | keys | unset
  • History: history, history last, history files, history clear
  • Utilities: completion, update

Run gen-ai <command> --help for full flag details, or see references/FLAGS.md.

Procedure

See sections below for the detailed walkthrough.

Pitfalls

  • Stale model ID — using a name from memory that's been renamed/removed → run gen-ai models first or gen-ai validate -m <id>.
  • Passing --image to a non-i2v video model — it's silently ignored, not auto-mapped. Confirm with gen-ai models info <id>.
  • Forgetting --no-input in CI — the CLI sits waiting for an interactive prompt and the job times out. Always pair --script (or --no-input) with non-TTY contexts.
  • Mixing --multi and --batch — they're mutually exclusive --input-dir modes; pick one.

Verification

Run gen-ai whoami to confirm authentication, then re-run the failed command with --debug. If the command still fails, check the error type before assuming it's a login problem: AuthError ("Not authenticated...") means credentials are genuinely bad and gen-ai login is the fix; NetworkError (message names a transport failure like "fetch failed", or a proxy/connectivity hint) means the CLI's process can't reach the network — re-running login won't help, restoring/escalating network access will.

Read the full file on GitHub · 147 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 147 lines · 18 tokens per session scan C 14d29044f251

Subscribe to this mod's changes

gen-ai-use is a skill published in the GitHub repository PicsArt/gen-ai-skills (4 stars, last pushed 15d ago), licensed MIT. It adds 18 tokens to every session and 1,750 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

compact-manual

Claude Code skill for deterministic context compaction. Compresses the current Claude Code session to the clipboard for a manual rewind+paste workflow. A deterministic alternative to /compact that extracts literal dialog and truncates only tool outputs — no LLM summarization. Use when the user says 'compact the…

mario-hernandez/claude-compact-manual · 81 tokens

musicbrainz

Interroge l'API publique MusicBrainz pour récupérer des métadonnées musicales fiables : recherche d'artistes, discographies complètes (release-groups : albums, EPs, singles, lives, compilations), détails de releases (labels, formats, dates, pays), recordings, œuvres, relations entre entités (membres de groupe…

SteveGrosbois/tidal-cli · 177 tokens

lastfm

Access Last.fm listening history, music stats, and discovery. Query recent tracks, top artists/albums/tracks, loved tracks, similar artists, and global charts.

SteveGrosbois/tidal-cli · 36 tokens

tidal-playlist

Manage Tidal playlists — list, create, rename, delete, set public/private visibility, add or remove albums and tracks, and list tracks in a playlist. Use when the user wants to work with playlists or share one.

SteveGrosbois/tidal-cli · 50 tokens

metalorgie-weekly-releases

Récupère et filtre les sorties d'albums de la semaine publiées sur metalorgie.com ("Les sorties de la semaine"). Affiche les albums correspondant aux genres favoris de l'utilisateur (Metalcore, Post Hardcore, Hardcore, Neo metal) ainsi que les albums de groupes reconnus/notables, même hors genres favoris. Utilise ce…

SteveGrosbois/tidal-cli · 115 tokens

tidal-library

Add or remove artists, albums, or tracks from your Tidal favorites library. Use when the user wants to save music, like a song, follow an artist, or remove items from their library.

SteveGrosbois/tidal-cli · 44 tokens