MAGI-2 Audio Prompting
MAGI-2's headline feature is audio that arrives with the video: dialogue that matches mouth movement, sound effects tied to actions, and background music — generated together and muxed into one file. This page explains where each kind of sound goes in a prompt, with the exact fields and two complete audio sections you can copy.
Audio fields at a glance
Audio lives in two places in a MAGI-2 prompt. The audio_baseline sits inside global_layer and holds what runs through the whole clip. An audio block inside each timeline segment holds what changes, or happens at one moment.
| Field | Sits in | Example value |
|---|---|---|
ambience |
global_layer → audio_baseline |
steady rain against glass, low machine hum |
dialogue.language |
global_layer → audio_baseline → dialogue |
English |
dialogue.speaker_tags |
global_layer → audio_baseline → dialogue |
<subject 1>, <subject 2> |
dialogue_lines |
each timeline segment → audio |
one block per spoken line |
ambience_deltas |
each timeline segment → audio |
one block per change in the bed |
special_audio_events |
each timeline segment → audio |
one block per synced hit |
The three arrays are made of small blocks, each with fixed fields:
| Block | Fields |
|---|---|
| A dialogue line | timestamp, speaker, text, delivery |
| An ambience delta | timestamp_range, ambience |
| A special audio event | timestamp, sound_description, visual_sync |
Sand AI's prompt schema asks for all of these in every caption, but empty arrays and blank strings are removed before the text reaches the model, so a clip with no speech simply has no dialogue section. Fill in only what the clip can be heard doing.
Dialogue: dialogue_lines
Each line is a small block: timestamp, speaker, text, and delivery. Place it inside the timeline segment where it happens, and use a tag from speaker_tags as the speaker — reuse the subject identifier, such as <subject 1>, so the words are tied to the face that should be lip-synced. Budget roughly 2.5 words per second: a 10-second clip holds about 25 comfortable words. Delivery hints such as "calm and natural" or "urgent, clipped" shape tone.
Four rules from Sand AI's own prompt enhancer are worth copying: include the dialogue exactly as written, keep it in its original language, keep the timestamp inside the segment, and keep the delivery note concise. Spoken content appears only when you ask for it, so a clip with no speech should leave dialogue_lines empty.
Example 1 — one speaker, one line (10 seconds). The bed is declared once in audio_baseline; the line sits in the segment where it is spoken.
# global_layer
Single-subject narrative clip
A 10-second, 2-segment clip of a lighthouse keeper in a navy wool cap and yellow slicker climbing a spiral staircase at night, lantern in hand. medium shot, handheld follow.
## alive_subjects_static
### alive_subjects_static1
subject_id: <subject 1>
description: a lighthouse keeper in a navy wool cap and yellow slicker
position: center frame
## audio_baseline
ambience: steady sea wind, low metal creaks from the stairwell
### dialogue
language: English
speaker_tags: <subject 1>
# dynamic_layer
## timeline_segments
### timeline_segments1
#### segment_basic_info
timestamp_range: 00:00.0-00:05.0
segment_description: the keeper climbs the last flight of stairs and stops at the lamp
### timeline_segments2
#### segment_basic_info
timestamp_range: 00:05.0-00:10.0
segment_description: the keeper lifts the lantern and speaks one line to camera
#### audio
##### dialogue_lines
###### dialogue_lines1
timestamp: 00:05.8-00:08.6
speaker: <subject 1>
text: Light's on. Someone's coming home.
delivery: quiet and relieved
Five words in a 2.8-second window — comfortable at a natural pace. The timestamp can be a single moment or the span the line occupies; Sand AI's own sample uses a span.
Sound effects and ambience
Two places for non-speech sound:
ambiencein the globalaudio_baselinesets the continuous bed: rain, street noise, room tone.- Inside a segment,
ambience_deltasmarks a change in that bed, andspecial_audio_eventsmarks punctual, synced hits: a door slam, a text ping, a plate landing.
Example 2 — a bed, one change, two hits (10 seconds). Only the audio fields are shown; the visual blocks sit where they normally do.
# global_layer
## audio_baseline
ambience: steady rain on a tin roof, a router humming in the next room
# dynamic_layer
## timeline_segments
### timeline_segments1
#### segment_basic_info
timestamp_range: 00:00.0-00:05.0
segment_description: the carpenter lays an oak plank on the bench and strikes it once with a mallet
#### audio
##### ambience_deltas
###### ambience_deltas1
timestamp_range: 00:00.0-00:05.0
ambience: the router hum drops away, leaving rain and footsteps
##### special_audio_events
###### special_audio_events1
timestamp: 00:03.2
sound_description: a solid wooden knock as the mallet lands
visual_sync: matches the frame where the mallet head meets the plank
### timeline_segments2
#### segment_basic_info
timestamp_range: 00:05.0-00:10.0
segment_description: she slides the plank into place and sweeps sawdust off the bench
#### audio
##### ambience_deltas
###### ambience_deltas1
timestamp_range: 00:05.0-00:10.0
ambience: rain returns to the foreground and the router hum resumes in the distance
##### special_audio_events
###### special_audio_events1
timestamp: 00:05.4
sound_description: a dry wooden scrape as the plank slides across the bench
visual_sync: matches the frame where the plank starts moving
Tie every effect to something visible. A special audio event should name the on-screen action that causes it — a contact, an impact, a release, a step, a mechanism, a material response — and visual_sync should say in one clause which frame it lands on. Sand AI's own rule is up to four special audio events for most clips; a hit with no visible cause is the first thing to cut.
Music
Music has no field of its own. Describe it inside ambience: style, instrumentation, tempo, and intensity — "a slow solo piano figure, sparse, low volume." Describe the music rather than naming a song. A change of music partway through the clip goes in ambience_deltas, stated as the new condition.
Other languages
Write the line in the language you want spoken and set language to match. Sand AI's prompt-enhancement rules ask for the user's dialogue in its original language, with the descriptive fields kept in English. Sand AI's announcement shows the model translating and speaking a line in a target language when asked — in the pre-trained checkpoint — and notes that this cross-lingual ability became "noticeably harder to elicit" after post-training. Treat non-English dialogue as something to test on a short clip before you build a multi-market campaign on it.
Silent mode
Setting generate_audio to false (generateAudio on Sand AI's own API) returns a video with no audio track, at the same price. Sand AI lists one rate per second and hosts such as Higgsfield include generated audio in it, so there is no budget reason to switch audio off. Use it for B-roll you will score yourself, or when your editor handles the sound design — and then leave the audio fields empty rather than describing sounds that will not be generated.
Ready to build one? The prompt generator places all of these fields for you; the prompt guide shows full worked examples, and the parameters reference lists the API switches.
Field names and rules checked 26 November 2026 against Sand AI's open-source prompt-enhancement code and templates and its MAGI-2 announcement.