MAGI-2 プレイグラウンド
入力
Describe the scene, motion and sound. Required in text and reference modes.
Public HTTPS URL of the first frame. The video follows its aspect ratio. Cannot be combined with reference media.
Public HTTPS URL of the last frame. Requires firstFrameImage.
Public HTTPS URLs of up to 10 reference images.
Public HTTPS URLs of up to 5 reference videos. Each is 2–30 seconds, with at most 30 seconds in total.
Public HTTPS URLs of up to 5 audio references. Each is 2–30 seconds, with at most 30 seconds in total.
実行すると残高から料金が引き落とされます。
出力

出力はここに表示されます。
項目を入力し、料金を確認してモデルを実行してください。結果はここに表示されます。ブラウザーで試す場合、別途APIキーは不要です。
MAGI-2 API の料金
| オプション | 秒あたりの価格 |
|---|---|
| 1080p | $0.13 |
クイックスタート
完全なAPIリファレンス →1curl -X POST https://api.api-stock.com/api/v1/generation/create \2 -H "Authorization: Bearer $API_STOCK_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "magi-2",6 "input": {7 "duration": 5,8 "resolution": "1080p",9 "generateAudio": true10 }11 }'
パラメータ
| 名前 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
prompt | string | いいえ | — | Describe the scene, motion and sound. Required in text and reference modes. |
duration | number | いいえ | 5 | Clip length in whole seconds. |
resolution | string | いいえ | 1080p | Output resolution.いずれか: 1080p |
aspectRatio | string | いいえ | — | Output aspect ratio for text and reference modes. Defaults to 16:9. Omit it when using firstFrameImage.いずれか: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 |
generateAudio | boolean | いいえ | true | Generate a synchronized soundtrack. This setting does not change the price. |
firstFrameImage | string | いいえ | — | Public HTTPS URL of the first frame. The video follows its aspect ratio. Cannot be combined with reference media. |
lastFrameImage | string | いいえ | — | Public HTTPS URL of the last frame. Requires firstFrameImage. |
imageUrls | string[] | いいえ | — | Public HTTPS URLs of up to 10 reference images. |
videoUrls | string[] | いいえ | — | Public HTTPS URLs of up to 5 reference videos. Each is 2–30 seconds, with at most 30 seconds in total. |
audioUrls | string[] | いいえ | — | Public HTTPS URLs of up to 5 audio references. Each is 2–30 seconds, with at most 30 seconds in total. |
よくある質問
MAGI-2 の料金はいくらですか?
MAGI-2はAPI Stock API経由で$0.13 出力1秒あたりから利用できます。料金は1つの前払い残高から利用した分だけ支払う従量制で、サブスクリプションはありません。最終的な価格は、解像度や長さなどのパラメータに応じて変わります。
MAGI-2 はいつリリースされましたか?
MAGI-2 は 2026年11月24日 にリリースされました。他のすべてのモデルと同じ API キーと前払い残高で、API Stock API から利用できます。
MAGI-2 の API キーはどうやって取得しますか?
API Stock に登録し、利用可能な支払い方法で残高をチャージして、ダッシュボードで API キーを作成するだけです。数分で完了し、契約は不要です。同じキーでカタログのすべてのモデルを利用できるため、MAGI-2 専用のキーを取得する必要はありません。
MAGI-2 APIはどのように呼び出せますか?
https://api.api-stock.com/api/v1/generation/create に、APIキーとモデルID「magi-2」を指定してPOSTリクエストを送信します。リクエストの結果として、ポーリングするタスクIDが返されるか、結果の準備ができた時点でWebhookコールバックが送信されます。上記のクイックスタートにすぐ実行できる例があります。
MAGI-2はどのような入力パラメータを受け付けますか?
MAGI-2は10個の入力パラメータを受け付けます。種類、デフォルト値、指定可能な値は上記のパラメータ表に記載されています。
MAGI-2のリクエストに失敗するとどうなりますか?
API Stockは予備のプロバイダーでリクエストを自動的に再試行します。すべてのプロバイダーで失敗した場合、料金は残高に返金されます。
MAGI-2は他のモデルと同じAPIキーで利用できますか?
はい。API Stockのすべてのモデル(動画、画像、音楽、チャット)は1つのAPIキーと1つの前払い残高を共有しているため、新しい認証情報なしでMAGI-2に切り替えられます。
