CometAPI を使用して Runway の image_to_video を呼び出し、静止画像 URL を生の動画出力に変換します。互換性のための X-Runway-Version にも対応しています。
curl --request POST \
--url https://api.cometapi.com/runwayml/v1/image_to_video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Runway-Version: <x-runway-version>' \
--data '
{
"promptImage": "https://cdn.britannica.com/70/234870-050-D4D024BB/Orange-colored-cat-yawns-displaying-teeth.jpg",
"model": "gen3a_turbo"
}
'{
"id": "d0658ae1-bbdd-4adc-aaba-fd8070e14d79"
}このエンドポイントを使用すると、1 枚のソース画像をアニメーション化して Runway 動画を生成できます。Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
X-Runway-Version ヘッダーを送信します(例: 2024-11-06)model: gen3a_turbo を使用しますpromptImage を指定しますduration: 5 と、1280:720 のような一般的な比率から始めてくださいタスクのステータスをポーリング
task_not_exist が返された場合は、数秒待ってから再試行してください。Bearer token authentication. Use your CometAPI key.
Runway version header, for example 2024-11-06.
Source image URL.
Runway image-to-video model ID. Choose a current model from the Models page.
Random seed for reproducible results. Range: 0–999999999.
Text prompt describing the desired motion or scene. Maximum 512 characters.
Whether to add a watermark to the output video.
Video duration in seconds. Accepted values: 5 or 10.
Aspect ratio of the output video.
1280:720, 720:1280, 1104:832, 832:1104, 960:960, 1584:672, 1280:768, 768:1280 Task accepted.
curl --request POST \
--url https://api.cometapi.com/runwayml/v1/image_to_video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Runway-Version: <x-runway-version>' \
--data '
{
"promptImage": "https://cdn.britannica.com/70/234870-050-D4D024BB/Orange-colored-cat-yawns-displaying-teeth.jpg",
"model": "gen3a_turbo"
}
'{
"id": "d0658ae1-bbdd-4adc-aaba-fd8070e14d79"
}