$ picx generate "pro headshot,
studio lighting, clean bg"
{
"success": true,
"url": "https://cdn...",
"credits_used": 20
}Every command outputs structured JSON. Designed for AI agents, scripts, and pipelines.
Structured JSON output. Claude Code, OpenClaw, and any LLM can parse and execute image workflows.
Text-to-image with multiple AI models. Headshots, product mockups, social media content.
AI-powered editing. Change backgrounds, adjust lighting, remove objects, apply styles.
Choose from Vertex AI models. Fast with Nano Banana 2 or premium with Nano Banana Pro.
1K, 2K, or 4K with flexible aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:2.
Use CLI from terminal or REST API from any language — Python, JS, cURL, Go, Ruby.
# Install from GitHub
npm install -g github:Type-Think-AI/picx-cli
# Set your API key (get one at picxstudio.com/api)
export PICX_API_KEY=pxsk_YOUR_KEY
# Verify
picx authpicx generate "a sunset over mountains, oil painting style"
# With options
picx generate "neon cyberpunk city at night" \
--model gemini-3-pro-image-preview \
--size 2K --aspect-ratio 16:9{
"success": true,
"id": "img_537f439a4e58",
"url": "https://cdn.picxstudio.com/api/generated/image_8871aa96.png",
"model": "gemini-3-pro-image-preview",
"size": "2K",
"aspect_ratio": "16:9",
"credits_used": 50
}picx edit "make it nighttime with city lights" \
--image-url https://cdn.picxstudio.com/api/generated/image.png
picx edit "remove background, add clean white studio backdrop" \
--image-url ./photo.jpg --size 2KGenerate professional images for social media, blogs, marketing — all from the terminal.
Instagram posts, YouTube thumbnails, Twitter banners — any size, any style.
# Instagram post (square)
picx generate "minimal flat-lay coffee, aesthetic" \
--aspect-ratio 1:1
# YouTube thumbnail (wide)
picx generate "bold dramatic thumbnail" \
--aspect-ratio 16:9 --size 2K
# Instagram story (vertical)
picx generate "behind the scenes shot" \
--aspect-ratio 9:16Change backgrounds, seasons, styles, or fix lighting on any image.
# Clean headshot background
picx edit "white studio backdrop, enhance" \
--image-url ./selfie.jpg
# Style transfer
picx edit "anime art style, vibrant" \
--image-url ./photo.jpg --size 2K
# Batch edit a folder
for img in ./photos/*.jpg; do
picx edit "vintage film grain" \
--image-url "$img"
donePicX CLI is an OpenClaw skill. Any AI agent that can run shell commands can generate images.
Personal AI Agent
OpenClaw reads the bundled SKILL.md to discover all PicX commands. Message from WhatsApp, Telegram, or Slack — it handles the rest.
# Install the PicX CLI globally
npm install -g github:Type-Think-AI/picx-cli
# Set your API key
export PICX_API_KEY=pxsk_YOUR_KEY
# Verify OpenClaw sees it
openclaw skills list --eligibleby Anthropic
Claude reads SKILL.md to learn PicX commands. It autonomously generates images, picks models, and manages your workflow.
> Generate a hero banner for my blog
about AI trends, wide format,
futuristic vibes
Claude will run:
picx models
picx generate "futuristic AI trends
hero banner, digital art" \
--aspect-ratio 16:9 \
--model gemini-3-pro-image-preview \
--size 2K---
name: picx
description: AI image generation CLI. Generate and edit images
using PicX Studio's multi-model API.
metadata:
openclaw:
requires:
env:
- PICX_API_KEY
bins:
- picx
primaryEnv: PICX_API_KEY
homepage: https://picxstudio.com/developer
---
# Commands
- picx generate <prompt> Generate an image from text
- picx edit <instruction> Edit an image with AI
- picx models List available models + credit costs
- picx usage Show API usage statsChoose the right model. Credits vary by model and resolution.
| Model | Name | 1K | 2K | 4K | Best For |
|---|---|---|---|---|---|
gemini-3.1-flash-image-preview | Nano Banana 2 | 20 | 20 | 40 | Fast drafts, social, batch |
gemini-3-pro-image-preview | Nano Banana Pro | 50 | 50 | 100 | Premium, hero images, print |
picx models| Command | Description |
|---|---|
picx generate <prompt> | Generate an image from a text prompt |
picx edit <instruction> --image-url <url> | Edit an image with an AI instruction |
picx models | List all available models and credit costs |
picx auth | Check API key authentication status |
picx usage [--period 30d] | Show API usage statistics |