Pricing
Compare models →Pricing is based on the selected duration, with a default of 5 seconds.
| Duration | Price |
|---|---|
| 5s (default) | $0.40 |
| 10s | $0.80 |
| 30s | $2.40 |
Aspect ratio and generated audio do not add separate charges.
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | Describe the scene, motion, camera and desired sound. Put suggested dialogue in quotation marks; generated wording and timing may vary.Characters: 0–15000 |
aspect_ratio | string | The aspect ratio of the generated video.16:99:161:14:33:421:9"16:9" |
duration | integer | Requested video duration in whole seconds, from 4 to 30. Default: 5. Pricing follows this selected duration.4567891011121314151617181920212223242526272829305 |
generate_audio | boolean | Generate audio alongside the video. Default: true. Turning this off does not change the price.Default: true |
seed | integer | Random seed. Leave it out for a random one.Minimum: 0 · Maximum: 2147483647 |
README
MAGI-2 Text-to-Video
MAGI-2 Text-to-Video creates 1080p videos from text descriptions. Describe the scene, action and camera movement, with optional generated dialogue, sound effects or music.
Why Choose This?
- Text-guided scenes — Describe subjects, actions, surroundings and camera movement.
- Audio guidance — Include dialogue, ambience or music instructions when generating audio.
- Flexible duration — Choose a clip length from 4 to 30 seconds.
- Preset framing — Select from six landscape, portrait and square aspect ratios.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Describe the scene, action and desired sound, up to 15,000 characters. |
| aspect_ratio | No | 16:9, 9:16, 1:1, 4:3, 3:4 or 21:9. Default: 16:9. |
| duration | No | Requested duration from 4 to 30 seconds, in whole seconds. Default: 5. |
| generate_audio | No | Generate audio with the video. Default: true. Set to false for a silent video. |
| seed | No | Integer from 0 to 2147483647. Omit for a random seed. |
How to Use
- Write a prompt — Describe the scene, movement and camera direction.
- Choose framing and duration — Select an aspect ratio and a duration from 4 to 30 seconds.
- Set audio — Keep generated audio enabled or turn it off for a silent video.
- Submit — Generate and review the video.
Pricing
Pricing is based on the selected duration, with a default of 5 seconds.
| Duration | Price |
|---|---|
| 5s (default) | $0.40 |
| 10s | $0.80 |
| 30s | $2.40 |
Aspect ratio and generated audio do not add separate charges.
Best Use Cases
- Story concepts — Explore scenes and short narrative ideas.
- Social videos — Create portrait, square or landscape clips.
- Advertising drafts — Develop motion and sound concepts for campaigns.
Pro Tips
- Describe a clear sequence of actions that fits the selected duration.
- Put suggested dialogue in quotation marks and identify the speaker.
- Keep camera directions and scene changes easy to follow.
Notes
- Quoted dialogue is guidance; wording, pronunciation and timing may vary.
- Audio instructions apply when
generate_audiois enabled.
- Processing time varies with clip length and demand.
- Review motion, visual details and any generated speech before using the result.
Related Models
- MAGI-2 Image-to-Video — Animate a starting image with optional last-frame guidance.
- MAGI-2 Reference-to-Video — Guide videos with image, video and audio references.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
MAGI-2 Text-to-Video API example
The catalog lists POST https://api.opensi.com.ai/api/v3/sand-ai/magi-2/text-to-video for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": true,
"seed": 0
}MAGI-2 Text-to-Video API — Frequently asked questions
What is the Magi 2 Text To Video API?
Magi 2 Text To Video is a Sand Ai model for video generation, exposed as a REST API on OpenSIAI. MAGI-2 Text-to-Video generates 1080p videos from text prompts with synchronized audio, including dialogue, sound effects, and music, for cinematic storytelling, advertising, and social media content. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Magi 2 Text To Video API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/sand-ai/magi-2/text-to-video.
How much does Magi 2 Text To Video cost per run or per second?
Magi 2 Text To Video starts at $0.08 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Magi 2 Text To Video accept?
Key inputs: prompt, aspect_ratio, duration, seed, generate_audio. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/sand-ai/magi-2/text-to-video.
How do I get started with the Magi 2 Text To Video API?
Sign up for a free OpenSIAI account to claim starter credits, copy your API key from /accesskey, then call the endpoint shown in the API tab of the playground. The playground also auto-generates a code sample in Python, JavaScript, or cURL for the parameters you've set.
Can I use Magi 2 Text To Video outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (Sand Ai). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.