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.

Files changed (102) hide show
  1. magic_hour/environment.py +1 -1
  2. magic_hour/resources/v1/ai_clothes_changer/client.py +8 -8
  3. magic_hour/resources/v1/ai_headshot_generator/client.py +12 -12
  4. magic_hour/resources/v1/ai_image_generator/client.py +10 -10
  5. magic_hour/resources/v1/ai_image_upscaler/client.py +12 -12
  6. magic_hour/resources/v1/ai_photo_editor/client.py +12 -12
  7. magic_hour/resources/v1/ai_qr_code_generator/client.py +10 -10
  8. magic_hour/resources/v1/ai_talking_photo/README.md +43 -0
  9. magic_hour/resources/v1/ai_talking_photo/__init__.py +4 -0
  10. magic_hour/resources/v1/ai_talking_photo/client.py +147 -0
  11. magic_hour/resources/v1/animation/client.py +10 -10
  12. magic_hour/resources/v1/client.py +6 -0
  13. magic_hour/resources/v1/face_swap/client.py +8 -8
  14. magic_hour/resources/v1/face_swap_photo/client.py +8 -8
  15. magic_hour/resources/v1/files/upload_urls/README.md +4 -4
  16. magic_hour/resources/v1/files/upload_urls/client.py +14 -12
  17. magic_hour/resources/v1/image_background_remover/client.py +8 -8
  18. magic_hour/resources/v1/image_projects/client.py +4 -4
  19. magic_hour/resources/v1/image_to_video/client.py +12 -12
  20. magic_hour/resources/v1/lip_sync/client.py +8 -8
  21. magic_hour/resources/v1/text_to_video/client.py +10 -10
  22. magic_hour/resources/v1/video_projects/client.py +4 -4
  23. magic_hour/resources/v1/video_to_video/client.py +12 -12
  24. magic_hour/types/models/__init__.py +53 -51
  25. magic_hour/types/models/{post_v1_ai_clothes_changer_response.py → v1_ai_clothes_changer_create_response.py} +1 -1
  26. magic_hour/types/models/v1_ai_headshot_generator_create_response.py +25 -0
  27. magic_hour/types/models/{post_v1_ai_photo_editor_response.py → v1_ai_image_generator_create_response.py} +1 -1
  28. magic_hour/types/models/{post_v1_ai_image_generator_response.py → v1_ai_image_upscaler_create_response.py} +1 -1
  29. magic_hour/types/models/{post_v1_face_swap_photo_response.py → v1_ai_photo_editor_create_response.py} +1 -1
  30. magic_hour/types/models/{post_v1_ai_headshot_generator_response.py → v1_ai_qr_code_generator_create_response.py} +1 -1
  31. magic_hour/types/models/v1_ai_talking_photo_create_response.py +25 -0
  32. magic_hour/types/models/{post_v1_text_to_video_response.py → v1_animation_create_response.py} +1 -1
  33. magic_hour/types/models/{post_v1_face_swap_response.py → v1_face_swap_create_response.py} +1 -1
  34. magic_hour/types/models/{post_v1_ai_image_upscaler_response.py → v1_face_swap_photo_create_response.py} +1 -1
  35. magic_hour/types/models/v1_files_upload_urls_create_response.py +21 -0
  36. magic_hour/types/models/{post_v1_files_upload_urls_response_items_item.py → v1_files_upload_urls_create_response_items_item.py} +2 -2
  37. magic_hour/types/models/v1_image_background_remover_create_response.py +25 -0
  38. magic_hour/types/models/{get_v1_image_projects_id_response.py → v1_image_projects_get_response.py} +7 -7
  39. magic_hour/types/models/{get_v1_image_projects_id_response_downloads_item.py → v1_image_projects_get_response_downloads_item.py} +1 -1
  40. magic_hour/types/models/{get_v1_video_projects_id_response_error.py → v1_image_projects_get_response_error.py} +2 -2
  41. magic_hour/types/models/{post_v1_lip_sync_response.py → v1_image_to_video_create_response.py} +1 -1
  42. magic_hour/types/models/{post_v1_animation_response.py → v1_lip_sync_create_response.py} +1 -1
  43. magic_hour/types/models/{post_v1_image_to_video_response.py → v1_text_to_video_create_response.py} +1 -1
  44. magic_hour/types/models/{get_v1_video_projects_id_response.py → v1_video_projects_get_response.py} +10 -11
  45. magic_hour/types/models/{get_v1_video_projects_id_response_download.py → v1_video_projects_get_response_download.py} +1 -1
  46. magic_hour/types/models/{get_v1_video_projects_id_response_downloads_item.py → v1_video_projects_get_response_downloads_item.py} +1 -1
  47. magic_hour/types/models/{get_v1_image_projects_id_response_error.py → v1_video_projects_get_response_error.py} +2 -2
  48. magic_hour/types/models/v1_video_to_video_create_response.py +25 -0
  49. magic_hour/types/params/__init__.py +200 -182
  50. magic_hour/types/params/v1_ai_clothes_changer_create_body.py +40 -0
  51. magic_hour/types/params/{post_v1_ai_clothes_changer_body_assets.py → v1_ai_clothes_changer_create_body_assets.py} +3 -3
  52. magic_hour/types/params/v1_ai_headshot_generator_create_body.py +49 -0
  53. magic_hour/types/params/{post_v1_ai_headshot_generator_body_assets.py → v1_ai_headshot_generator_create_body_assets.py} +3 -3
  54. magic_hour/types/params/{post_v1_ai_headshot_generator_body_style.py → v1_ai_headshot_generator_create_body_style.py} +4 -4
  55. magic_hour/types/params/{post_v1_ai_image_generator_body.py → v1_ai_image_generator_create_body.py} +9 -9
  56. magic_hour/types/params/{post_v1_ai_image_generator_body_style.py → v1_ai_image_generator_create_body_style.py} +4 -4
  57. magic_hour/types/params/v1_ai_image_upscaler_create_body.py +57 -0
  58. magic_hour/types/params/{post_v1_ai_image_upscaler_body_assets.py → v1_ai_image_upscaler_create_body_assets.py} +3 -3
  59. magic_hour/types/params/{post_v1_ai_image_upscaler_body_style.py → v1_ai_image_upscaler_create_body_style.py} +4 -4
  60. magic_hour/types/params/{post_v1_ai_photo_editor_body.py → v1_ai_photo_editor_create_body.py} +14 -14
  61. magic_hour/types/params/{post_v1_ai_photo_editor_body_assets.py → v1_ai_photo_editor_create_body_assets.py} +3 -3
  62. magic_hour/types/params/{post_v1_ai_photo_editor_body_style.py → v1_ai_photo_editor_create_body_style.py} +4 -4
  63. magic_hour/types/params/{post_v1_ai_qr_code_generator_body.py → v1_ai_qr_code_generator_create_body.py} +9 -9
  64. magic_hour/types/params/{post_v1_ai_qr_code_generator_body_style.py → v1_ai_qr_code_generator_create_body_style.py} +4 -4
  65. magic_hour/types/params/v1_ai_talking_photo_create_body.py +56 -0
  66. magic_hour/types/params/v1_ai_talking_photo_create_body_assets.py +36 -0
  67. magic_hour/types/params/{post_v1_animation_body.py → v1_animation_create_body.py} +14 -14
  68. magic_hour/types/params/{post_v1_animation_body_assets.py → v1_animation_create_body_assets.py} +3 -3
  69. magic_hour/types/params/{post_v1_animation_body_style.py → v1_animation_create_body_style.py} +3 -3
  70. magic_hour/types/params/{post_v1_face_swap_body.py → v1_face_swap_create_body.py} +9 -9
  71. magic_hour/types/params/{post_v1_face_swap_body_assets.py → v1_face_swap_create_body_assets.py} +3 -3
  72. magic_hour/types/params/v1_face_swap_photo_create_body.py +40 -0
  73. magic_hour/types/params/{post_v1_face_swap_photo_body_assets.py → v1_face_swap_photo_create_body_assets.py} +3 -3
  74. magic_hour/types/params/v1_files_upload_urls_create_body.py +33 -0
  75. magic_hour/types/params/{post_v1_files_upload_urls_body_items_item.py → v1_files_upload_urls_create_body_items_item.py} +6 -6
  76. magic_hour/types/params/v1_image_background_remover_create_body.py +40 -0
  77. magic_hour/types/params/{post_v1_image_background_remover_body_assets.py → v1_image_background_remover_create_body_assets.py} +3 -3
  78. magic_hour/types/params/{post_v1_image_to_video_body.py → v1_image_to_video_create_body.py} +14 -14
  79. magic_hour/types/params/{post_v1_image_to_video_body_assets.py → v1_image_to_video_create_body_assets.py} +3 -3
  80. magic_hour/types/params/{post_v1_image_to_video_body_style.py → v1_image_to_video_create_body_style.py} +4 -4
  81. magic_hour/types/params/{post_v1_lip_sync_body.py → v1_lip_sync_create_body.py} +9 -9
  82. magic_hour/types/params/{post_v1_lip_sync_body_assets.py → v1_lip_sync_create_body_assets.py} +3 -3
  83. magic_hour/types/params/{post_v1_text_to_video_body.py → v1_text_to_video_create_body.py} +9 -9
  84. magic_hour/types/params/{post_v1_text_to_video_body_style.py → v1_text_to_video_create_body_style.py} +4 -4
  85. magic_hour/types/params/{post_v1_video_to_video_body.py → v1_video_to_video_create_body.py} +14 -14
  86. magic_hour/types/params/{post_v1_video_to_video_body_assets.py → v1_video_to_video_create_body_assets.py} +3 -3
  87. magic_hour/types/params/{post_v1_video_to_video_body_style.py → v1_video_to_video_create_body_style.py} +14 -4
  88. {magic_hour-0.10.0.dist-info → magic_hour-0.12.0.dist-info}/METADATA +5 -1
  89. magic_hour-0.12.0.dist-info/RECORD +139 -0
  90. magic_hour/types/models/post_v1_ai_qr_code_generator_response.py +0 -25
  91. magic_hour/types/models/post_v1_files_upload_urls_response.py +0 -21
  92. magic_hour/types/models/post_v1_image_background_remover_response.py +0 -25
  93. magic_hour/types/models/post_v1_video_to_video_response.py +0 -25
  94. magic_hour/types/params/post_v1_ai_clothes_changer_body.py +0 -40
  95. magic_hour/types/params/post_v1_ai_headshot_generator_body.py +0 -49
  96. magic_hour/types/params/post_v1_ai_image_upscaler_body.py +0 -57
  97. magic_hour/types/params/post_v1_face_swap_photo_body.py +0 -40
  98. magic_hour/types/params/post_v1_files_upload_urls_body.py +0 -31
  99. magic_hour/types/params/post_v1_image_background_remover_body.py +0 -40
  100. magic_hour-0.10.0.dist-info/RECORD +0 -133
  101. {magic_hour-0.10.0.dist-info → magic_hour-0.12.0.dist-info}/LICENSE +0 -0
  102. {magic_hour-0.10.0.dist-info → magic_hour-0.12.0.dist-info}/WHEEL +0 -0
@@ -1,7 +1,7 @@
1
1
  import pydantic
2
2
 
3
3
 
4
- class PostV1LipSyncResponse(pydantic.BaseModel):
4
+ class V1ImageToVideoCreateResponse(pydantic.BaseModel):
5
5
  """
6
6
  Success
7
7
  """
@@ -1,7 +1,7 @@
1
1
  import pydantic
2
2
 
3
3
 
4
- class PostV1AnimationResponse(pydantic.BaseModel):
4
+ class V1LipSyncCreateResponse(pydantic.BaseModel):
5
5
  """
6
6
  Success
7
7
  """
@@ -1,7 +1,7 @@
1
1
  import pydantic
2
2
 
3
3
 
4
- class PostV1ImageToVideoResponse(pydantic.BaseModel):
4
+ class V1TextToVideoCreateResponse(pydantic.BaseModel):
5
5
  """
6
6
  Success
7
7
  """
@@ -2,16 +2,14 @@ import pydantic
2
2
  import typing
3
3
  import typing_extensions
4
4
 
5
- from .get_v1_video_projects_id_response_download import (
6
- GetV1VideoProjectsIdResponseDownload,
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 .get_v1_video_projects_id_response_downloads_item import (
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 GetV1VideoProjectsIdResponse(pydantic.BaseModel):
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[GetV1VideoProjectsIdResponseDownload] = pydantic.Field(
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[GetV1VideoProjectsIdResponseDownloadsItem] = pydantic.Field(
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[GetV1VideoProjectsIdResponseError] = pydantic.Field(
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
- type_field: typing_extensions.Literal[
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 GetV1VideoProjectsIdResponseDownload(pydantic.BaseModel):
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 GetV1VideoProjectsIdResponseDownloadsItem(pydantic.BaseModel):
4
+ class V1VideoProjectsGetResponseDownloadsItem(pydantic.BaseModel):
5
5
  """
6
6
  The download url and expiration date of the image project
7
7
  """
@@ -1,7 +1,7 @@
1
1
  import pydantic
2
2
 
3
3
 
4
- class GetV1ImageProjectsIdResponseError(pydantic.BaseModel):
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
- code_field: str = pydantic.Field(
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 .post_v1_ai_clothes_changer_body import (
2
- PostV1AiClothesChangerBody,
3
- _SerializerPostV1AiClothesChangerBody,
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 .post_v1_ai_image_upscaler_body_style import (
38
- PostV1AiImageUpscalerBodyStyle,
39
- _SerializerPostV1AiImageUpscalerBodyStyle,
5
+ from .v1_ai_clothes_changer_create_body_assets import (
6
+ V1AiClothesChangerCreateBodyAssets,
7
+ _SerializerV1AiClothesChangerCreateBodyAssets,
40
8
  )
41
- from .post_v1_ai_photo_editor_body import (
42
- PostV1AiPhotoEditorBody,
43
- _SerializerPostV1AiPhotoEditorBody,
9
+ from .v1_ai_headshot_generator_create_body import (
10
+ V1AiHeadshotGeneratorCreateBody,
11
+ _SerializerV1AiHeadshotGeneratorCreateBody,
44
12
  )
45
- from .post_v1_ai_photo_editor_body_assets import (
46
- PostV1AiPhotoEditorBodyAssets,
47
- _SerializerPostV1AiPhotoEditorBodyAssets,
13
+ from .v1_ai_headshot_generator_create_body_assets import (
14
+ V1AiHeadshotGeneratorCreateBodyAssets,
15
+ _SerializerV1AiHeadshotGeneratorCreateBodyAssets,
48
16
  )
49
- from .post_v1_ai_photo_editor_body_style import (
50
- PostV1AiPhotoEditorBodyStyle,
51
- _SerializerPostV1AiPhotoEditorBodyStyle,
17
+ from .v1_ai_headshot_generator_create_body_style import (
18
+ V1AiHeadshotGeneratorCreateBodyStyle,
19
+ _SerializerV1AiHeadshotGeneratorCreateBodyStyle,
52
20
  )
53
- from .post_v1_ai_qr_code_generator_body import (
54
- PostV1AiQrCodeGeneratorBody,
55
- _SerializerPostV1AiQrCodeGeneratorBody,
21
+ from .v1_ai_image_generator_create_body import (
22
+ V1AiImageGeneratorCreateBody,
23
+ _SerializerV1AiImageGeneratorCreateBody,
56
24
  )
57
- from .post_v1_ai_qr_code_generator_body_style import (
58
- PostV1AiQrCodeGeneratorBodyStyle,
59
- _SerializerPostV1AiQrCodeGeneratorBodyStyle,
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 .post_v1_animation_body import PostV1AnimationBody, _SerializerPostV1AnimationBody
62
- from .post_v1_animation_body_assets import (
63
- PostV1AnimationBodyAssets,
64
- _SerializerPostV1AnimationBodyAssets,
53
+ from .v1_ai_qr_code_generator_create_body import (
54
+ V1AiQrCodeGeneratorCreateBody,
55
+ _SerializerV1AiQrCodeGeneratorCreateBody,
65
56
  )
66
- from .post_v1_animation_body_style import (
67
- PostV1AnimationBodyStyle,
68
- _SerializerPostV1AnimationBodyStyle,
57
+ from .v1_ai_qr_code_generator_create_body_style import (
58
+ V1AiQrCodeGeneratorCreateBodyStyle,
59
+ _SerializerV1AiQrCodeGeneratorCreateBodyStyle,
69
60
  )
70
- from .post_v1_face_swap_body import PostV1FaceSwapBody, _SerializerPostV1FaceSwapBody
71
- from .post_v1_face_swap_body_assets import (
72
- PostV1FaceSwapBodyAssets,
73
- _SerializerPostV1FaceSwapBodyAssets,
61
+ from .v1_ai_talking_photo_create_body import (
62
+ V1AiTalkingPhotoCreateBody,
63
+ _SerializerV1AiTalkingPhotoCreateBody,
74
64
  )
75
- from .post_v1_face_swap_photo_body import (
76
- PostV1FaceSwapPhotoBody,
77
- _SerializerPostV1FaceSwapPhotoBody,
65
+ from .v1_ai_talking_photo_create_body_assets import (
66
+ V1AiTalkingPhotoCreateBodyAssets,
67
+ _SerializerV1AiTalkingPhotoCreateBodyAssets,
78
68
  )
79
- from .post_v1_face_swap_photo_body_assets import (
80
- PostV1FaceSwapPhotoBodyAssets,
81
- _SerializerPostV1FaceSwapPhotoBodyAssets,
69
+ from .v1_animation_create_body import (
70
+ V1AnimationCreateBody,
71
+ _SerializerV1AnimationCreateBody,
82
72
  )
83
- from .post_v1_files_upload_urls_body import (
84
- PostV1FilesUploadUrlsBody,
85
- _SerializerPostV1FilesUploadUrlsBody,
73
+ from .v1_animation_create_body_assets import (
74
+ V1AnimationCreateBodyAssets,
75
+ _SerializerV1AnimationCreateBodyAssets,
86
76
  )
87
- from .post_v1_files_upload_urls_body_items_item import (
88
- PostV1FilesUploadUrlsBodyItemsItem,
89
- _SerializerPostV1FilesUploadUrlsBodyItemsItem,
77
+ from .v1_animation_create_body_style import (
78
+ V1AnimationCreateBodyStyle,
79
+ _SerializerV1AnimationCreateBodyStyle,
90
80
  )
91
- from .post_v1_image_background_remover_body import (
92
- PostV1ImageBackgroundRemoverBody,
93
- _SerializerPostV1ImageBackgroundRemoverBody,
81
+ from .v1_face_swap_create_body import (
82
+ V1FaceSwapCreateBody,
83
+ _SerializerV1FaceSwapCreateBody,
94
84
  )
95
- from .post_v1_image_background_remover_body_assets import (
96
- PostV1ImageBackgroundRemoverBodyAssets,
97
- _SerializerPostV1ImageBackgroundRemoverBodyAssets,
85
+ from .v1_face_swap_create_body_assets import (
86
+ V1FaceSwapCreateBodyAssets,
87
+ _SerializerV1FaceSwapCreateBodyAssets,
98
88
  )
99
- from .post_v1_image_to_video_body import (
100
- PostV1ImageToVideoBody,
101
- _SerializerPostV1ImageToVideoBody,
89
+ from .v1_face_swap_photo_create_body import (
90
+ V1FaceSwapPhotoCreateBody,
91
+ _SerializerV1FaceSwapPhotoCreateBody,
102
92
  )
103
- from .post_v1_image_to_video_body_assets import (
104
- PostV1ImageToVideoBodyAssets,
105
- _SerializerPostV1ImageToVideoBodyAssets,
93
+ from .v1_face_swap_photo_create_body_assets import (
94
+ V1FaceSwapPhotoCreateBodyAssets,
95
+ _SerializerV1FaceSwapPhotoCreateBodyAssets,
106
96
  )
107
- from .post_v1_image_to_video_body_style import (
108
- PostV1ImageToVideoBodyStyle,
109
- _SerializerPostV1ImageToVideoBodyStyle,
97
+ from .v1_files_upload_urls_create_body import (
98
+ V1FilesUploadUrlsCreateBody,
99
+ _SerializerV1FilesUploadUrlsCreateBody,
110
100
  )
111
- from .post_v1_lip_sync_body import PostV1LipSyncBody, _SerializerPostV1LipSyncBody
112
- from .post_v1_lip_sync_body_assets import (
113
- PostV1LipSyncBodyAssets,
114
- _SerializerPostV1LipSyncBodyAssets,
101
+ from .v1_files_upload_urls_create_body_items_item import (
102
+ V1FilesUploadUrlsCreateBodyItemsItem,
103
+ _SerializerV1FilesUploadUrlsCreateBodyItemsItem,
115
104
  )
116
- from .post_v1_text_to_video_body import (
117
- PostV1TextToVideoBody,
118
- _SerializerPostV1TextToVideoBody,
105
+ from .v1_image_background_remover_create_body import (
106
+ V1ImageBackgroundRemoverCreateBody,
107
+ _SerializerV1ImageBackgroundRemoverCreateBody,
119
108
  )
120
- from .post_v1_text_to_video_body_style import (
121
- PostV1TextToVideoBodyStyle,
122
- _SerializerPostV1TextToVideoBodyStyle,
109
+ from .v1_image_background_remover_create_body_assets import (
110
+ V1ImageBackgroundRemoverCreateBodyAssets,
111
+ _SerializerV1ImageBackgroundRemoverCreateBodyAssets,
123
112
  )
124
- from .post_v1_video_to_video_body import (
125
- PostV1VideoToVideoBody,
126
- _SerializerPostV1VideoToVideoBody,
113
+ from .v1_image_to_video_create_body import (
114
+ V1ImageToVideoCreateBody,
115
+ _SerializerV1ImageToVideoCreateBody,
127
116
  )
128
- from .post_v1_video_to_video_body_assets import (
129
- PostV1VideoToVideoBodyAssets,
130
- _SerializerPostV1VideoToVideoBodyAssets,
117
+ from .v1_image_to_video_create_body_assets import (
118
+ V1ImageToVideoCreateBodyAssets,
119
+ _SerializerV1ImageToVideoCreateBodyAssets,
131
120
  )
132
- from .post_v1_video_to_video_body_style import (
133
- PostV1VideoToVideoBodyStyle,
134
- _SerializerPostV1VideoToVideoBodyStyle,
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
- "PostV1AiClothesChangerBody",
140
- "PostV1AiClothesChangerBodyAssets",
141
- "PostV1AiHeadshotGeneratorBody",
142
- "PostV1AiHeadshotGeneratorBodyAssets",
143
- "PostV1AiHeadshotGeneratorBodyStyle",
144
- "PostV1AiImageGeneratorBody",
145
- "PostV1AiImageGeneratorBodyStyle",
146
- "PostV1AiImageUpscalerBody",
147
- "PostV1AiImageUpscalerBodyAssets",
148
- "PostV1AiImageUpscalerBodyStyle",
149
- "PostV1AiPhotoEditorBody",
150
- "PostV1AiPhotoEditorBodyAssets",
151
- "PostV1AiPhotoEditorBodyStyle",
152
- "PostV1AiQrCodeGeneratorBody",
153
- "PostV1AiQrCodeGeneratorBodyStyle",
154
- "PostV1AnimationBody",
155
- "PostV1AnimationBodyAssets",
156
- "PostV1AnimationBodyStyle",
157
- "PostV1FaceSwapBody",
158
- "PostV1FaceSwapBodyAssets",
159
- "PostV1FaceSwapPhotoBody",
160
- "PostV1FaceSwapPhotoBodyAssets",
161
- "PostV1FilesUploadUrlsBody",
162
- "PostV1FilesUploadUrlsBodyItemsItem",
163
- "PostV1ImageBackgroundRemoverBody",
164
- "PostV1ImageBackgroundRemoverBodyAssets",
165
- "PostV1ImageToVideoBody",
166
- "PostV1ImageToVideoBodyAssets",
167
- "PostV1ImageToVideoBodyStyle",
168
- "PostV1LipSyncBody",
169
- "PostV1LipSyncBodyAssets",
170
- "PostV1TextToVideoBody",
171
- "PostV1TextToVideoBodyStyle",
172
- "PostV1VideoToVideoBody",
173
- "PostV1VideoToVideoBodyAssets",
174
- "PostV1VideoToVideoBodyStyle",
175
- "_SerializerPostV1AiClothesChangerBody",
176
- "_SerializerPostV1AiClothesChangerBodyAssets",
177
- "_SerializerPostV1AiHeadshotGeneratorBody",
178
- "_SerializerPostV1AiHeadshotGeneratorBodyAssets",
179
- "_SerializerPostV1AiHeadshotGeneratorBodyStyle",
180
- "_SerializerPostV1AiImageGeneratorBody",
181
- "_SerializerPostV1AiImageGeneratorBodyStyle",
182
- "_SerializerPostV1AiImageUpscalerBody",
183
- "_SerializerPostV1AiImageUpscalerBodyAssets",
184
- "_SerializerPostV1AiImageUpscalerBodyStyle",
185
- "_SerializerPostV1AiPhotoEditorBody",
186
- "_SerializerPostV1AiPhotoEditorBodyAssets",
187
- "_SerializerPostV1AiPhotoEditorBodyStyle",
188
- "_SerializerPostV1AiQrCodeGeneratorBody",
189
- "_SerializerPostV1AiQrCodeGeneratorBodyStyle",
190
- "_SerializerPostV1AnimationBody",
191
- "_SerializerPostV1AnimationBodyAssets",
192
- "_SerializerPostV1AnimationBodyStyle",
193
- "_SerializerPostV1FaceSwapBody",
194
- "_SerializerPostV1FaceSwapBodyAssets",
195
- "_SerializerPostV1FaceSwapPhotoBody",
196
- "_SerializerPostV1FaceSwapPhotoBodyAssets",
197
- "_SerializerPostV1FilesUploadUrlsBody",
198
- "_SerializerPostV1FilesUploadUrlsBodyItemsItem",
199
- "_SerializerPostV1ImageBackgroundRemoverBody",
200
- "_SerializerPostV1ImageBackgroundRemoverBodyAssets",
201
- "_SerializerPostV1ImageToVideoBody",
202
- "_SerializerPostV1ImageToVideoBodyAssets",
203
- "_SerializerPostV1ImageToVideoBodyStyle",
204
- "_SerializerPostV1LipSyncBody",
205
- "_SerializerPostV1LipSyncBodyAssets",
206
- "_SerializerPostV1TextToVideoBody",
207
- "_SerializerPostV1TextToVideoBodyStyle",
208
- "_SerializerPostV1VideoToVideoBody",
209
- "_SerializerPostV1VideoToVideoBodyAssets",
210
- "_SerializerPostV1VideoToVideoBodyStyle",
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 PostV1AiClothesChangerBodyAssets(typing_extensions.TypedDict):
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 _SerializerPostV1AiClothesChangerBodyAssets(pydantic.BaseModel):
25
+ class _SerializerV1AiClothesChangerCreateBodyAssets(pydantic.BaseModel):
26
26
  """
27
- Serializer for PostV1AiClothesChangerBodyAssets handling case conversions
27
+ Serializer for V1AiClothesChangerCreateBodyAssets handling case conversions
28
28
  and file omissions as dictated by the API
29
29
  """
30
30