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": "3d957031-9a2a-45e2-9dc7-bc8513059c50"
}X-Runway-Version 헤더를 전송하세요. 예: 2024-11-06model: gen3a_turbo를 사용하세요promptImage를 제공하세요duration: 5와 1280:720 같은 일반적인 비율로 시작하세요작업 상태 폴링
task_not_exist가 반환되면 몇 초 기다린 뒤 다시 시도하세요.gen3a_turbo 요청이 정상적으로 수락되어 id가 반환된 것이 확인되었습니다. 짧은 지연 후, 공식 task-details와 역방향 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"
}