Architecture overview
Every public model on Wizzx shares one production gateway (https://api.wizzx.ai), one API key, and one asynchronous task lifecycle:
- Discover public models and live credit tiers via
GET /pricingorGET /v1/models(no authentication required). - Submit a generation job to
POST /api/v1/task/submit/{model_key}(orPOST /api/v1/music/{action}for Suno) with an optionalIdempotency-Keyheader. - Poll
GET /api/v1/task/{task_id}(orPOST /api/v1/task/status) untilstatusreachesSUCCEEDEDorFAILED.
New accounts receive 200 free credits ($0.20 USD) after sign-in (
1,000 credits = 1.00 USD). Generate or rotate your key anytime in the API Keys dashboard.Authentication
Pass your Wizzx API key in the HTTPAuthorization header on every authenticated request:
WIZZX_API_KEY) rather than client-side bundles or source control. Public discovery endpoints (GET /pricing, GET /v1/models, and GET /pricing/metrics) do not require authentication and include browser CORS headers.
60-second quickstart
1. Submit an image task
2. Poll the task by ID
data.status reaches SUCCEEDED, read your generated asset URLs from data.result_urls (and data.result for Suno music actions). If a task fails upstream, reserved credits are automatically refunded and data.credits_deducted reports 0.
Discovery & AI agent entrypoints
Generate Media with AI Agents
Copy a deterministic execution contract for Claude Code, Codex, or custom agent skills.
Error Codes & Idempotency
Handle 402 credit shortfalls, 409 idempotency locks, and 429 Retry-After headers safely.
