公式フォーマット
画像から動画
CometAPI を使用して Runway の image_to_video を呼び出し、静止画像 URL を生の動画出力に変換します。互換性のための X-Runway-Version にも対応しています。
POST
Create a Runway image-to-video task
このエンドポイントを使用すると、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を使用します- 安定してアクセス可能な HTTPS の
promptImageを指定します duration: 5と、1280:720のような一般的な比率から始めてください
タスクの流れ
タスクのステータスをポーリング
Get Task Details を使用します。最初のポーリングで
task_not_exist が返された場合は、数秒待ってから再試行してください。承認
Bearer token authentication. Use your CometAPI key.
ヘッダー
Runway version header, for example 2024-11-06.
ボディ
application/json
promptImage
string
デフォルト:https://cdn.britannica.com/70/234870-050-D4D024BB/Orange-colored-cat-yawns-displaying-teeth.jpg
必須
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 レスポンス
200 - application/json
Task accepted.