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 |
Reference inputs, aspect ratio and generated audio do not add separate charges.
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | Describe the video and what each reference is for.Characters: 0–15000 |
images | array | Reference images, up to 10.Items: 0–10JSON schema{
"items": {
"type": "string"
}
} |
videos | array | Reference videos, up to 5, 2-30 seconds each and 30 seconds together; longer clips are trimmed.Items: 0–5JSON schema{
"items": {
"type": "string"
}
} |
audios | array | Reference audios, up to 5, 2-30 seconds each and 30 seconds together; longer clips are trimmed.Items: 0–5JSON schema{
"items": {
"type": "string"
}
} |
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 Reference-to-Video
MAGI-2 Reference-to-Video creates 1080p videos guided by text and optional image, video and audio references. Use references to communicate subjects, motion, visual style or sound.
Why Choose This?
- Mixed references — Combine images, video clips and audio to guide a scene.
- Reference capacity — Add up to 10 images, 5 videos and 5 audio clips.
- 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 and the role of each reference, up to 15,000 characters. |
| images | No | Up to 10 reference images. |
| videos | No | Up to 5 reference video clips. Use 2–30 seconds per clip, with a combined duration of up to 30 seconds. Longer inputs may be shortened. |
| audios | No | Up to 5 reference audio clips. Use 2–30 seconds per clip, with a combined duration of up to 30 seconds. Longer inputs may be shortened. |
| 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 and the role of each reference.
- Add references — Provide images, video clips or audio as needed.
- Choose output settings — Select the aspect ratio, duration and generated-audio setting.
- 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 |
Reference inputs, aspect ratio and generated audio do not add separate charges.
Best Use Cases
- Character scenes — Guide a new scene with visual references.
- Motion studies — Use a video reference to communicate movement.
- Audio-led concepts — Provide speech or sound references for a new clip.
Pro Tips
- Explain what each reference should contribute to the scene.
- Choose references with compatible subjects, movement and visual style.
- Keep the important action or audio near the beginning of reference clips.
Notes
- Reference video and audio durations have separate 30-second totals. Longer clips may be shortened to fit these limits.
- References guide generation; they are not a request to concatenate clips or preserve source audio unchanged.
- If no references are supplied, generation uses the text prompt alone.
- 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 Text-to-Video — Create videos from text descriptions.
- MAGI-2 Image-to-Video — Animate a starting image with optional last-frame guidance.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
MAGI-2 Reference-to-Video API example
The catalog lists POST https://api.opensi.com.ai/api/v3/sand-ai/magi-2/reference-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",
"images": [
"https://static.website-files.org/assets/video-generator/landing/showcase/03image1-c78e296fd3ea.webp",
"https://static.website-files.org/assets/video-generator/landing/showcase/03image2-2e057c254142.webp",
"https://static.website-files.org/assets/video-generator/landing/showcase/03image3-5c78b9a49368.webp",
"https://static.website-files.org/assets/video-generator/landing/showcase/03image4-a33352c02ab0.webp"
],
"videos": [],
"audios": [],
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": true,
"seed": 0
}MAGI-2 Reference-to-Video API — Frequently asked questions
What is the Magi 2 Reference To Video API?
Magi 2 Reference To Video is a Sand Ai model for reference-guided video generation, exposed as a REST API on OpenSIAI. MAGI-2 Reference-to-Video generates 1080p videos with synchronized audio using reference images, videos, and audio clips, supporting character consistency, reference-guided motion, cinematic storytelling, and creative video production. 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 Reference 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/reference-to-video.
How much does Magi 2 Reference To Video cost per run or per second?
Magi 2 Reference 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 Reference To Video accept?
Key inputs: prompt, images, aspect_ratio, duration, seed, audios. 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/reference-to-video.
How do I get started with the Magi 2 Reference 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 Reference 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.