Teaches Claude Code to drive the PopNow CLI: find models and input schemas, quote the exact USD price, create image, video, music and speech jobs, upload reference files, wait for results and verify webhooks from the terminal or CI.
Teaches Claude Code to drive the PopNow CLI: find models and input schemas, quote the exact USD price, create image, video, music and speech jobs, upload reference files, wait for results and verify webhooks from the terminal or CI.
PopNow CLI — AI Video & Image Generation from the Command Line
popnow is the official command-line client for the PopNow API: it generates AI
video, images, music and speech from a terminal, a shell script or CI with models such as Kling, Seedance,
Wan, Vidu, MiniMax, Nano Banana, GPT Image, Flux and Suno.
PopNow AI (popnow.ai) is the world's first AI studio with automatic price protection, a browser-based studio for videos, images and music: image-to-video, text-to-video, AI images,
music and speech, one-tap trending video effects and image styles. The CLI calls the same models through the
PopNow API, which bills in exact USD from your PopNow balance, the same balance as on popnow.ai
(1 credit = $0.001); add funds at popnow.ai/api/console/billing. Every billable command shows the price in USD first and asks before it spends anything; failed runs
release their hold automatically.
Every API call is quoted in USD before it runs, and failed tasks are refunded to your API balance automatically.
Quickstart
1. Install (Node.js 22.12 or newer):
npm install -g @popnow/cli
popnow status # no key needed: checks that the API answers
Or run it once without installing: npx @popnow/cli status.
2. Set your API key from popnow.ai/api/console/keys. The key is read
from the environment only, never from a command-line argument, so it does not end up in shell history or CI logs.
export POPNOW_API_KEY="sk-popnow-..." # PowerShell: $env:POPNOW_API_KEY = "sk-popnow-..."
popnow balance # API balance in USD; add funds at https://popnow.ai/api/console/billing
3. Generate. The CLI quotes the request, shows the price, asks for confirmation, creates the task with an
idempotency key and, with --wait, prints the result link:
popnow jobs create \
--model alibaba/z-image-turbo/text-to-image \
--input-json '{"prompt":"A small red fox curled up in a teacup, soft morning light"}' \
--wait
Use your PopNow account
No API key? Sign in with your PopNow account and create with your credits, the same way as in Claude, ChatGPT and
the other apps that connect to PopNow. The CLI opens the PopNow sign-in page in your browser and keeps the
sign-in on this computer only.
popnow login # opens popnow.ai to sign in; --no-browser prints the link instead
popnow balance # your credits
popnow tools # everything your account can do: images, video, music, voice, ads, games…
popnow run create_image --arg prompt="A lighthouse in a storm, cinematic" --arg aspect_ratio=16:9
popnow run create_video --arg prompt="Waves crash on the rocks" --arg duration_seconds=5
popnow run edit_image --file image_url=./product.png --arg prompt="On a marble counter, soft daylight"
popnow upload ./clip.mp4 # prints a popnow:// link to pass to any tool
popnow logout
Larger runs show their price in credits and ask before anything is made. In scripts, approve a known price with
--max-credits <credits> (or --yes to accept the quoted price). Photos, video or audio of real people you bring
need your consent: read the message the tool shows, then run again with --consent. popnow run also takes all
arguments at once with --args '{"prompt": "…"}' or --args-file.
Which mode a command uses depends on how you signed in: with POPNOW_API_KEY set, the API commands below bill in
USD; when you are signed in and no key is set, balance shows credits. --account uses your account even when a
key is set, and popnow whoami shows which is active.