Holiday sale: 20% off credit packs

Try Now
hollyw ai

MAGI-2 API

Get API key

Model magi-2 makes a 30-second 1080p video with sound from a text prompt and optional image, video and audio references. Jobs run asynchronously.

Model ID
magi-2
Output
30 s · 1080p · sound
API base price
96 credits ($2.40)

Create a MAGI-2 job

Set HOLLYW_KEY to your API key first. Running this creates a billable job (96 credits).

POST /v1/jobs
curl --fail-with-body -sS https://api.hollyw.app/v1/jobs \
  -H "Authorization: Bearer ${HOLLYW_KEY:?Set HOLLYW_KEY first}" \
  -H 'Content-Type: application/json' \
  --data '{"model":"magi-2","input":{"prompt":"A red fox runs through falling snow","seconds":30,"aspect":"16:9","resolution":"1080p"}}'

The request queues a job and returns its id. See the API docs for authentication, polling, downloads, errors and billing.

Inputs and reference limits

Fields go inside input. The model catalog lists the current values.

model"magi-2", next to input
promptText describing the video.
seconds30 only (a number).
resolution"1080p" only.
aspect"16:9", "9:16", "1:1".
image_urlsOptional: up to 10 PNG, JPEG, WebP or GIF images, up to 10 MB each.
video_urlsOptional: up to 5 MP4 or MOV files, 2–30 s and up to 100 MB each, 30 s in total.
audio_urlsOptional: up to 5 MP3 or WAV files, 2–30 s and up to 15 MB each, 30 s in total.

Every reference must be a hollyw link: a file uploaded with /v1/uploads (up to 100 MB) or /v1/upload-url (up to 2 GB), or an output URL of an earlier job (see uploads in the API docs). The general upload limits don't override the MAGI-2 limits above.

Referencing images, video and audio

@Image1, @Video1 and @Audio1 in the prompt mean the first URL in image_urls, video_urls and audio_urls. Merge these fields into input; the placeholders are not runnable, replace them with your hollyw URLs.

input fragment (placeholders)
{
  "prompt": "Use @Image1 for the subject, @Video1 for motion, and @Audio1 for sound.",
  "image_urls": ["<HOLLYW_IMAGE_URL>"],
  "video_urls": ["<HOLLYW_VIDEO_URL>"],
  "audio_urls": ["<HOLLYW_AUDIO_URL>"]
}

Base API price

96 credits ($2.40) per 30-second 1080p video, sound included. That is $0.08/s as an equivalent; MAGI-2 is sold only as whole 30-second videos. See API pricing for every model.