Enhance video generation API: add polling URL, video URLs, and error handling; implement polling status endpoint with tests

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-27 19:05:20 +02:00
parent 4edadd7623
commit 3b807c0f75
4 changed files with 99 additions and 15 deletions
+5 -2
View File
@@ -87,6 +87,9 @@ class VideoFromImageRequest(BaseModel):
class VideoResponse(BaseModel):
id: str
model: str
status: str # "queued" | "processing" | "completed"
video_url: str | None = None
status: str # "queued" | "processing" | "completed" | "failed"
polling_url: str | None = None
video_urls: list[str] | None = None
video_url: str | None = None # first entry of video_urls for convenience
error: str | None = None
metadata: dict[str, Any] | None = None