메인 콘텐츠로 건너뛰기
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": "sora-2-preview",
    "prompt": "A majestic waterfall cascading down rocky cliffs, creating a beautiful rainbow in the mist",
    "duration": 8,
    "aspect_ratio": "landscape",
    "image_urls": ["https://example.com/reference-image.jpg"]
  }'
{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01KG1Q38PBV1RJ2C033ZS9RYF7"
    }
  ]
}
curl --request POST \
  --url https://api.apimart.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "sora-2-preview",
    "prompt": "A majestic waterfall cascading down rocky cliffs, creating a beautiful rainbow in the mist",
    "duration": 8,
    "aspect_ratio": "landscape",
    "image_urls": ["https://example.com/reference-image.jpg"]
  }'
{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01KG1Q38PBV1RJ2C033ZS9RYF7"
    }
  ]
}

인증

Authorization
string
필수
모든 인터페이스는 Bearer Token 인증이 필요합니다API Key 받기:API Key 관리 페이지를 방문하여 API Key를 받으세요요청 헤더에 추가:
Authorization: Bearer YOUR_API_KEY

Body

model
string
기본값:"sora-2-preview"
필수
비디오 생성 모델 이름지원되는 모델:
  • sora-2-preview - 스탠다드 버전
  • sora-2-pro-preview - Pro 버전 (더 높은 해상도 지원)
예: "sora-2-preview" 또는 "sora-2-pro-preview"
prompt
string
필수
비디오 생성을 위한 텍스트 설명생성하려는 비디오 콘텐츠를 장면, 동작, 분위기 등을 포함하여 자세히 설명하세요.예: "A majestic waterfall cascading down rocky cliffs, creating a beautiful rainbow in the mist"
duration
integer
기본값:"4"
비디오 길이 (초)다음 길이 값만 지원:
  • 4 - 4초 비디오
  • 8 - 8초 비디오
  • 12 - 12초 비디오
다른 길이 값은 오류를 반환합니다.예: 8
aspect_ratio
string
기본값:"landscape"
비디오 화면 비율지원되는 형식:
  • landscape 또는 16:9 - 가로 (16:9)
  • portrait 또는 9:16 - 세로 (9:16)
square (1:1) 비디오는 지원되지 않습니다.예: "landscape"
resolution
string
기본값:"standard"
비디오 해상도 (sora-2-pro-preview만 지원)지원되는 값:
  • standard - 표준 해상도 (세로 720x1280, 가로 1280x720)
  • high - 고해상도 (세로 1024x1792, 가로 1792x1024)
예: "high"
image_urls
array<url>
이미지-비디오 생성을 위한 참조 이미지 URL 배열중요한 제한: 첫 번째 이미지만 참조로 사용됩니다참조 이미지를 사용하면 API가 이미지의 화면 비율을 자동으로 감지하고 사용자가 제공한 aspect_ratio 매개변수를 덮어씁니다.해결책:
  • 출력 비디오의 화면 비율을 정확하게 제어하려면 참조 이미지를 사용하지 마세요 (순수 텍스트-비디오)
  • 참조 이미지를 사용해야 하는 경우 참조 이미지 자체가 대상 화면 비율인지 확인하세요
예: ["https://example.com/reference-image.jpg"]제한:
  • 최대 파일 크기: 10MB
  • 지원 형식: .jpeg, .jpg, .png, .webp

Response

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

요금

  • 과금 방식: 비디오 길이 (초) 당 과금
  • 구체적인 가격: 요금 페이지를 참조하세요