메인 콘텐츠로 건너뛰기
POST
/
v1
/
videos
/
{video_id}
/
remix
Create a Sora remix job
curl --request POST \
  --url https://api.cometapi.com/v1/videos/{video_id}/remix \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "Shift the color palette to teal, sand, and rust, with a warm backlight."
}
'
{
  "id": "<string>",
  "object": "<string>",
  "model": "<string>",
  "status": "<string>",
  "progress": 123,
  "created_at": 123,
  "size": "<string>",
  "seconds": "<string>",
  "remixed_from_video_id": "<string>"
}
이 엔드포인트를 사용하면 처음부터 다시 시작하지 않고 완료된 Sora 비디오의 변형을 만들 수 있습니다. 리믹스는 변경 범위를 좁고 명확하게 유지할 때 가장 잘 작동합니다.

좋은 리믹스 프롬프트

  • 전체 장면을 다시 작성하는 대신 하나의 명확한 변경만 요청하세요
  • 조명, 색감, 카메라 움직임 또는 분위기에 대한 참조는 구체적으로 유지하세요
  • 진행 중인 작업이 아니라 완료된 원본 비디오를 시작점으로 사용하세요

리믹스 흐름

1

먼저 기본 렌더링 완료하기

Create Video로 원본 비디오를 만들고 완료될 때까지 기다리세요.
2

리믹스 요청 제출하기

완료된 video_id와 함께 하나의 집중된 변경 사항을 설명하는 프롬프트를 전달하세요.
3

리믹스 폴링 및 다운로드하기

리믹스 응답을 새로운 비동기 작업으로 취급하고, Retrieve Video로 폴링한 다음 Retrieve Video Content로 다운로드하세요.

OpenAI와의 매핑 방식

이 방식은 OpenAI의 문서화된 리믹스 패턴을 따릅니다. CometAPI는 동일한 개념을 유지하면서도 전체 워크플로우에서 CometAPI 기본 URL과 auth 모델을 그대로 사용할 수 있게 해줍니다.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

경로 매개변수

video_id
string
필수

Completed source video id.

본문

application/json
prompt
string
필수

Describe the change you want to make to the existing video.

예시:

"Shift the color palette to teal, sand, and rust, with a warm backlight."

응답

200 - application/json

Remix job accepted.

id
string
필수
object
string
필수
model
string
필수
status
string
필수
progress
integer
필수
created_at
integer
필수
size
string
필수
seconds
string
필수
remixed_from_video_id
string
필수