Runway 이미지-투-비디오 작업 생성
CometAPI를 사용해 Runway image_to_video를 호출하고 정지 이미지 URL을 raw 비디오 출력으로 변환하며, 호환성을 위한 X-Runway-Version을 지원합니다.
호출 전 확인 사항
- 필수
X-Runway-Version헤더를 전송하세요. 예:2024-11-06 model: gen3a_turbo를 사용하세요- 안정적인 HTTPS
promptImage를 제공하세요 duration: 5와 선택한 Runway model/version에서 지원되는 ratio 값으로 시작하세요
Duration 및 ratio
size가 아니라 ratio를 사용합니다. 해상도 스타일 ratio 값은 해당 WxH 값으로 이해하세요. 1280:720은 1280x720을, 720:1280은 720x1280을 의미하며, 1280:768도 선택한 model/version에 따라 여전히 1280x720으로 렌더링될 수 있습니다.
작업 흐름
이미지-투-비디오 요청 제출
반환된 id 저장
id를 저장합니다.작업 상태 폴링
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 an available 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. Runway support is model/version dependent; use 5 or 10 for the broadest compatibility. CometAPI forwards this value to Runway.
Requested output ratio. Accepted values are Runway model/version dependent. With X-Runway-Version 2024-11-06, use a resolution-style value accepted by the selected model, such as 1280:768, 768:1280, 1280:720, or 720:1280. Read these as WxH targets, but completed media may normalize, so inspect the returned file before relying on exact pixels.
응답
Task accepted.