magic_hour 0.10.0__py3-none-any.whl → 0.12.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of magic_hour might be problematic. Click here for more details.
- magic_hour/environment.py +1 -1
- magic_hour/resources/v1/ai_clothes_changer/client.py +8 -8
- magic_hour/resources/v1/ai_headshot_generator/client.py +12 -12
- magic_hour/resources/v1/ai_image_generator/client.py +10 -10
- magic_hour/resources/v1/ai_image_upscaler/client.py +12 -12
- magic_hour/resources/v1/ai_photo_editor/client.py +12 -12
- magic_hour/resources/v1/ai_qr_code_generator/client.py +10 -10
- magic_hour/resources/v1/ai_talking_photo/README.md +43 -0
- magic_hour/resources/v1/ai_talking_photo/__init__.py +4 -0
- magic_hour/resources/v1/ai_talking_photo/client.py +147 -0
- magic_hour/resources/v1/animation/client.py +10 -10
- magic_hour/resources/v1/client.py +6 -0
- magic_hour/resources/v1/face_swap/client.py +8 -8
- magic_hour/resources/v1/face_swap_photo/client.py +8 -8
- magic_hour/resources/v1/files/upload_urls/README.md +4 -4
- magic_hour/resources/v1/files/upload_urls/client.py +14 -12
- magic_hour/resources/v1/image_background_remover/client.py +8 -8
- magic_hour/resources/v1/image_projects/client.py +4 -4
- magic_hour/resources/v1/image_to_video/client.py +12 -12
- magic_hour/resources/v1/lip_sync/client.py +8 -8
- magic_hour/resources/v1/text_to_video/client.py +10 -10
- magic_hour/resources/v1/video_projects/client.py +4 -4
- magic_hour/resources/v1/video_to_video/client.py +12 -12
- magic_hour/types/models/__init__.py +53 -51
- magic_hour/types/models/{post_v1_ai_clothes_changer_response.py → v1_ai_clothes_changer_create_response.py} +1 -1
- magic_hour/types/models/v1_ai_headshot_generator_create_response.py +25 -0
- magic_hour/types/models/{post_v1_ai_photo_editor_response.py → v1_ai_image_generator_create_response.py} +1 -1
- magic_hour/types/models/{post_v1_ai_image_generator_response.py → v1_ai_image_upscaler_create_response.py} +1 -1
- magic_hour/types/models/{post_v1_face_swap_photo_response.py → v1_ai_photo_editor_create_response.py} +1 -1
- magic_hour/types/models/{post_v1_ai_headshot_generator_response.py → v1_ai_qr_code_generator_create_response.py} +1 -1
- magic_hour/types/models/v1_ai_talking_photo_create_response.py +25 -0
- magic_hour/types/models/{post_v1_text_to_video_response.py → v1_animation_create_response.py} +1 -1
- magic_hour/types/models/{post_v1_face_swap_response.py → v1_face_swap_create_response.py} +1 -1
- magic_hour/types/models/{post_v1_ai_image_upscaler_response.py → v1_face_swap_photo_create_response.py} +1 -1
- magic_hour/types/models/v1_files_upload_urls_create_response.py +21 -0
- magic_hour/types/models/{post_v1_files_upload_urls_response_items_item.py → v1_files_upload_urls_create_response_items_item.py} +2 -2
- magic_hour/types/models/v1_image_background_remover_create_response.py +25 -0
- magic_hour/types/models/{get_v1_image_projects_id_response.py → v1_image_projects_get_response.py} +7 -7
- magic_hour/types/models/{get_v1_image_projects_id_response_downloads_item.py → v1_image_projects_get_response_downloads_item.py} +1 -1
- magic_hour/types/models/{get_v1_video_projects_id_response_error.py → v1_image_projects_get_response_error.py} +2 -2
- magic_hour/types/models/{post_v1_lip_sync_response.py → v1_image_to_video_create_response.py} +1 -1
- magic_hour/types/models/{post_v1_animation_response.py → v1_lip_sync_create_response.py} +1 -1
- magic_hour/types/models/{post_v1_image_to_video_response.py → v1_text_to_video_create_response.py} +1 -1
- magic_hour/types/models/{get_v1_video_projects_id_response.py → v1_video_projects_get_response.py} +10 -11
- magic_hour/types/models/{get_v1_video_projects_id_response_download.py → v1_video_projects_get_response_download.py} +1 -1
- magic_hour/types/models/{get_v1_video_projects_id_response_downloads_item.py → v1_video_projects_get_response_downloads_item.py} +1 -1
- magic_hour/types/models/{get_v1_image_projects_id_response_error.py → v1_video_projects_get_response_error.py} +2 -2
- magic_hour/types/models/v1_video_to_video_create_response.py +25 -0
- magic_hour/types/params/__init__.py +200 -182
- magic_hour/types/params/v1_ai_clothes_changer_create_body.py +40 -0
- magic_hour/types/params/{post_v1_ai_clothes_changer_body_assets.py → v1_ai_clothes_changer_create_body_assets.py} +3 -3
- magic_hour/types/params/v1_ai_headshot_generator_create_body.py +49 -0
- magic_hour/types/params/{post_v1_ai_headshot_generator_body_assets.py → v1_ai_headshot_generator_create_body_assets.py} +3 -3
- magic_hour/types/params/{post_v1_ai_headshot_generator_body_style.py → v1_ai_headshot_generator_create_body_style.py} +4 -4
- magic_hour/types/params/{post_v1_ai_image_generator_body.py → v1_ai_image_generator_create_body.py} +9 -9
- magic_hour/types/params/{post_v1_ai_image_generator_body_style.py → v1_ai_image_generator_create_body_style.py} +4 -4
- magic_hour/types/params/v1_ai_image_upscaler_create_body.py +57 -0
- magic_hour/types/params/{post_v1_ai_image_upscaler_body_assets.py → v1_ai_image_upscaler_create_body_assets.py} +3 -3
- magic_hour/types/params/{post_v1_ai_image_upscaler_body_style.py → v1_ai_image_upscaler_create_body_style.py} +4 -4
- magic_hour/types/params/{post_v1_ai_photo_editor_body.py → v1_ai_photo_editor_create_body.py} +14 -14
- magic_hour/types/params/{post_v1_ai_photo_editor_body_assets.py → v1_ai_photo_editor_create_body_assets.py} +3 -3
- magic_hour/types/params/{post_v1_ai_photo_editor_body_style.py → v1_ai_photo_editor_create_body_style.py} +4 -4
- magic_hour/types/params/{post_v1_ai_qr_code_generator_body.py → v1_ai_qr_code_generator_create_body.py} +9 -9
- magic_hour/types/params/{post_v1_ai_qr_code_generator_body_style.py → v1_ai_qr_code_generator_create_body_style.py} +4 -4
- magic_hour/types/params/v1_ai_talking_photo_create_body.py +56 -0
- magic_hour/types/params/v1_ai_talking_photo_create_body_assets.py +36 -0
- magic_hour/types/params/{post_v1_animation_body.py → v1_animation_create_body.py} +14 -14
- magic_hour/types/params/{post_v1_animation_body_assets.py → v1_animation_create_body_assets.py} +3 -3
- magic_hour/types/params/{post_v1_animation_body_style.py → v1_animation_create_body_style.py} +3 -3
- magic_hour/types/params/{post_v1_face_swap_body.py → v1_face_swap_create_body.py} +9 -9
- magic_hour/types/params/{post_v1_face_swap_body_assets.py → v1_face_swap_create_body_assets.py} +3 -3
- magic_hour/types/params/v1_face_swap_photo_create_body.py +40 -0
- magic_hour/types/params/{post_v1_face_swap_photo_body_assets.py → v1_face_swap_photo_create_body_assets.py} +3 -3
- magic_hour/types/params/v1_files_upload_urls_create_body.py +33 -0
- magic_hour/types/params/{post_v1_files_upload_urls_body_items_item.py → v1_files_upload_urls_create_body_items_item.py} +6 -6
- magic_hour/types/params/v1_image_background_remover_create_body.py +40 -0
- magic_hour/types/params/{post_v1_image_background_remover_body_assets.py → v1_image_background_remover_create_body_assets.py} +3 -3
- magic_hour/types/params/{post_v1_image_to_video_body.py → v1_image_to_video_create_body.py} +14 -14
- magic_hour/types/params/{post_v1_image_to_video_body_assets.py → v1_image_to_video_create_body_assets.py} +3 -3
- magic_hour/types/params/{post_v1_image_to_video_body_style.py → v1_image_to_video_create_body_style.py} +4 -4
- magic_hour/types/params/{post_v1_lip_sync_body.py → v1_lip_sync_create_body.py} +9 -9
- magic_hour/types/params/{post_v1_lip_sync_body_assets.py → v1_lip_sync_create_body_assets.py} +3 -3
- magic_hour/types/params/{post_v1_text_to_video_body.py → v1_text_to_video_create_body.py} +9 -9
- magic_hour/types/params/{post_v1_text_to_video_body_style.py → v1_text_to_video_create_body_style.py} +4 -4
- magic_hour/types/params/{post_v1_video_to_video_body.py → v1_video_to_video_create_body.py} +14 -14
- magic_hour/types/params/{post_v1_video_to_video_body_assets.py → v1_video_to_video_create_body_assets.py} +3 -3
- magic_hour/types/params/{post_v1_video_to_video_body_style.py → v1_video_to_video_create_body_style.py} +14 -4
- {magic_hour-0.10.0.dist-info → magic_hour-0.12.0.dist-info}/METADATA +5 -1
- magic_hour-0.12.0.dist-info/RECORD +139 -0
- magic_hour/types/models/post_v1_ai_qr_code_generator_response.py +0 -25
- magic_hour/types/models/post_v1_files_upload_urls_response.py +0 -21
- magic_hour/types/models/post_v1_image_background_remover_response.py +0 -25
- magic_hour/types/models/post_v1_video_to_video_response.py +0 -25
- magic_hour/types/params/post_v1_ai_clothes_changer_body.py +0 -40
- magic_hour/types/params/post_v1_ai_headshot_generator_body.py +0 -49
- magic_hour/types/params/post_v1_ai_image_upscaler_body.py +0 -57
- magic_hour/types/params/post_v1_face_swap_photo_body.py +0 -40
- magic_hour/types/params/post_v1_files_upload_urls_body.py +0 -31
- magic_hour/types/params/post_v1_image_background_remover_body.py +0 -40
- magic_hour-0.10.0.dist-info/RECORD +0 -133
- {magic_hour-0.10.0.dist-info → magic_hour-0.12.0.dist-info}/LICENSE +0 -0
- {magic_hour-0.10.0.dist-info → magic_hour-0.12.0.dist-info}/WHEEL +0 -0
magic_hour/types/models/{get_v1_video_projects_id_response.py → v1_video_projects_get_response.py}
RENAMED
|
@@ -2,16 +2,14 @@ import pydantic
|
|
|
2
2
|
import typing
|
|
3
3
|
import typing_extensions
|
|
4
4
|
|
|
5
|
-
from .
|
|
6
|
-
|
|
5
|
+
from .v1_video_projects_get_response_download import V1VideoProjectsGetResponseDownload
|
|
6
|
+
from .v1_video_projects_get_response_downloads_item import (
|
|
7
|
+
V1VideoProjectsGetResponseDownloadsItem,
|
|
7
8
|
)
|
|
8
|
-
from .
|
|
9
|
-
GetV1VideoProjectsIdResponseDownloadsItem,
|
|
10
|
-
)
|
|
11
|
-
from .get_v1_video_projects_id_response_error import GetV1VideoProjectsIdResponseError
|
|
9
|
+
from .v1_video_projects_get_response_error import V1VideoProjectsGetResponseError
|
|
12
10
|
|
|
13
11
|
|
|
14
|
-
class
|
|
12
|
+
class V1VideoProjectsGetResponse(pydantic.BaseModel):
|
|
15
13
|
"""
|
|
16
14
|
Success
|
|
17
15
|
"""
|
|
@@ -24,13 +22,13 @@ class GetV1VideoProjectsIdResponse(pydantic.BaseModel):
|
|
|
24
22
|
created_at: str = pydantic.Field(
|
|
25
23
|
alias="created_at",
|
|
26
24
|
)
|
|
27
|
-
download: typing.Optional[
|
|
25
|
+
download: typing.Optional[V1VideoProjectsGetResponseDownload] = pydantic.Field(
|
|
28
26
|
alias="download",
|
|
29
27
|
)
|
|
30
28
|
"""
|
|
31
29
|
Deprecated: Please use `.downloads` instead. The download url and expiration date of the video project
|
|
32
30
|
"""
|
|
33
|
-
downloads: typing.List[
|
|
31
|
+
downloads: typing.List[V1VideoProjectsGetResponseDownloadsItem] = pydantic.Field(
|
|
34
32
|
alias="downloads",
|
|
35
33
|
)
|
|
36
34
|
enabled: bool = pydantic.Field(
|
|
@@ -45,7 +43,7 @@ class GetV1VideoProjectsIdResponse(pydantic.BaseModel):
|
|
|
45
43
|
"""
|
|
46
44
|
The end time of the input video in seconds
|
|
47
45
|
"""
|
|
48
|
-
error: typing.Optional[
|
|
46
|
+
error: typing.Optional[V1VideoProjectsGetResponseError] = pydantic.Field(
|
|
49
47
|
alias="error",
|
|
50
48
|
)
|
|
51
49
|
"""
|
|
@@ -95,12 +93,13 @@ class GetV1VideoProjectsIdResponse(pydantic.BaseModel):
|
|
|
95
93
|
"""
|
|
96
94
|
The amount of frames used to generate the video. If the status is not 'complete', the cost is an estimate and will be adjusted when the video completes.
|
|
97
95
|
"""
|
|
98
|
-
|
|
96
|
+
type_: typing_extensions.Literal[
|
|
99
97
|
"ANIMATION",
|
|
100
98
|
"AUTO_SUBTITLE",
|
|
101
99
|
"FACE_SWAP",
|
|
102
100
|
"IMAGE_TO_VIDEO",
|
|
103
101
|
"LIP_SYNC",
|
|
102
|
+
"TALKING_PHOTO",
|
|
104
103
|
"TEXT_TO_VIDEO",
|
|
105
104
|
"VIDEO_TO_VIDEO",
|
|
106
105
|
] = pydantic.Field(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import pydantic
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
class
|
|
4
|
+
class V1VideoProjectsGetResponseDownload(pydantic.BaseModel):
|
|
5
5
|
"""
|
|
6
6
|
Deprecated: Please use `.downloads` instead. The download url and expiration date of the video project
|
|
7
7
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import pydantic
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
class
|
|
4
|
+
class V1VideoProjectsGetResponseError(pydantic.BaseModel):
|
|
5
5
|
"""
|
|
6
6
|
In the case of an error, this object will contain the error encountered during video render
|
|
7
7
|
"""
|
|
@@ -11,7 +11,7 @@ class GetV1ImageProjectsIdResponseError(pydantic.BaseModel):
|
|
|
11
11
|
populate_by_name=True,
|
|
12
12
|
)
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
code: str = pydantic.Field(
|
|
15
15
|
alias="code",
|
|
16
16
|
)
|
|
17
17
|
"""
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import pydantic
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class V1VideoToVideoCreateResponse(pydantic.BaseModel):
|
|
5
|
+
"""
|
|
6
|
+
Success
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
model_config = pydantic.ConfigDict(
|
|
10
|
+
arbitrary_types_allowed=True,
|
|
11
|
+
populate_by_name=True,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
estimated_frame_cost: int = pydantic.Field(
|
|
15
|
+
alias="estimated_frame_cost",
|
|
16
|
+
)
|
|
17
|
+
"""
|
|
18
|
+
Estimated cost of the video in terms of number of frames needed to render the video. Frames will be adjusted when the video completes
|
|
19
|
+
"""
|
|
20
|
+
id: str = pydantic.Field(
|
|
21
|
+
alias="id",
|
|
22
|
+
)
|
|
23
|
+
"""
|
|
24
|
+
Unique ID of the video. This value can be used in the [get video project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch additional details such as status
|
|
25
|
+
"""
|
|
@@ -1,211 +1,229 @@
|
|
|
1
|
-
from .
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
)
|
|
5
|
-
from .post_v1_ai_clothes_changer_body_assets import (
|
|
6
|
-
PostV1AiClothesChangerBodyAssets,
|
|
7
|
-
_SerializerPostV1AiClothesChangerBodyAssets,
|
|
8
|
-
)
|
|
9
|
-
from .post_v1_ai_headshot_generator_body import (
|
|
10
|
-
PostV1AiHeadshotGeneratorBody,
|
|
11
|
-
_SerializerPostV1AiHeadshotGeneratorBody,
|
|
12
|
-
)
|
|
13
|
-
from .post_v1_ai_headshot_generator_body_assets import (
|
|
14
|
-
PostV1AiHeadshotGeneratorBodyAssets,
|
|
15
|
-
_SerializerPostV1AiHeadshotGeneratorBodyAssets,
|
|
16
|
-
)
|
|
17
|
-
from .post_v1_ai_headshot_generator_body_style import (
|
|
18
|
-
PostV1AiHeadshotGeneratorBodyStyle,
|
|
19
|
-
_SerializerPostV1AiHeadshotGeneratorBodyStyle,
|
|
20
|
-
)
|
|
21
|
-
from .post_v1_ai_image_generator_body import (
|
|
22
|
-
PostV1AiImageGeneratorBody,
|
|
23
|
-
_SerializerPostV1AiImageGeneratorBody,
|
|
24
|
-
)
|
|
25
|
-
from .post_v1_ai_image_generator_body_style import (
|
|
26
|
-
PostV1AiImageGeneratorBodyStyle,
|
|
27
|
-
_SerializerPostV1AiImageGeneratorBodyStyle,
|
|
28
|
-
)
|
|
29
|
-
from .post_v1_ai_image_upscaler_body import (
|
|
30
|
-
PostV1AiImageUpscalerBody,
|
|
31
|
-
_SerializerPostV1AiImageUpscalerBody,
|
|
32
|
-
)
|
|
33
|
-
from .post_v1_ai_image_upscaler_body_assets import (
|
|
34
|
-
PostV1AiImageUpscalerBodyAssets,
|
|
35
|
-
_SerializerPostV1AiImageUpscalerBodyAssets,
|
|
1
|
+
from .v1_ai_clothes_changer_create_body import (
|
|
2
|
+
V1AiClothesChangerCreateBody,
|
|
3
|
+
_SerializerV1AiClothesChangerCreateBody,
|
|
36
4
|
)
|
|
37
|
-
from .
|
|
38
|
-
|
|
39
|
-
|
|
5
|
+
from .v1_ai_clothes_changer_create_body_assets import (
|
|
6
|
+
V1AiClothesChangerCreateBodyAssets,
|
|
7
|
+
_SerializerV1AiClothesChangerCreateBodyAssets,
|
|
40
8
|
)
|
|
41
|
-
from .
|
|
42
|
-
|
|
43
|
-
|
|
9
|
+
from .v1_ai_headshot_generator_create_body import (
|
|
10
|
+
V1AiHeadshotGeneratorCreateBody,
|
|
11
|
+
_SerializerV1AiHeadshotGeneratorCreateBody,
|
|
44
12
|
)
|
|
45
|
-
from .
|
|
46
|
-
|
|
47
|
-
|
|
13
|
+
from .v1_ai_headshot_generator_create_body_assets import (
|
|
14
|
+
V1AiHeadshotGeneratorCreateBodyAssets,
|
|
15
|
+
_SerializerV1AiHeadshotGeneratorCreateBodyAssets,
|
|
48
16
|
)
|
|
49
|
-
from .
|
|
50
|
-
|
|
51
|
-
|
|
17
|
+
from .v1_ai_headshot_generator_create_body_style import (
|
|
18
|
+
V1AiHeadshotGeneratorCreateBodyStyle,
|
|
19
|
+
_SerializerV1AiHeadshotGeneratorCreateBodyStyle,
|
|
52
20
|
)
|
|
53
|
-
from .
|
|
54
|
-
|
|
55
|
-
|
|
21
|
+
from .v1_ai_image_generator_create_body import (
|
|
22
|
+
V1AiImageGeneratorCreateBody,
|
|
23
|
+
_SerializerV1AiImageGeneratorCreateBody,
|
|
56
24
|
)
|
|
57
|
-
from .
|
|
58
|
-
|
|
59
|
-
|
|
25
|
+
from .v1_ai_image_generator_create_body_style import (
|
|
26
|
+
V1AiImageGeneratorCreateBodyStyle,
|
|
27
|
+
_SerializerV1AiImageGeneratorCreateBodyStyle,
|
|
28
|
+
)
|
|
29
|
+
from .v1_ai_image_upscaler_create_body import (
|
|
30
|
+
V1AiImageUpscalerCreateBody,
|
|
31
|
+
_SerializerV1AiImageUpscalerCreateBody,
|
|
32
|
+
)
|
|
33
|
+
from .v1_ai_image_upscaler_create_body_assets import (
|
|
34
|
+
V1AiImageUpscalerCreateBodyAssets,
|
|
35
|
+
_SerializerV1AiImageUpscalerCreateBodyAssets,
|
|
36
|
+
)
|
|
37
|
+
from .v1_ai_image_upscaler_create_body_style import (
|
|
38
|
+
V1AiImageUpscalerCreateBodyStyle,
|
|
39
|
+
_SerializerV1AiImageUpscalerCreateBodyStyle,
|
|
40
|
+
)
|
|
41
|
+
from .v1_ai_photo_editor_create_body import (
|
|
42
|
+
V1AiPhotoEditorCreateBody,
|
|
43
|
+
_SerializerV1AiPhotoEditorCreateBody,
|
|
44
|
+
)
|
|
45
|
+
from .v1_ai_photo_editor_create_body_assets import (
|
|
46
|
+
V1AiPhotoEditorCreateBodyAssets,
|
|
47
|
+
_SerializerV1AiPhotoEditorCreateBodyAssets,
|
|
48
|
+
)
|
|
49
|
+
from .v1_ai_photo_editor_create_body_style import (
|
|
50
|
+
V1AiPhotoEditorCreateBodyStyle,
|
|
51
|
+
_SerializerV1AiPhotoEditorCreateBodyStyle,
|
|
60
52
|
)
|
|
61
|
-
from .
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
_SerializerPostV1AnimationBodyAssets,
|
|
53
|
+
from .v1_ai_qr_code_generator_create_body import (
|
|
54
|
+
V1AiQrCodeGeneratorCreateBody,
|
|
55
|
+
_SerializerV1AiQrCodeGeneratorCreateBody,
|
|
65
56
|
)
|
|
66
|
-
from .
|
|
67
|
-
|
|
68
|
-
|
|
57
|
+
from .v1_ai_qr_code_generator_create_body_style import (
|
|
58
|
+
V1AiQrCodeGeneratorCreateBodyStyle,
|
|
59
|
+
_SerializerV1AiQrCodeGeneratorCreateBodyStyle,
|
|
69
60
|
)
|
|
70
|
-
from .
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
_SerializerPostV1FaceSwapBodyAssets,
|
|
61
|
+
from .v1_ai_talking_photo_create_body import (
|
|
62
|
+
V1AiTalkingPhotoCreateBody,
|
|
63
|
+
_SerializerV1AiTalkingPhotoCreateBody,
|
|
74
64
|
)
|
|
75
|
-
from .
|
|
76
|
-
|
|
77
|
-
|
|
65
|
+
from .v1_ai_talking_photo_create_body_assets import (
|
|
66
|
+
V1AiTalkingPhotoCreateBodyAssets,
|
|
67
|
+
_SerializerV1AiTalkingPhotoCreateBodyAssets,
|
|
78
68
|
)
|
|
79
|
-
from .
|
|
80
|
-
|
|
81
|
-
|
|
69
|
+
from .v1_animation_create_body import (
|
|
70
|
+
V1AnimationCreateBody,
|
|
71
|
+
_SerializerV1AnimationCreateBody,
|
|
82
72
|
)
|
|
83
|
-
from .
|
|
84
|
-
|
|
85
|
-
|
|
73
|
+
from .v1_animation_create_body_assets import (
|
|
74
|
+
V1AnimationCreateBodyAssets,
|
|
75
|
+
_SerializerV1AnimationCreateBodyAssets,
|
|
86
76
|
)
|
|
87
|
-
from .
|
|
88
|
-
|
|
89
|
-
|
|
77
|
+
from .v1_animation_create_body_style import (
|
|
78
|
+
V1AnimationCreateBodyStyle,
|
|
79
|
+
_SerializerV1AnimationCreateBodyStyle,
|
|
90
80
|
)
|
|
91
|
-
from .
|
|
92
|
-
|
|
93
|
-
|
|
81
|
+
from .v1_face_swap_create_body import (
|
|
82
|
+
V1FaceSwapCreateBody,
|
|
83
|
+
_SerializerV1FaceSwapCreateBody,
|
|
94
84
|
)
|
|
95
|
-
from .
|
|
96
|
-
|
|
97
|
-
|
|
85
|
+
from .v1_face_swap_create_body_assets import (
|
|
86
|
+
V1FaceSwapCreateBodyAssets,
|
|
87
|
+
_SerializerV1FaceSwapCreateBodyAssets,
|
|
98
88
|
)
|
|
99
|
-
from .
|
|
100
|
-
|
|
101
|
-
|
|
89
|
+
from .v1_face_swap_photo_create_body import (
|
|
90
|
+
V1FaceSwapPhotoCreateBody,
|
|
91
|
+
_SerializerV1FaceSwapPhotoCreateBody,
|
|
102
92
|
)
|
|
103
|
-
from .
|
|
104
|
-
|
|
105
|
-
|
|
93
|
+
from .v1_face_swap_photo_create_body_assets import (
|
|
94
|
+
V1FaceSwapPhotoCreateBodyAssets,
|
|
95
|
+
_SerializerV1FaceSwapPhotoCreateBodyAssets,
|
|
106
96
|
)
|
|
107
|
-
from .
|
|
108
|
-
|
|
109
|
-
|
|
97
|
+
from .v1_files_upload_urls_create_body import (
|
|
98
|
+
V1FilesUploadUrlsCreateBody,
|
|
99
|
+
_SerializerV1FilesUploadUrlsCreateBody,
|
|
110
100
|
)
|
|
111
|
-
from .
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
_SerializerPostV1LipSyncBodyAssets,
|
|
101
|
+
from .v1_files_upload_urls_create_body_items_item import (
|
|
102
|
+
V1FilesUploadUrlsCreateBodyItemsItem,
|
|
103
|
+
_SerializerV1FilesUploadUrlsCreateBodyItemsItem,
|
|
115
104
|
)
|
|
116
|
-
from .
|
|
117
|
-
|
|
118
|
-
|
|
105
|
+
from .v1_image_background_remover_create_body import (
|
|
106
|
+
V1ImageBackgroundRemoverCreateBody,
|
|
107
|
+
_SerializerV1ImageBackgroundRemoverCreateBody,
|
|
119
108
|
)
|
|
120
|
-
from .
|
|
121
|
-
|
|
122
|
-
|
|
109
|
+
from .v1_image_background_remover_create_body_assets import (
|
|
110
|
+
V1ImageBackgroundRemoverCreateBodyAssets,
|
|
111
|
+
_SerializerV1ImageBackgroundRemoverCreateBodyAssets,
|
|
123
112
|
)
|
|
124
|
-
from .
|
|
125
|
-
|
|
126
|
-
|
|
113
|
+
from .v1_image_to_video_create_body import (
|
|
114
|
+
V1ImageToVideoCreateBody,
|
|
115
|
+
_SerializerV1ImageToVideoCreateBody,
|
|
127
116
|
)
|
|
128
|
-
from .
|
|
129
|
-
|
|
130
|
-
|
|
117
|
+
from .v1_image_to_video_create_body_assets import (
|
|
118
|
+
V1ImageToVideoCreateBodyAssets,
|
|
119
|
+
_SerializerV1ImageToVideoCreateBodyAssets,
|
|
131
120
|
)
|
|
132
|
-
from .
|
|
133
|
-
|
|
134
|
-
|
|
121
|
+
from .v1_image_to_video_create_body_style import (
|
|
122
|
+
V1ImageToVideoCreateBodyStyle,
|
|
123
|
+
_SerializerV1ImageToVideoCreateBodyStyle,
|
|
124
|
+
)
|
|
125
|
+
from .v1_lip_sync_create_body import V1LipSyncCreateBody, _SerializerV1LipSyncCreateBody
|
|
126
|
+
from .v1_lip_sync_create_body_assets import (
|
|
127
|
+
V1LipSyncCreateBodyAssets,
|
|
128
|
+
_SerializerV1LipSyncCreateBodyAssets,
|
|
129
|
+
)
|
|
130
|
+
from .v1_text_to_video_create_body import (
|
|
131
|
+
V1TextToVideoCreateBody,
|
|
132
|
+
_SerializerV1TextToVideoCreateBody,
|
|
133
|
+
)
|
|
134
|
+
from .v1_text_to_video_create_body_style import (
|
|
135
|
+
V1TextToVideoCreateBodyStyle,
|
|
136
|
+
_SerializerV1TextToVideoCreateBodyStyle,
|
|
137
|
+
)
|
|
138
|
+
from .v1_video_to_video_create_body import (
|
|
139
|
+
V1VideoToVideoCreateBody,
|
|
140
|
+
_SerializerV1VideoToVideoCreateBody,
|
|
141
|
+
)
|
|
142
|
+
from .v1_video_to_video_create_body_assets import (
|
|
143
|
+
V1VideoToVideoCreateBodyAssets,
|
|
144
|
+
_SerializerV1VideoToVideoCreateBodyAssets,
|
|
145
|
+
)
|
|
146
|
+
from .v1_video_to_video_create_body_style import (
|
|
147
|
+
V1VideoToVideoCreateBodyStyle,
|
|
148
|
+
_SerializerV1VideoToVideoCreateBodyStyle,
|
|
135
149
|
)
|
|
136
150
|
|
|
137
151
|
|
|
138
152
|
__all__ = [
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"
|
|
153
|
+
"V1AiClothesChangerCreateBody",
|
|
154
|
+
"V1AiClothesChangerCreateBodyAssets",
|
|
155
|
+
"V1AiHeadshotGeneratorCreateBody",
|
|
156
|
+
"V1AiHeadshotGeneratorCreateBodyAssets",
|
|
157
|
+
"V1AiHeadshotGeneratorCreateBodyStyle",
|
|
158
|
+
"V1AiImageGeneratorCreateBody",
|
|
159
|
+
"V1AiImageGeneratorCreateBodyStyle",
|
|
160
|
+
"V1AiImageUpscalerCreateBody",
|
|
161
|
+
"V1AiImageUpscalerCreateBodyAssets",
|
|
162
|
+
"V1AiImageUpscalerCreateBodyStyle",
|
|
163
|
+
"V1AiPhotoEditorCreateBody",
|
|
164
|
+
"V1AiPhotoEditorCreateBodyAssets",
|
|
165
|
+
"V1AiPhotoEditorCreateBodyStyle",
|
|
166
|
+
"V1AiQrCodeGeneratorCreateBody",
|
|
167
|
+
"V1AiQrCodeGeneratorCreateBodyStyle",
|
|
168
|
+
"V1AiTalkingPhotoCreateBody",
|
|
169
|
+
"V1AiTalkingPhotoCreateBodyAssets",
|
|
170
|
+
"V1AnimationCreateBody",
|
|
171
|
+
"V1AnimationCreateBodyAssets",
|
|
172
|
+
"V1AnimationCreateBodyStyle",
|
|
173
|
+
"V1FaceSwapCreateBody",
|
|
174
|
+
"V1FaceSwapCreateBodyAssets",
|
|
175
|
+
"V1FaceSwapPhotoCreateBody",
|
|
176
|
+
"V1FaceSwapPhotoCreateBodyAssets",
|
|
177
|
+
"V1FilesUploadUrlsCreateBody",
|
|
178
|
+
"V1FilesUploadUrlsCreateBodyItemsItem",
|
|
179
|
+
"V1ImageBackgroundRemoverCreateBody",
|
|
180
|
+
"V1ImageBackgroundRemoverCreateBodyAssets",
|
|
181
|
+
"V1ImageToVideoCreateBody",
|
|
182
|
+
"V1ImageToVideoCreateBodyAssets",
|
|
183
|
+
"V1ImageToVideoCreateBodyStyle",
|
|
184
|
+
"V1LipSyncCreateBody",
|
|
185
|
+
"V1LipSyncCreateBodyAssets",
|
|
186
|
+
"V1TextToVideoCreateBody",
|
|
187
|
+
"V1TextToVideoCreateBodyStyle",
|
|
188
|
+
"V1VideoToVideoCreateBody",
|
|
189
|
+
"V1VideoToVideoCreateBodyAssets",
|
|
190
|
+
"V1VideoToVideoCreateBodyStyle",
|
|
191
|
+
"_SerializerV1AiClothesChangerCreateBody",
|
|
192
|
+
"_SerializerV1AiClothesChangerCreateBodyAssets",
|
|
193
|
+
"_SerializerV1AiHeadshotGeneratorCreateBody",
|
|
194
|
+
"_SerializerV1AiHeadshotGeneratorCreateBodyAssets",
|
|
195
|
+
"_SerializerV1AiHeadshotGeneratorCreateBodyStyle",
|
|
196
|
+
"_SerializerV1AiImageGeneratorCreateBody",
|
|
197
|
+
"_SerializerV1AiImageGeneratorCreateBodyStyle",
|
|
198
|
+
"_SerializerV1AiImageUpscalerCreateBody",
|
|
199
|
+
"_SerializerV1AiImageUpscalerCreateBodyAssets",
|
|
200
|
+
"_SerializerV1AiImageUpscalerCreateBodyStyle",
|
|
201
|
+
"_SerializerV1AiPhotoEditorCreateBody",
|
|
202
|
+
"_SerializerV1AiPhotoEditorCreateBodyAssets",
|
|
203
|
+
"_SerializerV1AiPhotoEditorCreateBodyStyle",
|
|
204
|
+
"_SerializerV1AiQrCodeGeneratorCreateBody",
|
|
205
|
+
"_SerializerV1AiQrCodeGeneratorCreateBodyStyle",
|
|
206
|
+
"_SerializerV1AiTalkingPhotoCreateBody",
|
|
207
|
+
"_SerializerV1AiTalkingPhotoCreateBodyAssets",
|
|
208
|
+
"_SerializerV1AnimationCreateBody",
|
|
209
|
+
"_SerializerV1AnimationCreateBodyAssets",
|
|
210
|
+
"_SerializerV1AnimationCreateBodyStyle",
|
|
211
|
+
"_SerializerV1FaceSwapCreateBody",
|
|
212
|
+
"_SerializerV1FaceSwapCreateBodyAssets",
|
|
213
|
+
"_SerializerV1FaceSwapPhotoCreateBody",
|
|
214
|
+
"_SerializerV1FaceSwapPhotoCreateBodyAssets",
|
|
215
|
+
"_SerializerV1FilesUploadUrlsCreateBody",
|
|
216
|
+
"_SerializerV1FilesUploadUrlsCreateBodyItemsItem",
|
|
217
|
+
"_SerializerV1ImageBackgroundRemoverCreateBody",
|
|
218
|
+
"_SerializerV1ImageBackgroundRemoverCreateBodyAssets",
|
|
219
|
+
"_SerializerV1ImageToVideoCreateBody",
|
|
220
|
+
"_SerializerV1ImageToVideoCreateBodyAssets",
|
|
221
|
+
"_SerializerV1ImageToVideoCreateBodyStyle",
|
|
222
|
+
"_SerializerV1LipSyncCreateBody",
|
|
223
|
+
"_SerializerV1LipSyncCreateBodyAssets",
|
|
224
|
+
"_SerializerV1TextToVideoCreateBody",
|
|
225
|
+
"_SerializerV1TextToVideoCreateBodyStyle",
|
|
226
|
+
"_SerializerV1VideoToVideoCreateBody",
|
|
227
|
+
"_SerializerV1VideoToVideoCreateBodyAssets",
|
|
228
|
+
"_SerializerV1VideoToVideoCreateBodyStyle",
|
|
211
229
|
]
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import pydantic
|
|
2
|
+
import typing
|
|
3
|
+
import typing_extensions
|
|
4
|
+
|
|
5
|
+
from .v1_ai_clothes_changer_create_body_assets import (
|
|
6
|
+
V1AiClothesChangerCreateBodyAssets,
|
|
7
|
+
_SerializerV1AiClothesChangerCreateBodyAssets,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class V1AiClothesChangerCreateBody(typing_extensions.TypedDict):
|
|
12
|
+
"""
|
|
13
|
+
V1AiClothesChangerCreateBody
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
assets: typing_extensions.Required[V1AiClothesChangerCreateBodyAssets]
|
|
17
|
+
"""
|
|
18
|
+
Provide the assets for clothes changer
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
name: typing_extensions.NotRequired[str]
|
|
22
|
+
"""
|
|
23
|
+
The name of image
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class _SerializerV1AiClothesChangerCreateBody(pydantic.BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
Serializer for V1AiClothesChangerCreateBody handling case conversions
|
|
30
|
+
and file omissions as dictated by the API
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
model_config = pydantic.ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
assets: _SerializerV1AiClothesChangerCreateBodyAssets = pydantic.Field(
|
|
38
|
+
alias="assets",
|
|
39
|
+
)
|
|
40
|
+
name: typing.Optional[str] = pydantic.Field(alias="name", default=None)
|
|
@@ -2,7 +2,7 @@ import pydantic
|
|
|
2
2
|
import typing_extensions
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
class
|
|
5
|
+
class V1AiClothesChangerCreateBodyAssets(typing_extensions.TypedDict):
|
|
6
6
|
"""
|
|
7
7
|
Provide the assets for clothes changer
|
|
8
8
|
"""
|
|
@@ -22,9 +22,9 @@ class PostV1AiClothesChangerBodyAssets(typing_extensions.TypedDict):
|
|
|
22
22
|
"""
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class _SerializerV1AiClothesChangerCreateBodyAssets(pydantic.BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
Serializer for
|
|
27
|
+
Serializer for V1AiClothesChangerCreateBodyAssets handling case conversions
|
|
28
28
|
and file omissions as dictated by the API
|
|
29
29
|
"""
|
|
30
30
|
|