Seedance 2.5 — 15% below official pricing, 57% cheaper than Fal. Wan 3.0 — 35% below official list price. Magi-2 is live

1つのAPIですべてのAIモデルを使う開発のための、ArgoLinkのガイド、アップデート、技術ノート。 ブログ

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

API キーを作成

MAGI-2 API リファレンス

クイックスタート

コンソールで API キーを作成し、このページに示すベース URL、エンドポイント、リクエストボディでリクエストを送信してください。

エンドポイント

  • POST生成ジョブを送信/v1/videos/generations残りの 2 つの呼び出しで必要な request_id を返します。
  • GETジョブのステータスを確認/v1/videos/{request_id}生成中は pending、動画の準備ができると done、それ以外は failed または expired です。
  • GET結果をダウンロード/v1/videos/{request_id}/contentstatus が done になると MP4 をストリーミングで返します。それまでは 409 job_video_not_ready を返し、ジョブが失敗した場合は 424 job_failed を返します。

認証

API キーは Bearer トークンとして Authorization ヘッダーで送ります。

POST /v1/videos/generations
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"
  }'

モード

テキストから動画

プロンプトだけで生成

The shortest call there is: only prompt is required, and the fields you leave out render and bill 5 秒、 1080p 16:9.

POST /v1/videos/generations
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
duration4〜30 の整数秒、デフォルトは 5
resolution1080p
aspect_ratio16:9 · 4:3 · 1:1 · 3:4 · 9:16 · 21:9、デフォルトは 16:9
sizeresolution と 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.

参照画像 1 枚POST /v1/videos/generations
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"}]
  }'
画像・動画・音声を組み合わせるPOST /v1/videos/generations
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_imagesHTTPS の画像を最大 10 枚(JPEG または PNG)
reference_videos最大 5 本のクリップ(各 2〜30 秒) 合計 30 秒まで
reference_audios最大 5 本のクリップ(各 2〜30 秒) 合計 30 秒まで
duration4〜30 の整数秒、デフォルトは 5
resolution1080p
aspect_ratio16: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 をリクエストに指定します。

ローカルファイルをアップロードPOST /v1/media/uploads
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_imageJPEG または PNG≤ 20 MiB—
reference_videosMP4 または MOV≤ 100 MiB各 2〜30 秒
reference_audiosWAV または MP3≤ 15 MB各 2〜30 秒

この範囲外の素材があると、生成開始前にジョブが invalid_input で失敗し、料金は発生しません。

MAGI-2 リクエストパラメータ一覧

パラメータ型要件説明
modelstring必須The catalog identifier for this page: magi-2.
promptstring必須Describes the video: camera motion, subject action and mood. This model needs one in every mode, assets or not. It holds 最大 15,000 characters.
durationinteger任意出力の長さを整数秒で指定します(4〜30)。デフォルトは 5 です。
resolutionstring任意Output resolution. This model accepts 1080p only, which is also the default.
aspect_ratiostring任意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.
sizestring任意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_imageobject非対応このモデルはフレームを受け付けません。プロンプトのみ、またはプロンプトと参照素材を送信してください。start_image や end_image は 400 で拒否されます。
reference_imagesarray参照参照画像の HTTPS アドレスで、最大 10 枚です。画像・動画・音声は、1 リクエストあたり合計 20 個までです。
reference_videosarray参照HTTPS URLs of reference videos, 最大 5 本のクリップ(各 2〜30 秒) 合計 30 秒まで. Their seconds are billed like the output's.
reference_audiosarray参照参照音声クリップの 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 つの名前だけを使ってください。
ninteger任意1 にするか省略してください。1 リクエストで生成される動画は必ず 1 本です。
generate_audioboolean任意Defaults to true: MAGI-2 scores the video itself. Send false for a silent result.
seed · watermark—非対応このモデルでは使用できません。seed の指定や watermark: true は 400 で拒否されます。
request_idstringレスポンスフィールド送信リクエストで返される値で、ステータスとコンテンツのエンドポイントが受け付ける唯一の識別子です。
progress · estimated_seconds_remainingintegerレスポンスフィールドstatus が pending の間、ステータスエンドポイントが返します。progress はジョブの進み具合の推定値(0〜99)、estimated_seconds_remaining は残り秒数の推定値で、後者は推定値が出るまで返されません。status が done になると progress は 100 になります。
video.urlstringレスポンスフィールドstatus が done になった後の完成した MP4 のダウンロードリンクです。API キーなしで誰でも開ける ArgoLink のリンクで、30 日間有効です。
usageobjectレスポンスフィールドstatus が done になると返されます。output_seconds、reference_video_seconds と、その合計の billed_seconds で、ジョブはこの合計に対して課金されます。

API キーを作成

MAGI-2 API と類似モデルの比較

モデルモデル IDプロバイダー料金適した用途
MAGI-2magi-2Sand 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.5seedance-2.5ByteDance Seed$0.0874 / 秒これまでで最も高性能な Seedance の動画モデル: 30 秒のクリップ、最大 50 個の参照素材、実在の人物の参照素材にネイティブ対応、手動の承認や追加の認証は不要
Grok Imagine Video 1.5grok-imagine-video-1.5xAI$0.032 / 秒出力 1 秒単位で課金される 480p・720p・1080p の動画生成
Gemini Omni 1.2 Flashgemini-omni-1.2-flashGoogle$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

同じモダリティの他のモデル

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.

API キーを作成

おかえりなさい

ArgoLink の運営会社・返金・データの扱いについて

返金を申請

申請を送信し、「チャージ注文」で状態を確認してください。