Skip to main content
POST
cURL
이 엔드포인트를 사용해 Runway 이미지 생성 작업을 만들 수 있습니다.

사용 참고 사항

  • 필수 X-Runway-Version 헤더를 전송하세요. 예: 2024-11-06
  • model: gen4_image를 사용하세요
  • 이 경로는 최소 하나의 referenceImages 항목이 필요합니다 — 텍스트만 포함한 요청은 reference_images_empty를 반환합니다

작업 흐름

1

생성 요청 제출

promptText, ratio, model, 그리고 최소 하나의 referenceImages 객체를 전송하세요.
2

반환된 id 저장

이 경로는 비동기식이므로 반환된 id를 보관하세요.
3

작업 폴링

Runway 작업 가져오기를 사용하세요. 즉시 폴링했을 때 task_not_exist가 반환되면 몇 초 기다린 후 다시 시도하세요.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

헤더

X-Runway-Version
string
필수

Runway version header, for example 2024-11-06.

본문

application/json
promptText
string
기본값:A paper boat floating on calm water at sunrise.
필수

A non-empty string up to 1000 characters.

ratio
string
기본값:1280:720
필수

Aspect ratio of the output image, e.g. 1280:720.

seed
integer
기본값:1
필수

Random seed for reproducible results.

model
string
기본값:gen4_image
필수

The model variant to use.

referenceImages
object[]
필수

An array of up to three images to be used as references. At least one item is required. referenceImages is required.

contentModeration
object
필수

응답

200 - application/json

Task accepted.

id
string
필수