비디오 영상 생성 요청 버그 픽스
This commit is contained in:
1 parent
d4bce083ab
commit
47da24a12e
2 files changed
+29
-13
No files matched your search
@@ -22,12 +22,15 @@ class GenerateVideoRequest(BaseModel):
|
||||
POST /video/generate/{task_id}
|
||||
Request body for generating a video via Creatomate API.
|
||||
|
||||
Note:
|
||||
- music_url과 duration은 task_id로 Song 테이블에서 자동 조회됩니다.
|
||||
- 같은 task_id로 여러 Song이 있을 경우 가장 최근 생성된 것을 사용합니다.
|
||||
|
||||
Example Request:
|
||||
{
|
||||
"template_id": "abc123...",
|
||||
"orientation": "vertical",
|
||||
"image_urls": ["https://...", "https://..."],
|
||||
"lyrics": "가사 내용...",
|
||||
"music_url": "https://..."
|
||||
"lyrics": "가사 내용..."
|
||||
}
|
||||
"""
|
||||
|
||||
@@ -48,7 +51,6 @@ class GenerateVideoRequest(BaseModel):
|
||||
"https://naverbooking-phinf.pstatic.net/20240514_142/1715688031946hhxHz_JPEG/10.jpg",
|
||||
],
|
||||
"lyrics": "인스타 감성의 스테이 머뭄, 머물러봐요\n군산 신흥동 말랭이 마을의 마음 힐링",
|
||||
"music_url": "https://ado2mediastoragepublic.blob.core.windows.net/ado2-media-public-access/ado2-media-original/0694e2d8-7ae2-730c-8000-308aacaa582d/song/스테이 머뭄.mp3",
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,7 +61,6 @@ class GenerateVideoRequest(BaseModel):
|
||||
)
|
||||
image_urls: List[str] = Field(..., description="영상에 사용할 이미지 URL 목록")
|
||||
lyrics: str = Field(..., description="영상에 표시할 가사")
|
||||
music_url: str = Field(..., description="배경 음악 URL")
|
||||
|
||||
|
||||
# =============================================================================
|
||||
|
||||
Reference in new issue
Block a user