Skip to content
ეს გვერდი ჯერ თქვენს ენაზე ხელმისაწვდომი არ არის და ინგლისურად არის ნაჩვენები.
Sand AI · MAGI

MAGI-2 API

Generate 1080p video from text, frames, or image, video, and audio references with MAGI-2 on APISea.

ვიდეოს გენერაციავიდეოასინქრონული ამოცანა
მოდელის ID
magi-2

MAGI-2 API-ის ფასები

ყველა ფასი USD-შია. APISea-ის ტარიფები შედარებულია იმავე ერთეულისთვის დადგენილ ოფიციალურ ფასებთან.

პარამეტრიAPISeaოფიციალურიდაზოგვა
ნაგულისხმევინაგულისხმევი$0.088$0.08—

ფასები მოცემულია წამში-ზე.

რა არის MAGI-2?

MAGI-2 is Sand AI’s video generation model for turning prompts and visual or audio inputs into 1080p video. It supports text-to-video, image-to-video using a first frame and optional last frame, and reference-to-video guided by images, videos, or audio clips. Every mode requires a prompt, where you can describe the scene, action, camera, sound, and quoted dialogue. Choose a whole-second duration from 4–30 seconds, select a supported aspect ratio, and keep generated audio enabled or turn it off.

On APISea, call magi-2 through the video generation endpoint using your APISea API key. Generation runs asynchronously: submit the request, read the returned task ID, and retrieve the result through the task status API. APISea’s pay-as-you-go price is $0.088 per second, with billing only for successful requests. The provider list price is $0.08 per second, so this model is not offered at a discount to that rate.

MAGI-2-ის მთავარი მახასიათებლები

Three Generation Modes

Generate from text alone, animate a first frame with an optional last frame, or guide generation with image, video, and audio references.

Fixed 1080p Output

Choose durations from 4–30 whole seconds. Text-to-video and reference-to-video support six aspect ratios, including 9:16 and 21:9.

Optional Generated Audio

Audio generation is enabled by default. Describe sound and quoted dialogue in the prompt, or disable audio for a video without an audio track.

Multimedia Reference Inputs

Reference mode accepts a combined maximum of 10 reference images, plus up to 5 reference videos and up to 5 reference audio clips. Describe each input’s purpose in the prompt.

როგორ გამოვიძახოთ MAGI-2 API 4 ნაბიჯში

  1. 01

    მიიღეთ API გასაღები

    შედით APISea-ში, შეავსეთ ბალანსი $50-დან და კონსოლში შექმენით sk-sea გასაღები.

  2. 02

    დააყენეთ საბაზისო URL

    თქვენს SDK-ში ან HTTP კლიენტში საბაზისო URL-ად გამოიყენეთ https://api.apisea.ai/v1.

  3. 03

    გაგზავნეთ მოთხოვნა

    გამოიძახეთ POST /v1/videos/generations პარამეტრებით "model": "magi-2" და ქვემოთ ჩამოთვლილი პარამეტრებით.

  4. 04

    დაამუშავეთ პასუხი

    პასუხი შეიცავს task_id-ს. მოითხოვეთ GET /v1/tasks/{task_id} განმეორებით, სანამ სტატუსი completed გახდება, შემდეგ კი ჩამოტვირთეთ შედეგის URL-ებიდან.

მოთხოვნის მაგალითები

დოკუმენტაცია: MAGI-2 Video Generation →
curl --request POST \
  --url https://api.apisea.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "magi-2",
  "prompt": "A red paper boat drifts along a gutter on a rainy night, macro camera, with the sound of rain",
  "duration": 5,
  "aspect_ratio": "9:16",
  "generate_audio": true,
  "nsfw_check": true
}'

პარამეტრები

პარამეტრიტიპისავალდებულონაგულისხმევიაღწერა
modelstringსავალდებულო—
nsfw_checkbooleanარასავალდებულოfalseWhether to run content moderation before submitting the video task.
promptstringსავალდებულო—Required in all three modes, up to 15,000 characters. Describe the scene, action, camera and sound; put spoken dialogue in quotation marks.
durationintegerარასავალდებულო5Whole seconds from `4` to `30`, default `5`. Explicit `0`, fractional values and out-of-range values return HTTP 400. Omit this field to use the default.
secondsintegerარასავალდებულო—Alias for `duration`. If both are sent, their values must match.
resolutionstringარასავალდებულო1080pOnly `1080p` is supported; omitting the field also produces 1080p. Other values return HTTP 400.
aspect_ratiostringარასავალდებულო—Text-to-video and reference-to-video support `16:9` (default), `9:16`, `1:1`, `4:3`, `3:4` and `21:9`. Image-to-video supports the first five ratios, excluding `21:9`; omit the field or use `auto` to follow the first frame’s aspect ratio. Output resolution remains 1080p.
generate_audiobooleanარასავალდებულოtrueWhether to generate audio, default `true`. Set to `false` for output without an audio track. If `audio` is also sent, the values must match.
audiobooleanარასავალდებულო—Alias for `generate_audio`; the values must not conflict. Send reference audio through `audio_urls`.
seedintegerარასავალდებულო—An integer from `0` to `2147483647`. Omit it or send `-1` for a random seed. A fixed seed can make results with identical parameters more similar, but does not guarantee identical output.
omni_reference_task_typestringარასავალდებულოautoSupports `auto` (default) and `reference`. Explicitly set `reference` when using multiple `image_urls` as reference images. `edit` and `extend` are unsupported.
image_urlsstring[]არასავალდებულო—Each item must be a public HTTP(S) image URL. The 2-image limit applies only to image-to-video: the first frame and optional last frame. This mode applies when only images are supplied, with no reference video or audio, no explicit `reference`, and no `reference_image` role. In reference mode, this entire array contains references and shares a combined limit of 10 with `reference_image` entries in `image_with_roles`, whether the mode is selected automatically or explicitly.
first_frame_imagestringარასავალდებულო—Public HTTP(S) URL of the first frame. Choose either the dedicated frame fields or `image_urls`.
last_frame_imagestringარასავალდებულო—Optional public HTTP(S) URL of the last frame, used together with a first frame. Choose either the dedicated frame fields or `image_urls`.
image_with_rolesobject[]არასავალდებულო—Each item contains `url` (a public HTTP(S) image URL) and `role`: `first_frame`, `last_frame` or `reference_image`. Image-to-video allows at most one first frame and one last frame. The `reference_image` role selects reference mode; these images and those in `image_urls` share a combined limit of 10.
video_urlsstring[]არასავალდებულო—Up to 5 reference videos, each 2–30 seconds, with a combined duration of at most 30 seconds recommended; the upstream service may truncate excess duration. Use an array of public HTTP(S) URLs. The singular `video_url` field is unsupported.
audio_urlsstring[]არასავალდებულო—Up to 5 reference audio clips, each 2–30 seconds, with a combined duration of at most 30 seconds recommended; the upstream service may truncate excess duration. Each item must be a public HTTP(S) URL.

რისი შექმნა შეგიძლიათ MAGI-2-ით

Prompt-to-video tools

Build a creation interface that turns scene descriptions into short 1080p clips with selectable duration, aspect ratio, and audio settings.

Frame-guided storyboards

Use a first frame and optional last frame to generate a video between supplied visual endpoints.

Reference-driven creative workflows

Let teams supply images, videos, and audio clips to guide new video generation rather than splice existing media together.

Multi-format content production

Generate vertical, square, or landscape clips for different layouts using supported aspect ratios. For image-to-video, follow the first frame’s aspect ratio by omitting the setting or choosing auto.

რჩევები უკეთესი შედეგებისთვის

  • 01

    Write the full scene

    Include the scene, action, camera movement, and sound in every prompt. Put spoken dialogue in quotation marks and explain how each reference should guide the output.

  • 02

    Set reference mode explicitly

    When using image_urls as reference images rather than frames, set omni_reference_task_type to reference. Choose either image_urls or the dedicated frame fields for frame-based generation.

  • 03

    Start with short clips

    Use a short supported duration when testing prompts at $0.088 per second. Duration defaults to 5 seconds; explicit zero, fractional values, and values outside 4–30 return HTTP 400.

  • 04

    Retrieve results asynchronously

    Submit to POST /v1/videos/generations, read data[0].task_id, and use the task status API to retrieve the result. Authenticate with your APISea API key as a Bearer token.

შეზღუდვები და გასათვალისწინებელი საკითხები

  • Only 1080p output is supported; image-to-video does not support 21:9.

  • Reference inputs guide generation; source videos are not spliced into output and source audio is not preserved verbatim.

  • Edit and extend modes are unsupported, and a fixed seed does not guarantee identical output.

MAGI-2 API-ის ხშირად დასმული კითხვები

How much does MAGI-2 cost on APISea?

APISea Default pricing is $0.088 per second, billed only for successful requests. The provider list price is $0.08 per second; APISea does not offer a below-list-price discount for this model.

How do I call the MAGI-2 API?

Send POST /v1/videos/generations with model set to magi-2, a required prompt, and your APISea API key in the Bearer authorization header. Read data[0].task_id from the response, then use the task status API to retrieve the result.

What video durations and resolutions does MAGI-2 support?

MAGI-2 generates 1080p video with whole-second durations from 4–30 seconds, defaulting to 5 seconds. Other resolutions, fractional durations, explicit zero, and out-of-range durations return HTTP 400.

Can MAGI-2 generate audio or use audio references?

Generated audio is enabled by default; set generate_audio to false for output without an audio track. Supply audio references through audio_urls, with up to 5 clips of 2–30 seconds each; reference audio is not preserved verbatim.

How many images can I provide to MAGI-2?

Image-to-video accepts a first frame and an optional last frame, for a maximum of 2 images. Reference mode supports a combined maximum of 10 images across image_urls and reference_image entries in image_with_roles; image URLs must be public HTTP(S) URLs.

Can I use MAGI-2 output commercially?

Commercial use is subject to the provider’s terms. Review Sand AI’s applicable terms and any rights associated with your input materials before using generated output commercially.

მსგავსი მოდელები

არჩევანი: 250+ მოდელი · მინიმალური შევსება $50

დაიწყეთ MAGI-2-ით შექმნა

ერთი გასაღები, გამოყენების მიხედვით გადახდა $50-დან; თანხა ჩამოგეჭრებათ მხოლოდ წარმატებული მოთხოვნებისთვის.