메인 콘텐츠로 건너뛰기
POST
https://api.apimart.ai
/
v1
/
videos
/
generations
curl --request POST \
  --url https://api.apimart.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "doubao-seedance-1-0-pro-fast",
    "prompt": "햇빛 아래에서 노는 귀여운 새끼 고양이, 푹신한 털, 밝은 눈",
    "duration": 5,
    "aspect_ratio": "16:9",
    "resolution": "720p"
  }'
{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
    }
  ]
}
curl --request POST \
  --url https://api.apimart.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "doubao-seedance-1-0-pro-fast",
    "prompt": "햇빛 아래에서 노는 귀여운 새끼 고양이, 푹신한 털, 밝은 눈",
    "duration": 5,
    "aspect_ratio": "16:9",
    "resolution": "720p"
  }'
{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
    }
  ]
}

인증

Authorization
string
required
모든 API 엔드포인트에는 Bearer Token 인증이 필요합니다API 키 받기:API 키 관리 페이지에서 API 키를 받으세요요청 헤더에 추가:
Authorization: Bearer YOUR_API_KEY

요청 매개변수

model
string
required
비디오 생성 모델 이름지원되는 모델:
  • doubao-seedance-1-0-pro-fast - 빠른 버전, 빠른 생성(40-90초), 미리보기 및 반복에 적합
  • doubao-seedance-1-0-pro-quality - 고품질 버전, 생성 시간이 더 길지만(90-300초), 더 좋은 품질
prompt
string
required
비디오 콘텐츠 설명더 좋은 생성 결과를 위해 장면, 동작, 스타일 등을 자세히 설명하세요예: "해변의 일몰, 바다 위의 황금빛 햇살, 모래사장을 부드럽게 치는 파도"
duration
integer
default:"5"
비디오 길이(초)지원 범위: 2 ~ 12기본값: 5
aspect_ratio
string
default:"16:9"
비디오 종횡비옵션:
  • 16:9 - 가로
  • 9:16 - 세로
  • 1:1 - 정사각형
  • 4:3 - 전통 비율
  • 3:4 - 세로 전통 비율
  • 21:9 - 울트라 와이드
기본값: 16:9
resolution
string
default:"720p"
비디오 해상도옵션:
  • 480p - 표준 화질
  • 720p - HD
  • 1080p - Full HD
기본값: 720p
1080p 제한: 참조 이미지(image_with_rolesrole: reference)를 사용할 때 1080p 해상도는 지원되지 않습니다

해상도 및 종횡비 조합

해상도지원되는 종횡비비고
480p16:9, 4:3, 1:1, 3:4, 9:16, 21:9모두 지원
720p16:9, 4:3, 1:1, 3:4, 9:16, 21:9모두 지원
1080p16:9, 4:3, 1:1, 3:4, 9:16, 21:9참조 이미지 미지원
image_urls
array
이미지-비디오 생성을 위한 첫 프레임 이미지 URL 배열비디오의 시작 프레임을 지정하는 데 사용예: ["https://example.com/cat.png"]
image_urlsimage_with_roles는 함께 사용할 수 없습니다
image_with_roles
array
더 세밀한 제어를 위한 역할이 있는 이미지 배열예:
[
  {"url": "https://example.com/start.png", "role": "first_frame"},
  {"url": "https://example.com/end.png", "role": "last_frame"}
]
image_urlsimage_with_roles는 함께 사용할 수 없습니다

응답

code
integer
응답 상태 코드, 성공 시 200
data
array
응답 데이터 배열

사용 시나리오

시나리오 1: 가로 미리보기 비디오 빠른 생성

{
  "model": "doubao-seedance-1-0-pro-fast",
  "prompt": "해변의 일몰, 바다 위의 황금빛 햇살, 모래사장을 부드럽게 치는 파도"
}

시나리오 2: 고품질 세로 짧은 비디오

{
  "model": "doubao-seedance-1-0-pro-quality",
  "prompt": "벚꽃 나무 아래에서 돌아가는 소녀, 바람에 날리는 꽃잎",
  "duration": 5,
  "aspect_ratio": "9:16",
  "resolution": "1080p"
}

시나리오 3: 제품 동적 전시 비디오

{
  "model": "doubao-seedance-1-0-pro-fast",
  "prompt": "제품이 천천히 회전, 순백색 배경, 부드러운 조명",
  "image_urls": ["https://example.com/product.png"],
  "duration": 5,
  "aspect_ratio": "1:1"
}

시나리오 4: 동적 전환 효과 (첫/마지막 프레임)

{
  "model": "doubao-seedance-1-0-pro-quality",
  "prompt": "장면이 낮에서 밤으로 전환, 도시 불빛이 점차 켜짐",
  "image_with_roles": [
    {"url": "https://example.com/day.png", "role": "first_frame"},
    {"url": "https://example.com/night.png", "role": "last_frame"}
  ],
  "duration": 5
}
작업 결과 쿼리비디오 생성은 비동기 작업으로 제출 시 task_id가 반환됩니다. 작업 상태 가져오기 엔드포인트를 사용하여 생성 진행 상황과 결과를 쿼리하세요.