Skip to main content
POST
  1. After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
  2. Regardless of whether callback_url is provided, you can retrieve the result through the unified Query Task Status endpoint.
MAGI-2 Image to Video turns a starting image—or both a starting frame and an ending frame—into a 4–30 second 1080p video with synchronized dialogue, sound effects and ambience. The output follows the aspect ratio of the first frame automatically. For prompt-only generation use MAGI-2 Text to Video; for multimodal references use MAGI-2 Reference to Video.

Models

  • sand-ai/magi-2/image-to-video — First-frame and first-and-last-frame video generation at 1080p for 4–30 seconds with synchronized audio.

Features

  • Single opening frame or first-and-last-frame keyframe control (1–2 images in image_urls).
  • 1080p video from 4 to 30 seconds in one generation.
  • Automatic aspect-ratio matching to the first input image.
  • Synchronized dialogue, sound effects and ambience, with an option to disable audio.
  • Prompts up to 15,000 characters and optional seed.

Required parameters

  • prompt (string): Motion, camera, action and sound instructions, up to 15,000 characters. Put spoken lines in quotes.
  • image_urls (string[]): One or two public HTTP(S) image URLs (JPG, PNG or WEBP). The first image sets the opening frame; an optional second image sets the closing frame.

Optional parameters

  • duration (integer): Length in whole seconds from 4 to 30. Default 5.
  • resolution (string): 1080p.
  • aspect_ratio (string): auto (default). The output matches the first frame’s aspect ratio.
  • generate_audio (boolean): true (default) generates synchronized audio; false returns a video-only file.
  • seed (integer): Random seed from 0 to 2147483647.

Output

A finished task returns one MP4 file: H.264 video at 25 fps with an AAC stereo audio track when generate_audio is true.

Examples

  • First frame animation: animate one opening frame for 5 seconds with camera motion and synchronized ambience.
  • First and last frame transition: transition smoothly between two keyframes over 6 seconds.

Notes

  • image_urls must contain 1 or 2 publicly accessible HTTP(S) URLs; aspect_ratio accepts only auto (or omit it). Reference fields (reference_*) are rejected with 400.
  • Credits are billed per second of duration at 1080p; generate_audio does not change the price. Failed tasks are refunded in full. See the pricing page for current rates.

Authorizations

Authorization
string
header
required

Use Authorization: Bearer VIDGO_API_KEY.

Body

application/json
model
string
required
Example:

"sand-ai/magi-2/image-to-video"

input
object
required
callback_url
string<uri>

Optional webhook URL for completion or failure notifications.

Example:

"https://your-domain.com/callback"

Response

Task submission result. A task ID identifies asynchronous work; generation may still be running.

code
integer
required
Example:

200

data
object
required