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.

DurationCreditsUSD equivalent
5s120$1.20
10s240$2.40
30s720$7.20

Submit a generation

Shell
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 mode as image or reference with an ordered assets array. Save the returned id and 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 returned video URL 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.

Video generator

1080p / 25 fps
ModelRateMax
Duration
Aspect ratio
Audio
120 credits$1.20 per render

MAGI-2 by Sand AI — third-party integration, not affiliated.