Sand AImagi-2
Sand AI's MAGI-2: 4 to 30 second 1080p clips with native sound, from a prompt or from 最大 10 reference images, 5 reference videos and 5 audio clips
$0.1/ 秒生成失敗時は課金なし
- 4〜30 秒のクリップ
- 1080p
- Native sound
- 画像 10 枚・動画 5 本・音声 5 本まで
- モダリティ
- 動画
- エンドポイント
- /v1/videos/generations
- モデル ID
- magi-2
- プロバイダー
- Sand AI
MAGI-2 API の概要
ドキュメント化されたエンドポイント
動画リクエストの送信先: /v1/videos/generations. 下のパラメータ表に、このエンドポイントで使えるフィールドを記載しています。
モデルプロバイダー
MAGI-2 の提供元は Sand AI で、API でのモデル ID は magi-2.
出力と制限
4〜30 秒 in whole seconds; 1080p only; one output per request; 16:9, 4:3, 1:1, 3:4, 9:16 or 21:9; 最大 10 reference images, 5 reference videos and 5 audio clips, 20 in all, audio alone accepted; reference videos and audio clips run 各 2〜30 秒 and 30 seconds in all per kind; prompt 必須、最大 15,000 characters; a soundtrack is generated unless generate_audio is false; billed by the seconds of video returned, and reference images, videos and audio add nothing
MAGI-2 API の料金
| 項目 | ArgoLink 価格 |
|---|---|
| 1080p | $0.1 / 秒 |
4〜30 秒 in whole seconds; 1080p only; one output per request; 16:9, 4:3, 1:1, 3:4, 9:16 or 21:9; 最大 10 reference images, 5 reference videos and 5 audio clips, 20 in all, audio alone accepted; reference videos and audio clips run 各 2〜30 秒 and 30 seconds in all per kind; prompt 必須、最大 15,000 characters; a soundtrack is generated unless generate_audio is false; billed by the seconds of video returned, and reference images, videos and audio add nothing
MAGI-2 API リファレンス
クイックスタート
コンソールで API キーを作成し、このページに示すベース URL、エンドポイント、リクエストボディでリクエストを送信してください。
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "magi-2",
"prompt": "A slow aerial shot over a foggy pine forest at sunrise"
}'
curl https://argolink.io/v1/videos/$REQUEST_ID \
-H "Authorization: Bearer $ARGOLINK_API_KEY"
curl -L https://argolink.io/v1/videos/$REQUEST_ID/content \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-o output.mp4
import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['ARGOLINK_API_KEY']}"}
job = requests.post(
"https://argolink.io/v1/videos/generations",
headers=headers,
json={"model": "magi-2", "prompt": "A slow aerial shot over a foggy pine forest at sunrise"},
timeout=600,
)
job.raise_for_status()
request_id = job.json()["request_id"]
while True:
status = requests.get(f"https://argolink.io/v1/videos/{request_id}", headers=headers, timeout=60).json()
if status["status"] in ("done", "failed", "expired"):
break
time.sleep(5)
if status["status"] == "done":
video = requests.get(f"https://argolink.io/v1/videos/{request_id}/content", headers=headers, timeout=600)
open("output.mp4", "wb").write(video.content)
モード
テキストから動画
プロンプトだけで生成
The shortest call there is: only prompt is required, and the fields you leave out render and bill 5 秒、 1080p 16:9.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "magi-2",
"prompt": "日の出の霧に包まれた松林の上をゆっくり進む空撮",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9"
}'
| フィールド | 値 |
|---|---|
prompt | 必須、最大 15,000 characters; describe the camera move, the subject and the mood |
duration | 4〜30 の整数秒、デフォルトは 5 |
resolution | 1080p |
aspect_ratio | 16:9 · 4:3 · 1:1 · 3:4 · 9:16 · 21:9、デフォルトは 16:9 |
size | resolution と aspect_ratio の代わりにピクセルで指定。たとえば 1920x1080 is 1080p 16:9 |
1 リクエストで生成される動画は 1 本です。seed と watermark には対応しておらず、generate_audio が false でない限り、生成結果には生成された音声トラックが付きます。
参照
指定した画像・動画・音声に沿って生成
生成結果は、送信した素材の被写体、動き、リズムに沿ったものになります。Every asset you send is used; the prompt says what to do with them.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "magi-2",
"prompt": "The person in the reference walks into a rainy street at night",
"duration": 5,
"resolution": "1080p",
"reference_images": [{"url": "https://example.com/subject.png"}]
}'
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "magi-2",
"prompt": "The girl dances to the beat, moving like the dancer in the reference clip",
"duration": 10,
"resolution": "1080p",
"reference_images": [{"url": "https://example.com/girl.png"}],
"reference_videos": [{"url": "https://example.com/dance.mp4"}],
"reference_audios": [{"url": "https://example.com/beat.mp3"}]
}'
| フィールド | 値 |
|---|---|
prompt | 必須、最大 15,000 characters; describe the camera move, the subject and the mood |
reference_images | HTTPS の画像を最大 10 枚(JPEG または PNG) |
reference_videos | 最大 5 本のクリップ(各 2〜30 秒) 合計 30 秒まで |
reference_audios | 最大 5 本のクリップ(各 2〜30 秒) 合計 30 秒まで |
duration | 4〜30 の整数秒、デフォルトは 5 |
resolution | 1080p |
aspect_ratio | 16:9 · 4:3 · 1:1 · 3:4 · 9:16 · 21:9、デフォルトは 16:9 |
3 種類の素材は自由に組み合わせられ、合計 20 個までです。参照動画は出力と同じ単価で課金され、参照画像と参照音声は無料です。
参照素材のアップロードと使い方
自分のリンク、または先にアップロードしたローカルファイル
start_image、end_image、および reference_images・reference_videos・reference_audios の各項目の url には、HTTPS アドレスを指定します。すでにホストしているリンクは、サインインなしでダウンロードでき、リダイレクトがすべて HTTPS のままであれば、そのまま指定できます。ローカルファイルは先にアップロードし、返された media_url をリクエストに指定します。
FILE=dance.mp4
TICKET=$(curl -fsS https://argolink.io/v1/media/uploads \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"model\":\"magi-2\",\"type\":\"video\",\"content_type\":\"video/mp4\",\"size_bytes\":$(wc -c < "$FILE" | tr -d ' ')}")
curl -fsS -X PUT "$(jq -r .upload_url <<<"$TICKET")" \
-H "Content-Type: video/mp4" --data-binary @"$FILE"
# Put this media_url in reference_videos[].url
jq -r .media_url <<<"$TICKET"
チケットの発行は無料で、ジョブも作成されません。upload_url の有効期間は 15 分で、PUT には申告した Content-Type を付ける必要があります。引き換えに得られる media_url は 7 日間読み取れます。
| フィールド | 形式 | サイズ | 長さ |
|---|---|---|---|
reference_images · start_image · end_image | JPEG または PNG | ≤ 20 MiB | — |
reference_videos | MP4 または MOV | ≤ 100 MiB | 各 2〜30 秒 |
reference_audios | WAV または MP3 | ≤ 15 MB | 各 2〜30 秒 |
この範囲外の素材があると、生成開始前にジョブが invalid_input で失敗し、料金は発生しません。
MAGI-2 リクエストパラメータ一覧
| パラメータ | 型 | 要件 | 説明 |
|---|---|---|---|
model | string | 必須 | The catalog identifier for this page: magi-2. |
prompt | string | 必須 | Describes the video: camera motion, subject action and mood. This model needs one in every mode, assets or not. It holds 最大 15,000 characters. |
duration | integer | 任意 | 出力の長さを整数秒で指定します(4〜30)。デフォルトは 5 です。 |
resolution | string | 任意 | Output resolution. This model accepts 1080p only, which is also the default. |
aspect_ratio | string | 任意 | Output aspect ratio: 16:9, 4:3, 1:1, 3:4, 9:16 or 21:9、デフォルトは 16:9. It applies to reference requests, with or without assets. |
size | string | 任意 | Pixels instead of resolution plus aspect_ratio, written WIDTHxHEIGHT: the short side picks the tier (1080 for 1080p) and the shape picks the ratio, so 1920x1080 is 1080p 16:9. It picks a tier and a ratio, not exact pixels; a resolution or aspect_ratio sent with it must match, or the request is rejected with 400. |
start_image · end_image | object | 非対応 | このモデルはフレームを受け付けません。プロンプトのみ、またはプロンプトと参照素材を送信してください。start_image や end_image は 400 で拒否されます。 |
reference_images | array | 参照 | 参照画像の HTTPS アドレスで、最大 10 枚です。画像・動画・音声は、1 リクエストあたり合計 20 個までです。 |
reference_videos | array | 参照 | HTTPS URLs of reference videos, 最大 5 本のクリップ(各 2〜30 秒) 合計 30 秒まで. Their seconds are billed like the output's. |
reference_audios | array | 参照 | 参照音声クリップの HTTPS アドレスで、最大 5 本、各 2〜30 秒、合計 30 秒までです。音声だけを送信することもできます。 |
seconds · ratio | — | 互換フィールド名 | duration と aspect_ratio の別名です。1 つの値には 1 つの名前だけを使い、両方は送らないでください。 |
image_url · image_urls · video_urls · audio_urls · frame_images · input_references | — | 互換フィールド名 | fal や OpenRouter のリクエストのフィールド名も使えます。image_url は start_image、image_urls・video_urls・audio_urls は 3 種類の参照リスト、frame_images のうち frame_type が first_frame または last_frame の項目は start_image と end_image、input_references のうち type が image_url・video_url・audio_url の項目は参照素材として扱われます。1 つの入力には 1 つの名前だけを使ってください。 |
n | integer | 任意 | 1 にするか省略してください。1 リクエストで生成される動画は必ず 1 本です。 |
generate_audio | boolean | 任意 | Defaults to true: MAGI-2 scores the video itself. Send false for a silent result. |
seed · watermark | — | 非対応 | このモデルでは使用できません。seed の指定や watermark: true は 400 で拒否されます。 |
request_id | string | レスポンスフィールド | 送信リクエストで返される値で、ステータスとコンテンツのエンドポイントが受け付ける唯一の識別子です。 |
progress · estimated_seconds_remaining | integer | レスポンスフィールド | status が pending の間、ステータスエンドポイントが返します。progress はジョブの進み具合の推定値(0〜99)、estimated_seconds_remaining は残り秒数の推定値で、後者は推定値が出るまで返されません。status が done になると progress は 100 になります。 |
video.url | string | レスポンスフィールド | status が done になった後の完成した MP4 のダウンロードリンクです。API キーなしで誰でも開ける ArgoLink のリンクで、30 日間有効です。 |
usage | object | レスポンスフィールド | status が done になると返されます。output_seconds、reference_video_seconds と、その合計の billed_seconds で、ジョブはこの合計に対して課金されます。 |
MAGI-2 API と類似モデルの比較
| モデル | モデル ID | プロバイダー | 料金 | 適した用途 |
|---|---|---|---|---|
| MAGI-2 | magi-2 | Sand AI | $0.1 / 秒 | Sand AI's MAGI-2: 4 to 30 second 1080p clips with native sound, from a prompt or from 最大 10 reference images, 5 reference videos and 5 audio clips |
| Seedance 2.5 | seedance-2.5 | ByteDance Seed | $0.0874 / 秒 | これまでで最も高性能な Seedance の動画モデル: 30 秒のクリップ、最大 50 個の参照素材、実在の人物の参照素材にネイティブ対応、手動の承認や追加の認証は不要 |
| Grok Imagine Video 1.5 | grok-imagine-video-1.5 | xAI | $0.032 / 秒 | 出力 1 秒単位で課金される 480p・720p・1080p の動画生成 |
| Gemini Omni 1.2 Flash | gemini-omni-1.2-flash | $0.0455 / 秒 | Google Gemini Omni 1.2 Flash: 3 to 15 second clips with native sound at 720p, 1080p or 4K, from a prompt, a first and last frame, 最大 10 reference images and 3 reference videos, or as an edit of a video |
同じモダリティの他のモデル
- Seedance 2.5これまでで最も高性能な Seedance の動画モデル: 30 秒のクリップ、最大 50 個の参照素材、実在の人物の参照素材にネイティブ対応、手動の承認や追加の認証は不要$0.0874 / 秒
- Grok Imagine Video 1.5出力 1 秒単位で課金される 480p・720p・1080p の動画生成$0.032 / 秒
- Gemini Omni 1.2 FlashGoogle Gemini Omni 1.2 Flash: 3 to 15 second clips with native sound at 720p, 1080p or 4K, from a prompt, a first and last frame, 最大 10 reference images and 3 reference videos, or as an edit of a video$0.0455 / 秒
- Kling 4.0Kuaishou Kling 4.0: 3 to 30 second clips at 720p or 1080p from a prompt, or from 最大 10 reference images and 5 reference videos, with a soundtrack of its own$0.1413 / 秒
MAGI-2 API のよくある質問
MAGI-2 の呼び出し方法は?
Create an API key in the console and POST https://argolink.io/v1/videos/generations 、model には次を指定: magi-2. The response carries request_id, the only job identifier: poll GET https://argolink.io/v1/videos/{request_id}, which reports progress and estimated_seconds_remaining while the job is pending, until status is done, then download the MP4 from GET https://argolink.io/v1/videos/{request_id}/content。このアドレスはステータスにも含まれます: video.url.
MAGI-2 の料金はいくらですか?
出力 1 秒あたり、最低 $0.1 per second at the lowest tier; each tier in the pricing table has its own per-second rate, multiplied by the video's length. Reference videos are billed at the same per-second rate: billed seconds are the output seconds plus the reference videos' total seconds, with any part of a second left off, so a 5-second video with a 2.4-second reference video bills 7 seconds. Reference images and audio are free. Only a completed video is billed; a failed or rejected job costs nothing.
MAGI-2 が対応する入力モードは?
すべて同じエンドポイントで利用できます: reference (a prompt alone, or with images, videos and audio as references: 最大 10 reference_images, 5 reference_videos と 5 reference_audios, 20 合計、 任意の組み合わせ). Every asset is an HTTPS URL.
MAGI-2 が対応していないものは?
1 リクエストあたり複数の動画(n は 1 にするか省略する必要があります)、seed の指定、watermark: true には対応していません。指定すると 400 が返されます。出力は H.264 の MP4 で、generate_audio が false でない限り、生成された音声トラックが付きます。
MAGI-2 の動画に音声はありますか?
デフォルトでは音声あり: MAGI-2 scores the video itself. Send generate_audio: false for a silent result.