MAGI-2 · Image to Video
MAGI-2 Image to Video starts from a first-frame image, optionally with a last frame so the clip ends on a set composition; the ratio follows the first frame. Frames cannot be combined with general references, which belong to reference-to-video. Output is 1080p at 25 fps, 4 to 30 seconds, with or without sound.
Why Choose This?
- Plan by timeline
- Organize a multi-shot prompt as ordered beats, identifying the framing, focal action, and audio cue for each. This gives the brief enough timing detail for an editor to review the sequence before refining the visual treatment.
- Direct sound with picture
- Sand.ai documents synchronized dialogue, foley, and ambient audio. Tie each sound to a visible action, location, or actor so you can review the placement of each cue as well as the visual sequence.
- Give references distinct jobs
- Use the interface’s supported image, video, and audio inputs to specify appearance, movement, or sound. Label the role of each source, then describe what features should carry forward across the beats.
Parameters
| Parameter | Required | Description |
|---|
promptstring | Required | Text description of what to generate. |
|---|
first_frame_urlstring | Required | Image used as the first frame of the video. |
|---|
last_frame_urlstring | Optional | Image used as the last frame of the video. |
|---|
durationinteger | Optional | Output length in seconds. Default: 5. |
|---|
resolutionenum | Optional | Output resolution. Options: 1080p. Default: 1080p. |
|---|
generate_audioboolean | Optional | Generate synchronized audio with the video. Default: true. |
|---|
seedinteger | Optional | Random seed. Reuse it to reproduce a result. |
|---|
How to Use
- Try it here first — Sign in and run the model in the playground above to check the output before you write code.
- Create an API key — Open Console → API Keys and create a key. The same key works for every model.
- Write your prompt — Describe the scene, action, camera movement, lighting and mood.
- Set optional parameters — Adjust the optional parameters listed above to control the output.
- Submit the job — Send POST /api/v1/jobs/createTask with the model ID magi-2/image-to-video. The response returns a job ID.
- Poll for the result — Call GET /api/v1/jobs/recordInfo?taskId={task_id} every few seconds until the job finishes, then read the output URLs.
Writing Effective Prompts
Write the prompt like a shot list: the more you direct, the more the model delivers.
1. One-line summary
Open with subject, setting, action, style and camera in one sentence.
A cyclist rides along a foggy forest road at dawn, cinematic, slow side tracking shot.
2. Timeline for longer clips
Split the clip into timed beats, such as 0–3s and 3–6s, and give each beat one clear action.
3. Camera language
Use shot sizes (wide, medium, close-up) and moves (push in, pan, orbit, handheld) directly.
4. Consistency notes
End with what holds for the whole clip: lighting, color palette, mood and sound.
| Prompt |
|---|
| Weak | a dog running |
|---|
| Strong | A golden retriever sprints across a wet beach at sunset, chasing a red ball. 0–2s: low tracking shot beside the dog, sand spraying. 2–5s: it catches the ball and turns to the camera, slow push in. Warm backlight, light sea spray, shallow depth of field, only the sound of waves. |
|---|
Pricing
| Billing item | Price |
|---|
| Duration | $0.08 per second |
|---|
Prices are shown in USD. Charges depend on the model and your actual usage. Compare all pricing
Best Use Cases
Pro Tips
- Prioritize audio cues — Specify which sounds alternate and which stay underneath the scene. Give the main action room for a cue that supports it, then compare speaker attribution and timing with the dialogue script.
- Inspect cuts first — Check eyelines, direction of travel, and prop positions on either side of cuts. Then compare the action with the brief and revise the beat with the clearest discrepancy before reworking the whole clip.
- Add references incrementally — Start with only the sources required to define the actor and action. Once those work in a sample, add setting or sound references. Review each change so you can trace where the result diverges.
FAQ
What is MAGI-2 · Image to Video?
MAGI-2 Image to Video starts from a first-frame image, optionally with a last frame so the clip ends on a set composition; the ratio follows the first frame. Frames cannot be combined with general references, which belong to reference-to-video. Output is 1080p at 25 fps, 4 to 30 seconds, with or without sound.
How do I call the MAGI-2 · Image to Video API?
Send POST /api/v1/jobs/createTask with the model ID magi-2/image-to-video and your API key. Ready-to-run samples are in the API section above.
How is billing calculated?
Charges are based on the selected model, its billing method, and your actual usage.
Where do I get an API key?
Create one in Console → API Keys. The same key works for every model on the gateway.
Can I use the output commercially?
Yes. You can use what you generate in commercial projects, subject to the model provider’s terms.