استخدم CometAPI لاستدعاء Runway image_to_video وتحويل رابط صورة ثابتة إلى مخرجات فيديو خام، مع دعم 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": "3d957031-9a2a-45e2-9dc7-bc8513059c50"
}X-Runway-Version المطلوبة، على سبيل المثال 2024-11-06model: gen3a_turbopromptImage ثابتًا عبر HTTPSduration: 5 ونسبة شائعة مثل 1280:720الاستعلام عن حالة المهمة
task_not_exist، فانتظر بضع ثوانٍ ثم أعد المحاولة.gen3a_turbo بالحد الأدنى وأعاد id. وبعد تأخير قصير، أعادت كل من تفاصيل المهمة الرسمية وfeed العكسي حالة انتظار مغلّفة نفسها لتلك المهمة.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": "3d957031-9a2a-45e2-9dc7-bc8513059c50"
}