Vidu 2.0 (reference-to-video) API
もっと見る
開発元:Vidu。 このモデルはMartLLMが運用しているものではありません。 MartLLMでは、販売者が自身のプロバイダーアカウントを通じて提供しています。
リクエスト
curl https://api.martllm.com/v1/video/generations \
-H "Authorization: Bearer $UBERLLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "vidu/vidu-2-0-reference-to-video",
"prompt": "Bring the photo to life: a slow camera push-in, hair and clothes move gently in the wind, the person blinks and smiles slightly; keep the face, outfit and background unchanged",
"resolution": "720p",
"duration_seconds": 4,
"aspect_ratio": "16:9",
"image_url": "https://example.com/photo.jpg"
}'
# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}UBERLLM_API_KEYにAPIキーを設定してください。 statusが"succeeded"になるまで5秒ごとに/v1/video/generations/<job id>を確認し、キーを使ってファイルをダウンロードします。失敗したジョブは理由が返され、料金はかかりません。 API詳細ガイド
オプション
- タスク
- 画像から動画, 参照画像
- 解像度
- 720p
- 長さ
- 4秒
- アスペクト比
- 16:9, 9:16, 1:1
- 入力画像
- 最大3
- 課金単位
- 動画1秒あたり
- モデルID
vidu/vidu-2-0-reference-to-video
Vidu 2.0 (reference-to-video)を試す
設定
元画像
左の設定と同じリクエストです。そのままコピーできます。
curl https://api.martllm.com/v1/video/generations \
-H "Authorization: Bearer $UBERLLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "vidu/vidu-2-0-reference-to-video",
"prompt": "",
"resolution": "720p",
"duration_seconds": 4,
"aspect_ratio": "16:9"
}'
# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}Vidu 2.0 (reference-to-video) APIの得意なこと
- 1回のリクエストで最長4秒のクリップを生成。
- お手持ちの画像をそのまま最初のフレームに使用。
- 人物・商品・場所の参照画像を最大3枚。
- アスペクト比:16:9, 9:16, 1:1。
サンプルから始める
01
写真を動かす
Bring the photo to life: a slow camera push-in, hair and clothes move gently in the wind, the person blinks and smiles slightly; keep the face, outfit and background unchanged
自分の画像で
02
商品写真を回転させる
The product in the photo turns slowly on a turntable, soft studio light, the label stays sharp and readable, clean white background
自分の画像で
03
静止したシーンを動かす
The scene in the photo starts moving: leaves sway, light shifts across the ground, a gentle handheld drift; nothing new appears in the frame
自分の画像で
Vidu 2.0 (reference-to-video) APIパラメーター
| パラメーター | 型 | 説明 |
|---|---|---|
| model | vidu/vidu-2-0-reference-to-video | 必須 |
| prompt | string | 必須. What to make. |
| image_url | string | いずれか1つ. The first frame: an https:// link or a data: URI. |
| input_images | array<string>, 最大3 | いずれか1つ. Several pictures (https:// links or data: URIs). |
| resolution | 720p | 任意 · 720p. The seller needs one: left out, 720p is sent. |
| duration_seconds | 4 | 任意. Length in seconds. Left out: the model's shortest. |
| aspect_ratio | 16:9, 9:16, 1:1 | 任意 · 16:9. Shape of the video. The seller needs one: left out, 16:9 is sent. |
GET https://api.martllm.com/v1/models/vidu/vidu-2-0-reference-to-videoから取得。APIが各リクエストの検証に使うのと同じルールです。
Viduモデル比較
| モデル | モデルID | 最低価格(1秒あたり) | 最大 | 最長 |
|---|---|---|---|---|
| Vidu 2.0 (reference-to-video) | vidu/vidu-2-0-reference-to-video | 720p | 4秒 | |
| Vidu Q3 Text-to-Video | vidu/vidu-q3-text-to-video | $0.14 | 16秒 | |
| Vidu Q3 (image-to-video) | vidu/vidu-q3-image-to-video | $0.0666 | 1080p | 16秒 |
| Vidu Q3 Turbo Text to Video | vidu/viduq3-turbo-text-to-video | $0.0317 | 1080p | 16秒 |
| Vidu Q3 Turbo Image to Video | vidu/viduq3-turbo-image-to-video | $0.0317 | 1080p | 16秒 |
| Vidu Q4 | vidu/vidu-q4-image-to-video | $0.0403 | 4k | 16秒 |
| Vidu Q4 Reference | vidu/vidu-q4-reference-to-video | $0.0403 | 4k | 16秒 |
| Vidu 2.0 (text-to-video) | vidu/vidu-2-0-text-to-video | $0.0571 | 720p | 8秒 |
| Vidu Q1 (reference-to-video) | vidu/vidu-q1-reference-to-video | $0.0762 | 1080p | 5秒 |
| Vidu Q1 (text-to-video) | vidu/vidu-q1-text-to-video | $0.0762 | 1080p | 5秒 |
Vidu 2.0 (reference-to-video) APIのよくある質問
Vidu 2.0 (reference-to-video)の料金はいくらですか?
Vidu 2.0 (reference-to-video)は表示価格で請求され、MartLLMの手数料は上乗せされません。失敗したリクエストは無料です。
Vidu 2.0 (reference-to-video)で動画を生成するには?
MartLLMキー、モデル「vidu/vidu-2-0-reference-to-video」、プロンプトを指定してhttps://api.martllm.com/v1/video/generationsにPOSTリクエストを送信します。ジョブIDが返されるので、「succeeded」になるまでhttps://api.martllm.com/v1/video/generations/<job id>に問い合わせを行い、その後https://api.martllm.com/v1/media/artifacts/<job id>/0からダウンロードしてください。