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 |
|---|---|---|
imageRequired | string | First frame image URL. |
promptRequired | string | Describe the motion, camera and sound.Characters: 0–15000 |
last_image | string | Last frame image URL (optional). Requires image.JSON schema{
"x-aliases": [
"end_image"
]
} |
aspect_ratio | string | Output aspect ratio. If omitted, it follows the starting image.xxx-empty16:99:161:14:33:4JSON schema{
"x-clearable": true
} |
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 Image-to-Video
MAGI-2 Image-to-Video animates a starting image into a 1080p video. Add an optional prompt to guide motion and an optional last frame to guide the ending, with generated audio available.
Why Choose This?
- First-frame guidance — Start from an uploaded image or an image URL.
- Optional last frame — Provide another image to guide the ending of the clip.
- 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 |
|---|---|---|
| image | Yes | Starting image. Upload a file or provide an accessible image URL. |
| prompt | No | Optional motion, camera and sound guidance, up to 15,000 characters. |
| last_image | No | Optional image to guide the final frame. |
| aspect_ratio | No | 16:9, 9:16, 1:1, 4:3, 3:4 or 21:9. If omitted, uses the closest supported ratio to the starting image. |
| 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
- Add a starting image — Upload an image or provide its URL.
- Guide the motion — Optionally describe the action and add a last-frame image.
- Choose framing and duration — Select an aspect ratio, or leave it unset to use the closest supported ratio to the starting image.
- Set audio and submit — Choose whether to generate audio, then 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
- Image animation — Add motion to illustrations or photographs.
- Product scenes — Explore camera movement around a product image.
- Shot planning — Use first and last frames to guide a short sequence.
Pro Tips
- Use a clear starting image with the main subject visible.
- Describe the movement you want instead of repeating every detail in the image.
- Use compatible subjects and framing when supplying first and last images.
Notes
- The starting image may be cropped to fill the selected aspect ratio. Keep important details away from the edges.
- Leaving
aspect_ratiounset selects the closest supported ratio; it does not preserve an arbitrary source ratio.
- 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 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 Image-to-Video API example
The catalog lists POST https://api.opensi.com.ai/api/v3/sand-ai/magi-2/image-to-video for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"image": "https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251121/6784e7f4b50aebc7e17fe396/aprkzw5xyxhf.jpg",
"prompt": "The camera employs a sculptural black-and-white portrait close-up, focusing on a model adorned with an intricate geometric paper headdress and ruff. Under strong sidelight, the sharp edges and layered structure of the paper cast deep shadows, enhancing the image's three-dimensionality and drama. As the camera slowly pans, her gaze, initially fixed on the side, gradually shifts towards the lens, her eyes deep and serene. Simultaneously, the light and shadow gently move and shift across her face and the paper structures, as if time flows silently, creating an avant-garde, cool, and architecturally beautiful artistic atmosphere.",
"last_image": "https://interactive-examples.mdn.mozilla.net/media/cc0-images/painted-hand-298-332.jpg",
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": true,
"seed": 0
}MAGI-2 Image-to-Video API — Frequently asked questions
What is the Magi 2 Image To Video API?
Magi 2 Image To Video is a Sand Ai model for video generation from images, exposed as a REST API on OpenSIAI. MAGI-2 Image-to-Video animates reference images into 1080p videos with synchronized audio and optional last-frame guidance for cinematic storytelling, product animation, 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 Image 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/image-to-video.
How much does Magi 2 Image To Video cost per run or per second?
Magi 2 Image 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 Image To Video accept?
Key inputs: prompt, image, 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/image-to-video.
How do I get started with the Magi 2 Image 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 Image 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.