Images and video from the terminal — or from any AI agent that can run a shell command. Every command speaks --json.
npm i -g picx-cliexport PICX_API_KEY=pxsk_YOUR_KEY
picx whoamiCreate a key on the API keys page. See live model prices with picx models. Package: picx-cli on npm.
Structured --json output on every command, plus a built-in MCP install/doctor flow for Claude Desktop and Cursor.
Text-to-image with PicX's multi-model lineup — headshots, product shots, social content.
AI-powered editing across 1-5 source images at once — backgrounds, lighting, style transfer.
Text, image, or reference-driven video generation with async job polling via picx job.
1K, 2K, or 4K with flexible aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:2.
Use the CLI from a terminal, the REST API from any language, or hand the same account to an MCP-connected agent.
picx image <prompt>Generate an image from a text prompt
picx image "a sunset over mountains, oil painting style"picx image edit <instruction> --image-urls <urls>Edit one or more existing images with an AI instruction
picx image edit "make it nighttime with city lights" \
--image-urls https://cdn.picxstudio.com/api/generated/image.pngpicx video <prompt>Generate a video from a text prompt (text/image/reference mode)
picx video "a drone shot flying over a coastline"picx job <id>Poll a generation job's status and get the result URL when done
picx job gen_abc123picx upload <file>Upload a local file to get an HTTPS URL for edit/video input
picx upload ./photo.jpgpicx assets listList uploaded and generated assets in your account
picx assets listpicx assets rm <id>Delete an asset by id
picx assets rm asset_abc123picx modelsList available models and their live credit costs
picx modelspicx templates search <query>Search the PicX template library
picx templates search "product photography"picx templates get <id>Get a single template by id
picx templates get tpl_abc123picx historyList your past generations, paginated
picx historypicx whoamiCheck API key authentication status and account identity
picx whoamipicx balanceShow current credit balance
picx balancepicx usageShow API usage statistics
picx usagepicx tierShow your account's current plan/tier
picx tierpicx mcp install --client <claude|cursor>Install and configure the PicX MCP server for an MCP client
picx mcp install --client claudepicx mcp doctorHealth-check the MCP connection and credentials
picx mcp doctorInstall the PicX MCP server directly from the CLI, then generate images and video by asking Claude in plain language — it calls the tools itself.
npm i -g picx-cli
export PICX_API_KEY=pxsk_YOUR_KEY
picx mcp install --client claude
picx mcp doctorSame install path — Cursor picks up the PicX tools the next time it starts, no extra config beyond the API key.
npm i -g picx-cli
export PICX_API_KEY=pxsk_YOUR_KEY
picx mcp install --client cursor
picx mcp doctorPrefer connecting the agent directly? See the MCP server.
Instagram posts, YouTube thumbnails, Twitter banners — any size, any style.
# Instagram post (square)
picx image "minimal flat-lay coffee, aesthetic" \
--aspect-ratio 1:1
# YouTube thumbnail (wide)
picx image "bold dramatic thumbnail" \
--aspect-ratio 16:9 --size 2K
# Instagram story (vertical)
picx image "behind the scenes shot" \
--aspect-ratio 9:16Change backgrounds, seasons, styles, or fix lighting on any image.
# Upload then edit
picx upload ./selfie.jpg
picx image edit "white studio backdrop, enhance" \
--image-urls <uploaded-url>
# Style transfer
picx image edit "anime art style, vibrant" \
--image-urls <uploaded-url> --size 2K
# Batch: upload + edit a folder
for f in ./photos/*.jpg; do
url=$(picx upload "$f" --json | jq -r .url)
picx image edit "vintage film grain" --image-urls "$url"
doneFull reference in the CLI docs.