Skip to main content
POST

Authorizations

x-magnific-api-key
string
header
required

Your Magnific API key. Learn how to obtain an API key

Query Parameters

dry_run
boolean

true returns the price of the request instead of running it. Nothing is charged or created.

Body

application/json
duration
enum<integer>
required

Length in seconds, one of the values the model accepts.

Available options:
5,
10
prompt
string

What happens in the video. Leave it out when multi_prompt describes the shots.

references
object[] | null

Images, videos or audio that guide the video, as the model accepts them: a type, plus one of your creations as creation_id, a public https url or base64.

audio_url
string | null

URL of an audio track the video plays, on models that accept one. Use audio_creation_id for one of your creations.

with_sound_effects
boolean | null

Generate sound with the video, on models that can.

no_music
boolean | null

Keep music out of the generated sound.

dynamic_range
enum<string> | null

Dynamic range of the output, on models that offer more than one.

Available options:
sdr,
hdr,
null
negative_prompt
string | null

What the video should not show.

Maximum string length: 2000
fps
integer | null

Frames per second, on models that offer a choice.

Required range: 1 <= x <= 120
seed
integer | null

Seed to repeat a result: the same seed and settings give the same video, on models that accept one.

Required range: 0 <= x <= 4294967295
camera_motion
string | null

A camera move, one of the model's camera_motion values.

Maximum string length: 100
multi_prompt
object[] | null

Several shots in one video, on models with multishot.allowed: true: up to 6, each with its prompt and, where the model asks, duration. Replaces prompt.

Maximum array length: 6
aspect_ratio
enum<string>

One of the aspect ratios the model accepts.

Available options:
16:9,
9:16,
1:1,
4:3,
3:4,
21:9
Maximum string length: 16
resolution
enum<string>

One of the resolutions the model accepts.

Available options:
720p
Maximum string length: 16
keyframes
object

The frames the video starts and ends on: start and end, each an image given as a creation_id, a public https url or base64 (JPEG, PNG or WebP, up to 10 MB). Up to 6 inline images per request.

webhook_url
string<uri>

A URL called once per creation when it completes or fails, signed with your API key's webhook secret. API keys only.

Maximum string length: 512
folder_reference
string

The reference of the project or folder to save the result in. Default: your Personal project.

Maximum string length: 64
title
string | null

The name of the creations. Default: a title made from the prompt.

Maximum string length: 120

Response

With dry_run=true: what the request would cost. Nothing is charged or created.

data
object[]
required

The video the call would generate, with its price.

meta
object
required