
MAGI-2
Sand AI
テキストから動画へ画像から動画へリファレンスから動画へ$0.08~ / s
MAGI-2は、ネイティブオーディオ、マルチモーダルリファレンス、正確なタイムライン制御、およびターゲットを絞ったビデオ編集機能を備え、最大30秒の1080pビデオを生成します。
入力
モード
価格を表示するには、必須項目を入力してください。
Text To Video · 1080p · 5s
アイドル出力は利用できません
| 長さ | 解像度 | タイプ | 価格 |
|---|---|---|---|
| output second | 1080p | 画像から動画へ | $0.08 / s |
| リファレンスから動画へ | $0.08 / s | ||
| テキストから動画へ | $0.08 / s |
* 実際の料金は最終的な出力に基づいて決まります。
終点
POST
https://pollo.ai/api/platform/v1/generation/sand-ai/magi-2/videoモード
認証
APIキーをリクエストヘッダーの x-api-key に指定してください。
x-api-key: YOUR_API_KEYAPIキーを表示するタスクを送信
モデル生成タスクを作成します。
リクエスト
curl -X POST 'https://pollo.ai/api/platform/v1/generation/sand-ai/magi-2/video' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{
"input": {
"prompt": "At dawn, waves break gently against the rocks as the camera slowly moves forward.",
"resolution": "1080p",
"duration": 5,
"aspectRatio": "16:9",
"generateAudio": true
}
}'応答(200)
{
"taskId": "task_01HZ7Q2V8J3E4T6Y9K0M1N2P3",
"status": "pending"
}ステータスを確認する
生成が完了するまで、タスクステータスエンドポイントをポーリングします。
HTTPリクエスト
GET /api/platform/v1/generation/{taskId}/status HTTP/1.1
Host: pollo.ai
x-api-key: YOUR_API_KEY応答(200)
{
"taskId": "task_01HZ7Q2V8J3E4T6Y9K0M1N2P3",
"credit": 12,
"costUsd": 0.12,
"generations": [
{
"id": "generation_01",
"createdDate": "2026-07-13T07:00:00.000Z",
"updatedDate": "2026-07-13T07:00:12.000Z",
"status": "succeeded",
"failMsg": null,
"url": "https://example.com/output.mp4",
"mediaType": "video"
}
]
}Webhook
タスクの成功または失敗時にコールバックを受け取るには、オプションでwebhookUrlを含めます。
オプションのリクエストフィールド
{
"input": {
"prompt": "At dawn, waves break gently against the rocks as the camera slowly moves forward.",
"resolution": "1080p",
"duration": 5,
"aspectRatio": "16:9",
"generateAudio": true
},
"webhookUrl": "https://example.com/webhooks/pollo"
}スキーマ
選択したエンドポイントとモードの入力フィールド。
| 分野 | タイプ | 必須 | 説明 |
|---|---|---|---|
| prompt | string | はい | Text prompt describing the content to generate. |
| resolution | string | なし | Output resolution of the generated media (e.g. 720p, 1080p, 2K, 4K). Values are case-insensitive. |
| duration | integer | なし | The duration of the generated video, in seconds. |
| aspectRatio | string | なし | Output aspect ratio, as width:height (e.g. 16:9). |
| generateAudio | boolean | なし | Generate natural-sounding, fitting audio for the output video. |
エラー
一般的な公開APIのレスポンスコード。
- 400
- 入力またはモデルの制約が無効です
- 401
- APIキーが欠落しているか無効です
- 403
- APIキーにはアクセス権がありません
- 404
- モデルまたはタスクが見つかりませんでした
モデルのドキュメントは近日公開予定です。