MAGI-2 API
Generate 1080p video and synchronized audio from your own app.
Credit pricing
24 credits / second
One credit is $0.01. Credit packs start at $12. Monthly plans use the same balance.
| Duration | Credits | USD equivalent |
|---|---|---|
| 5s | 120 | $1.20 |
| 10s | 240 | $2.40 |
| 30s | 720 | $7.20 |
Submit a generation
curl -X POST https://pixmotio.com/v1/generations \
-H "Authorization: Bearer $PIXMOTIO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model":"magi-2","mode":"text",
"prompt":"A quiet beach at dusk.",
"duration":5,"ratio":"16:9","audio":true}'Need a key? Create an API key before running the request.
API keys
API requests draw from the same credit balance as the web generator.
- Auth
Authorization: Bearer pxm_…- Limit
- Five active keys per account. Revoke one before creating another.
- Billing
- Per-second credits, no separate API markup.
Checking your session…
Endpoints
- POST /v1/assets
- Upload one image, video, or audio file using multipart field
file. Returns an asset ID. - POST /v1/generations
- Send text or specify
modeasimageorreferencewith an orderedassetsarray. Save the returnedidand reuse the same idempotency key when retrying an interrupted request. - GET /v1/generations/{id}
- Poll every 10 seconds. When the status is
succeeded, fetch the returnedvideoURL with the same Bearer token. - POST /v1/generations/{id}/share
- Make the completed video available to anyone with its branded link.
- DELETE /v1/generations/{id}/share
- Turn off access through the share link.
Try the generator
You can also start with the free MAGI-2 video generator.
MAGI-2 by Sand AI — third-party integration, not affiliated.