메인 콘텐츠로 건너뛰기
POST
Create video
모델에 액세스할 수 있고 예상 비용을 충당할 잔액이 있는 운영 환경의 DGrid Model API Key를 사용하세요. 아래 매개변수는 Seedance 2.5에 적용됩니다. 인증 설정과 전체 절차는 동영상 생성 가이드를 참조하세요.

Seedance 2.5 요청 매개변수

다음 예제를 request.json으로 저장하세요.
Bearer 토큰으로 인증하고 본문을 application/json으로 보내세요. 새 작업마다 고유한 Idempotency-Key를 설정하세요. 요청을 제출하면 비용이 발생할 수 있습니다.
HTTP 202는 DGrid가 작업을 접수하고 예상 비용을 잔액에서 확보했음을 의미합니다. 작업을 조회할 때 사용할 id를 저장하세요. 아래 응답은 예시입니다.

참고 미디어

BytePlus Seedance 채널에서는 content 배열에 텍스트 프롬프트와 함께 미디어 항목을 추가할 수 있습니다. 업로드에서 받은 전체 HTTPS URL이나 서버에서 액세스할 수 있는 HTTPS 링크를 사용하세요. 외부 동영상에는 HTTP Range를 지원하며 재생 시간을 읽을 수 있는 MP4 직접 링크가 필요합니다.
동일한 사용자가 DGrid를 통해 검토를 요청한 자료가 Active가 되면 image_url.url에 asset://<IMAGE_ASSET_ID>를, video_url.url에 asset://<VIDEO_ASSET_ID>를 사용할 수 있습니다. DGrid는 예상 비용을 확보하기 전과 생성 요청을 공급자에게 제출하기 전에 공식 검토 상태를 확인합니다. 서명된 업로드 링크가 만료되어도 Active 상태이면 참조할 수 있습니다. 모델의 입력 및 콘텐츠 요구 사항은 계속 적용됩니다. 참고 자료 업로드를 참조하세요.

멱등성 및 오류

작업 ID를 받기 전에 생성 요청 시간이 초과되거나 일시적인 503이 발생하면 동일한 API Key, 멱등성 키, 요청 본문으로 다시 시도하세요. 서명된 URL 등 본문을 바꾸면 충돌이 발생할 수 있습니다. 접수 여부가 불확실하면 새 작업을 제출하기 전에 기존 요청을 확인하거나 복구하세요. 작업 ID가 있으면 해당 작업을 조회하세요. HTTP 상태를 먼저 확인하세요. 오류 세부 정보는 error 문자열이나 error.code 필드에 표시될 수 있습니다. 게이트웨이 오류의 본문 형식은 JSON과 다를 수 있습니다.

인증

Authorization
string
header
필수

Your DGrid API key. All endpoints use Authorization: Bearer <DGRID_API_KEY>.

헤더

Idempotency-Key
string

Use a unique key for a new task. Reuse that key with the same request body if you retry.

본문

application/json
model
string
필수

Video model ID. The documented request format applies to Seedance 2.5.

예시:

"bytedance/seedance-2.5"

content
object[]
필수

Text prompt and optional reference media.

duration
integer
필수

Duration in seconds. The maximum depends on the supported input combination.

필수 범위: 1 <= x <= 30
예시:

5

resolution
string
필수

Output resolution. Available settings depend on the model and channel.

예시:

"720p"

ratio
string

Output aspect ratio.

예시:

"16:9"

generate_audio
boolean

Whether to generate audio.

watermark
boolean

Whether to include a watermark.

seed
integer

Seed value.

응답

Video task accepted.

id
string<uuid>

DGrid video task ID.

model
string

Model used for the task.

status
string

Video task status.

settlement_status
string

Billing settlement status.

estimated_amount
string

Estimated cost in USD as a decimal string.

created_at
string<date-time>

Task creation timestamp.