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 Text to Video is Sand AI’s text-to-video generation model. It generates 1080p clips from 4 to 30 seconds long with dialogue, sound effects and ambience created together with the picture. It suits short dramas, ads, product shots and social clips that need long takes and spoken lines. For first-and-last-frame animation use MAGI-2 Image to Video; for multimodal references use MAGI-2 Reference to Video.

Models

  • sand-ai/magi-2/text-to-video — Text-to-video generation at 1080p for 4–30 seconds with synchronized audio.

Features

  • 1080p video from 4 to 30 seconds in one generation.
  • Synchronized dialogue, sound effects and ambience, with an option to generate video only.
  • Six aspect ratios: 16:9, 9:16, 1:1, 4:3, 3:4 and 21:9.
  • Prompts up to 15,000 characters for detailed scripts and shot lists.
  • Optional seed for reproducible results.

Required parameters

  • prompt (string): Scene, subjects, motion, camera and sound, up to 15,000 characters. Put spoken lines in quotes.

Optional parameters

  • duration (integer): Length in whole seconds from 4 to 30. Default 5.
  • resolution (string): 1080p.
  • aspect_ratio (string): 16:9 (default), 9:16, 1:1, 4:3, 3:4 or 21:9.
  • 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

  • Dialogue scene: a 5-second 16:9 night street scene with a spoken line in quotes.
  • Vertical clip: a 4-second 9:16 action shot with ambient sound.
  • Ultra-wide silent shot: a 4-second 21:9 desert shot with generate_audio: false and a fixed seed.

Notes

  • Fields from other modes (image_urls, reference_*) are rejected with 400. model and callback_url belong at the request root, not inside input.
  • 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/text-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