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. This SDK wraps its developer API (https://api.popnow.ai/api/v1) so you can call Kling, Seedance, Wan, Vidu, MiniMax, Nano Banana, GPT Image, Flux, Suno and more from Python. Pay as you go in USD from your API balance, no subscription; failed runs release their hold and cost nothing. Make it pop.
Every API call is quoted in USD before it runs, and failed tasks are refunded to your API balance automatically.
- Sync and async clients (
PopNow, AsyncPopNow) built on httpx, the only dependency.
- Typed results (
py.typed) with snake_case attributes, plus the raw JSON on every object.
- One-line helpers:
client.images.generate(), client.videos.generate(), client.audio.speech().
- Safe retries: automatic
Idempotency-Key, back-off on 429 / 500 / 503 honouring Retry-After.
- Exact money: every USD amount stays a decimal string (
cost_usd, max_charge_usd, available_usd), never a float.
- Local file uploads, asset library, task history, usage, balance and webhook signature verification.
Quickstart
1. Install (Python 3.9+):
pip install popnow
2. Create an API key in the API console, add funds to your API balance in API billing, and export the key:
export POPNOW_API_KEY="sk-popnow-..."
3. Generate:
from popnow import PopNow
client = PopNow() # reads POPNOW_API_KEY
task = client.images.generate(
model="alibaba/z-image-turbo/text-to-image",
prompt="A small red fox curled up in a teacup, soft morning light",
)
print(task.state, task.cost_usd, "USD", task.urls[0])
client.files.download(task.assets[0], "fox.png")
That image costs about $0.01, paid from your API balance. The API balance is in USD and separate from popnow.ai website credits: fund it in API billing and see per-model prices on API pricing.
What you can call