出力解像度
公開 endpoint スキーマから 720p, 1080p をサポートしています。
curl -X POST https://runapi.ai/api/v1/wan/image_to_video \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan-2.6-image-to-video",
"image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
"prompt": "自然な屋内ライティングと手持ちカメラの雰囲気で本棚に飛び乗る猫の5秒間の動画を生成してください。"
}'
import { WanClient } from "@runapi.ai/wan";
const client = new WanClient();
const result = await client.imageToVideo.run({
model: "wan-2.6-image-to-video",
image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
prompt: "自然な屋内ライティングと手持ちカメラの雰囲気で本棚に飛び乗る猫の5秒間の動画を生成してください。",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/wan/image_to_video",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"wan-2.6-image-to-video","image_url":"https://cdn.runapi.ai/public/samples/image.jpg","prompt":"自然な屋内ライティングと手持ちカメラの雰囲気で本棚に飛び乗る猫の5秒間の動画を生成してください。"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/wan/image_to_video");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'wan-2.6-image-to-video',
'image_url' => 'https://cdn.runapi.ai/public/samples/image.jpg',
'prompt' => '自然な屋内ライティングと手持ちカメラの雰囲気で本棚に飛び乗る猫の5秒間の動画を生成してください。',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.imageToVideo().run({"model":"wan-2.6-image-to-video","image_url":"https://cdn.runapi.ai/public/samples/image.jpg","prompt":"自然な屋内ライティングと手持ちカメラの雰囲気で本棚に飛び乗る猫の5秒間の動画を生成してください。"});
task.waitForResult();
require "runapi/wan"
client = RunApi::Wan::Client.new
result = client.image_to_video.run(
model: "wan-2.6-image-to-video",
image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
prompt: "自然な屋内ライティングと手持ちカメラの雰囲気で本棚に飛び乗る猫の5秒間の動画を生成してください。"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.imageToVideo.Run({"model":"wan-2.6-image-to-video","image_url":"https://cdn.runapi.ai/public/samples/image.jpg","prompt":"自然な屋内ライティングと手持ちカメラの雰囲気で本棚に飛び乗る猫の5秒間の動画を生成してください。"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model wan-2.6-image-to-video \
--endpoint image_to_video \
--wait
18 個のバージョンを利用可能
モデルを選んで、数秒で生成できます。
| プロバイダー | Alibaba |
| モデル ID | wan-2.6-image-to-video |
| モダリティ | 動画 |
| タスク種別 | Asynchronous |
| API エンドポイント | /api/v1/wan/image_to_video |
| 請求単位 | 秒 |
| 入力パラメータ | first_frame_image_url, multi_shots, output_resolution, prompt |
| 最大解像度 | 720p, 1080p |
| カタログ状態 | 稼働中 |
無料で登録し、ダッシュボードから wan-2.6-image-to-video 用の API キーを作成します。
/api/v1/wan/image_to_video に wan-2.6-image-to-video のモデル ID とパラメータを指定して POST リクエストを送信します。
タスクをポーリングするかコールバックに従って、完了した wan-2.6-image-to-video の結果を取得します。
公開 endpoint スキーマから 720p, 1080p をサポートしています。
first_frame_image_url, multi_shots, output_resolution, prompt を含む 4 個のドキュメント済みパラメータを設定できます。
1 個の公開 endpoint を提供しています: image_to_video。
秒 に基づいて計量課金されます。サブスクリプション不要。
prompt説明はありません。
multi_shotsControls whether the generated video uses multiple shots with transitions instead of one continuous shot.
output_resolution説明はありません。 (720p, 1080p)
first_frame_image_url説明はありません。
prompt から本番向けの短尺クリップを生成します。
複数の方向性を素早く試します。
開発ツールにモデルコンテキストを渡して動画アセットを作成します。
quickstart に表示されるモデル ID を渡してください。
はい。呼び出しまたは単位ごとの従量課金です。