비디오 영상 생성 요청시, 가사 전달 하는 항목 삭제, task_id로 직접 검색
This commit is contained in:
1 parent
47da24a12e
commit
c6a2fa6808
2 files changed
+23
-19
No files matched your search
@@ -23,14 +23,13 @@ class GenerateVideoRequest(BaseModel):
|
||||
Request body for generating a video via Creatomate API.
|
||||
|
||||
Note:
|
||||
- music_url과 duration은 task_id로 Song 테이블에서 자동 조회됩니다.
|
||||
- music_url, duration, lyrics(song_prompt)는 task_id로 Song 테이블에서 자동 조회됩니다.
|
||||
- 같은 task_id로 여러 Song이 있을 경우 가장 최근 생성된 것을 사용합니다.
|
||||
|
||||
Example Request:
|
||||
{
|
||||
"orientation": "vertical",
|
||||
"image_urls": ["https://...", "https://..."],
|
||||
"lyrics": "가사 내용..."
|
||||
"image_urls": ["https://...", "https://..."]
|
||||
}
|
||||
"""
|
||||
|
||||
@@ -50,7 +49,6 @@ class GenerateVideoRequest(BaseModel):
|
||||
"https://naverbooking-phinf.pstatic.net/20240514_205/17156880318681JLwX_JPEG/9.jpg",
|
||||
"https://naverbooking-phinf.pstatic.net/20240514_142/1715688031946hhxHz_JPEG/10.jpg",
|
||||
],
|
||||
"lyrics": "인스타 감성의 스테이 머뭄, 머물러봐요\n군산 신흥동 말랭이 마을의 마음 힐링",
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -60,7 +58,6 @@ class GenerateVideoRequest(BaseModel):
|
||||
description="영상 방향 (horizontal: 가로형, vertical: 세로형, 기본값: vertical)",
|
||||
)
|
||||
image_urls: List[str] = Field(..., description="영상에 사용할 이미지 URL 목록")
|
||||
lyrics: str = Field(..., description="영상에 표시할 가사")
|
||||
|
||||
|
||||
# =============================================================================
|
||||
|
||||
Reference in new issue
Block a user