PicCreator

v0.2.7
ai.piccreator/piccreator Checked 3 days ago Published 3 days ago

Generate and edit images and videos with GPT Image, Nano Banana, Seedance, Kling and more.

Generate images and videos with PicCreator from your terminal and from AI coding tools: Claude Code, Codex and WorkBuddy. This opens your browser to authorize the CLI, which takes one click if you're already signed in. It then registers the PicCreator MCP server and skill in every supported tool it finds on your machine. Restart the tools afterwards. Already set up with an older version? Run the same command once more: earlier versions registered piccreator@0, which npx never updates. From now on, updates install by themselves.

Summary extracted from the README.

piccreator

Generate images and videos with PicCreator from your terminal and from AI coding tools: Claude Code, Codex and WorkBuddy.

Setup

npx -y piccreator@latest setup

This opens your browser to authorize the CLI, which takes one click if you're already signed in. It then registers the PicCreator MCP server and skill in every supported tool it finds on your machine. Restart the tools afterwards.

  • --hosts claude-code,codex,workbuddy limits setup to the tools you choose.
  • --no-login registers the tools without signing in.
  • --remove undoes everything. The original config files are kept as *.piccreator.bak.

Already set up with an older version? Run the same command once more: earlier versions registered piccreator@0, which npx never updates. From now on, updates install by themselves.

Then just ask your AI tool, e.g. "Make a 16:9 cover image for this blog post and put it in public/images." It fills in options like aspect ratio and resolution, shows you the credit cost and your balance, and generates once you confirm. The result comes back with a preview.

If you name the model or options yourself, use a preset saved on the website ("use my Cover preset"), or say to just generate, it generates right away without asking. That also lets your AI tool run a whole list of prompts you prepared.

New versions update the skill by themselves the next time your AI tool starts, so you don't need to run setup again.

CLI

piccreator whoami
piccreator models --type image
piccreator presets                 # presets saved on the website
piccreator generate image --model nano-banana-pro --prompt "a lighthouse at dawn" --aspect-ratio 16:9 --out ./images
piccreator generate image --model nano-banana-pro --prompt "make it night" --ref ./images/lighthouse.jpg
piccreator generate image --preset Cover --prompt "a lighthouse at dawn"
piccreator generate video --model kling-2.6/text-to-video --prompt "waves crashing" --duration 5
piccreator status vid_… --wait --out ./videos
piccreator team use "My Team"      # default workspace; "personal" to switch back

Before generating, the CLI shows the resolved options and the credit cost (balance before → after) and asks you to confirm. --yes accepts the current price; --expected-credits <n> generates only if the price is still n; --open opens the result. With --preset it generates right away, since the preset already holds your choices.

Add --json for machine-readable output. Exit codes: 0 ok, 1 error, 2 usage, 3 generation failed, 4 still processing after waiting, 5 quoted only: confirm with --yes or --expected-credits.

Nothing is charged until you have confirmed the price, passed --yes, or used a preset.

MCP server

piccreator mcp runs a stdio MCP server with these tools:

  • piccreator_account
  • piccreator_list_models
  • piccreator_generate_image
  • piccreator_generate_video
  • piccreator_get_generation

setup configures this for you. To add it by hand:

{ "command": "npx", "args": ["-y", "piccreator@latest", "mcp"] }

Credentials

The token is stored in ~/.piccreator/credentials.json (mode 600). You can see and revoke authorized devices at piccreator.ai/agents. piccreator logout revokes the current token.

Environment variables:

  • PICCREATOR_TOKEN: use a token without logging in (CI).
  • PICCREATOR_BASE_URL: point at another deployment.