Skip to main content

Architecture overview

Every public model on Wizzx shares one production gateway (https://api.wizzx.ai), one API key, and one asynchronous task lifecycle:
  1. Discover public models and live credit tiers via GET /pricing or GET /v1/models (no authentication required).
  2. Submit a generation job to POST /api/v1/task/submit/{model_key} (or POST /api/v1/music/{action} for Suno) with an optional Idempotency-Key header.
  3. Poll GET /api/v1/task/{task_id} (or POST /api/v1/task/status) until status reaches SUCCEEDED or FAILED.
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 HTTP Authorization header on every authenticated request:
Keep keys in environment variables (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

The gateway validates parameters and atomically reserves credits before queuing the job:

2. Poll the task by ID

When 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.