Skip to main content
POST
Generate video with Magi 2

Magi 2 on BudgetPixel

More examples, prompts and pricing.

Authorizations

Authorization
string
header
required

API key as a bearer token: Authorization: Bearer bpx_live_xxx

Body

application/json
prompt
string
required

Text description of the video, up to 8,000 characters: subjects, action, camera movement, dialogue (in quotes), sound effects and ambience. With reference media, say how to use them ("keep the person from the reference image", "follow the dance in the reference video"). Write @handle to cast a character: a BudgetPixel AI influencer or one of your own (GET /v1/characters).

aspect_ratio
enum<string>

Output aspect ratio. Default 16:9; with a start frame and no ratio given, the ratio nearest the frame's own shape (a frame of another shape is followed less closely).

Available options:
21:9,
16:9,
4:3,
1:1,
3:4,
9:16
end_image
string

Optional end frame, used together with image (the start frame): the video moves from the start frame to this one. Same input forms as image.

generate_audio
boolean
default:true

Generate synchronized sound with the video (default true; no price impact).

image
string

Optional start frame for image-to-video. Provide a public image URL, a data URI, raw base64, or an uploaded-file URL from POST /v1/uploads. Omit for text-to-video. Can't be combined with reference media.

length_seconds
integer
default:5

Output video length in seconds, any whole number from 4 to 30. 120 credits per second.

Required range: 4 <= x <= 30
reference_audios
string[]

Optional reference audio clips (up to 5; each 2-30s, 30s combined; WAV/MP3), free, that guide voice, music or ambience. Each item is a public audio URL or an uploaded-file URL from POST /v1/uploads. Can't be combined with image/end_image.

Maximum array length: 5
reference_images
string[]

Optional reference images (up to 10, free) that guide a subject, character or style in reference-to-video mode (they are references, not a first frame). Each item is a public image URL, a data URI, raw base64, or an uploaded-file URL from POST /v1/uploads. Can't be combined with image/end_image.

Maximum array length: 10
reference_videos
string[]

Optional reference video clips (up to 5; each 2-30s, 30s combined; MP4/MOV, ≤50MB each), free. A reference video guides motion and camera work (a dance copied move for move), or is restyled by the prompt: an edit keeps the clip's motion and framing, though a big lighting change (day to night) comes out weak. Each item is a public video URL or an uploaded-file URL from POST /v1/uploads. Can't be combined with image/end_image.

Maximum array length: 5
resolution
enum<string>
default:1080p

Output resolution: 1080p only (1920x1080 at 16:9, 25 fps).

Available options:
1080p
seed
integer

Seed for reproducible generation (0-2147483647). Omit for random.

Required range: 0 <= x <= 2147483647

Response

Job accepted.

characters
object[]

The characters the prompt cast with @handle mentions. Absent when none.

id
string

Opaque job id — use it to poll status.

message
string
model
string
status
enum<string>

Lifecycle state. succeeded/failed/timeout are terminal.

Available options:
pending,
starting,
processing,
completing,
succeeded,
failed,
timeout