forked from openai/openai-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvideo.py
More file actions
58 lines (39 loc) · 1.74 KB
/
video.py
File metadata and controls
58 lines (39 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Union, Optional
from typing_extensions import Literal
from .._models import BaseModel
from .video_size import VideoSize
from .video_model import VideoModel
from .video_seconds import VideoSeconds
from .video_create_error import VideoCreateError
__all__ = ["Video"]
class Video(BaseModel):
"""Structured information describing a generated video job."""
id: str
"""Unique identifier for the video job."""
completed_at: Optional[int] = None
"""Unix timestamp (seconds) for when the job completed, if finished."""
created_at: int
"""Unix timestamp (seconds) for when the job was created."""
error: Optional[VideoCreateError] = None
"""Error payload that explains why generation failed, if applicable."""
expires_at: Optional[int] = None
"""Unix timestamp (seconds) for when the downloadable assets expire, if set."""
model: VideoModel
"""The video generation model that produced the job."""
object: Literal["video"]
"""The object type, which is always `video`."""
progress: int
"""Approximate completion percentage for the generation task."""
prompt: Optional[str] = None
"""The prompt that was used to generate the video."""
remixed_from_video_id: Optional[str] = None
"""Identifier of the source video if this video is a remix."""
seconds: Union[str, VideoSeconds]
"""Duration of the generated clip in seconds.
For extensions, this is the stitched total duration.
"""
size: VideoSize
"""The resolution of the generated video."""
status: Literal["queued", "in_progress", "completed", "failed"]
"""Current lifecycle status of the video job."""