Pixza API
Integrate AI image, video, and 3D generation into your website, app, WordPress site, or Shopify store. One API. All models.
Base URL
https://pixzaai.com/api/v1Authentication
API Keys
All API requests require a Bearer token in the Authorization header.
Get your key
Sign up and generate an API key from your dashboard
Keep it secret
Never expose your API key in client-side code or public repos
Rate limits
Free: 10 req/min · Pro: 60 req/min · Agency: 300 req/min
Authorization: Bearer pk_live_YOUR_API_KEY
Coming soon: API keys are not yet available. Sign up to get notified when the API launches. Join waitlist →
Endpoints
Generate
The core endpoint for all AI generation — images, videos, and 3D models.
/api/v1/generateCoreGenerate an image, video, or 3D model from a prompt
/api/v1/generate/{id}Get the status and result of a generation
/api/v1/generationsList your recent generations
/api/v1/modelsList all available models
/api/v1/creditsGet your current credit balance
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Generation type: "image" | "video" | "3d" |
prompt | string | Yes | Text description of what to generate |
model | string | No | Model ID (default: "flux-schnell") |
input_image | string | No | URL of input image for img2img or video |
width | integer | No | Output width in pixels (default: 1024) |
height | integer | No | Output height in pixels (default: 1024) |
steps | integer | No | Inference steps (default: model-specific) |
seed | integer | No | Random seed for reproducibility |
webhook_url | string | No | URL to POST result to when complete |
Code Examples
curl -X POST https://pixzaai.com/api/v1/generate \
-H "Authorization: Bearer pk_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "image",
"prompt": "A luxury product on marble surface, cinematic lighting",
"model": "flux-pro",
"width": 1024,
"height": 1024
}'Response
{
"id": "gen_abc123xyz",
"status": "completed",
"type": "image",
"model": "flux-pro",
"prompt": "A luxury product on marble surface, cinematic lighting",
"output_url": "https://cdn.pixzaai.com/gen/abc123.jpg",
"width": 1024,
"height": 1024,
"credits_used": 4,
"created_at": "2026-05-11T12:00:00Z"
}Models
Available Models
All models are billed in credits. 1 credit ≈ ₹0.10.
| Model ID | Type | Credits | Description |
|---|---|---|---|
flux-schnell | image | 1 | Fastest image generation — 4 steps |
flux-dev | image | 2 | Balanced quality and speed |
flux-pro | image | 4 | Highest quality FLUX model |
flux-kontext | image | 4 | Image-to-image editing with FLUX |
seedream | image | 3 | ByteDance Seedream 4.5 |
gemini-imagen-4 | image | 3 | Google Imagen 4 via Gemini |
veo-3-fast | video | 50 | Google Veo 3 Fast — text to video |
wan-i2v | video | 20 | Image to video animation |
Errors
Error Codes
All errors return a JSON body with a message field.
Unauthorized
Missing or invalid API key
Insufficient Credits
Your account has run out of credits
Validation Error
Invalid request parameters
Rate Limited
Too many requests — slow down
Server Error
Something went wrong on our end
{
"error": "insufficient_credits",
"message": "Your account has 0 credits remaining. Upgrade your plan to continue.",
"credits_remaining": 0
}Integrations
SDKs & Plugins
Official integrations for popular platforms. More coming soon.
JavaScript / Node.js
Coming SoonOfficial npm package for Node.js and browser environments.
npm install @pixzaai/sdkWordPress Plugin
Coming SoonAdd AI generation to any WordPress site. Gutenberg block + shortcode support.
Search: Pixza AI in WP Plugin DirectoryShopify App
Coming SoonGenerate product images and backgrounds directly from your Shopify admin.
Search: Pixza AI in Shopify App StorePython
Coming SoonPython SDK for data science, automation, and backend integrations.
pip install pixzaaiREST API
AvailableUse the raw REST API from any language or platform.
https://pixzaai.com/api/v1Webhooks
Coming SoonGet notified when async generations complete via HTTP POST.
POST { "id": "gen_xxx", "status": "completed" }Ready to build?
Sign up for a free account to get your API key and 100 free credits to start building.
