magic_hour 0.9.5__py3-none-any.whl → 0.44.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.
Files changed (264) hide show
  1. magic_hour/README.md +34 -0
  2. magic_hour/__init__.py +1 -1
  3. magic_hour/client.py +8 -17
  4. magic_hour/environment.py +13 -1
  5. magic_hour/helpers/__init__.py +4 -0
  6. magic_hour/helpers/download.py +77 -0
  7. magic_hour/helpers/logger.py +8 -0
  8. magic_hour/resources/v1/README.md +32 -0
  9. magic_hour/resources/v1/ai_clothes_changer/README.md +94 -5
  10. magic_hour/resources/v1/ai_clothes_changer/client.py +161 -16
  11. magic_hour/resources/v1/ai_face_editor/README.md +195 -0
  12. magic_hour/resources/v1/ai_face_editor/__init__.py +4 -0
  13. magic_hour/resources/v1/ai_face_editor/client.py +324 -0
  14. magic_hour/resources/v1/ai_gif_generator/README.md +116 -0
  15. magic_hour/resources/v1/ai_gif_generator/__init__.py +4 -0
  16. magic_hour/resources/v1/ai_gif_generator/client.py +257 -0
  17. magic_hour/resources/v1/ai_headshot_generator/README.md +81 -3
  18. magic_hour/resources/v1/ai_headshot_generator/client.py +167 -18
  19. magic_hour/resources/v1/ai_image_editor/README.md +125 -0
  20. magic_hour/resources/v1/ai_image_editor/__init__.py +4 -0
  21. magic_hour/resources/v1/ai_image_editor/client.py +290 -0
  22. magic_hour/resources/v1/ai_image_generator/README.md +99 -5
  23. magic_hour/resources/v1/ai_image_generator/client.py +170 -24
  24. magic_hour/resources/v1/ai_image_upscaler/README.md +89 -3
  25. magic_hour/resources/v1/ai_image_upscaler/client.py +173 -20
  26. magic_hour/resources/v1/ai_meme_generator/README.md +129 -0
  27. magic_hour/resources/v1/ai_meme_generator/__init__.py +4 -0
  28. magic_hour/resources/v1/ai_meme_generator/client.py +253 -0
  29. magic_hour/resources/v1/ai_photo_editor/README.md +119 -4
  30. magic_hour/resources/v1/ai_photo_editor/client.py +199 -18
  31. magic_hour/resources/v1/ai_qr_code_generator/README.md +84 -3
  32. magic_hour/resources/v1/ai_qr_code_generator/client.py +140 -18
  33. magic_hour/resources/v1/ai_talking_photo/README.md +137 -0
  34. magic_hour/resources/v1/ai_talking_photo/__init__.py +4 -0
  35. magic_hour/resources/v1/ai_talking_photo/client.py +326 -0
  36. magic_hour/resources/v1/ai_voice_cloner/README.md +62 -0
  37. magic_hour/resources/v1/ai_voice_cloner/__init__.py +4 -0
  38. magic_hour/resources/v1/ai_voice_cloner/client.py +272 -0
  39. magic_hour/resources/v1/ai_voice_generator/README.md +112 -0
  40. magic_hour/resources/v1/ai_voice_generator/__init__.py +4 -0
  41. magic_hour/resources/v1/ai_voice_generator/client.py +241 -0
  42. magic_hour/resources/v1/animation/README.md +128 -6
  43. magic_hour/resources/v1/animation/client.py +247 -22
  44. magic_hour/resources/v1/audio_projects/README.md +135 -0
  45. magic_hour/resources/v1/audio_projects/__init__.py +12 -0
  46. magic_hour/resources/v1/audio_projects/client.py +310 -0
  47. magic_hour/resources/v1/audio_projects/client_test.py +520 -0
  48. magic_hour/resources/v1/auto_subtitle_generator/README.md +128 -0
  49. magic_hour/resources/v1/auto_subtitle_generator/__init__.py +4 -0
  50. magic_hour/resources/v1/auto_subtitle_generator/client.py +346 -0
  51. magic_hour/resources/v1/client.py +75 -1
  52. magic_hour/resources/v1/face_detection/README.md +157 -0
  53. magic_hour/resources/v1/face_detection/__init__.py +12 -0
  54. magic_hour/resources/v1/face_detection/client.py +380 -0
  55. magic_hour/resources/v1/face_swap/README.md +137 -9
  56. magic_hour/resources/v1/face_swap/client.py +329 -38
  57. magic_hour/resources/v1/face_swap_photo/README.md +118 -3
  58. magic_hour/resources/v1/face_swap_photo/client.py +199 -14
  59. magic_hour/resources/v1/files/README.md +39 -0
  60. magic_hour/resources/v1/files/client.py +351 -1
  61. magic_hour/resources/v1/files/client_test.py +414 -0
  62. magic_hour/resources/v1/files/upload_urls/README.md +38 -17
  63. magic_hour/resources/v1/files/upload_urls/client.py +38 -34
  64. magic_hour/resources/v1/image_background_remover/README.md +96 -5
  65. magic_hour/resources/v1/image_background_remover/client.py +151 -16
  66. magic_hour/resources/v1/image_projects/README.md +82 -10
  67. magic_hour/resources/v1/image_projects/__init__.py +10 -2
  68. magic_hour/resources/v1/image_projects/client.py +154 -16
  69. magic_hour/resources/v1/image_projects/client_test.py +527 -0
  70. magic_hour/resources/v1/image_to_video/README.md +96 -11
  71. magic_hour/resources/v1/image_to_video/client.py +282 -38
  72. magic_hour/resources/v1/lip_sync/README.md +112 -9
  73. magic_hour/resources/v1/lip_sync/client.py +288 -34
  74. magic_hour/resources/v1/photo_colorizer/README.md +107 -0
  75. magic_hour/resources/v1/photo_colorizer/__init__.py +4 -0
  76. magic_hour/resources/v1/photo_colorizer/client.py +248 -0
  77. magic_hour/resources/v1/text_to_video/README.md +96 -7
  78. magic_hour/resources/v1/text_to_video/client.py +204 -18
  79. magic_hour/resources/v1/video_projects/README.md +81 -9
  80. magic_hour/resources/v1/video_projects/__init__.py +10 -2
  81. magic_hour/resources/v1/video_projects/client.py +151 -14
  82. magic_hour/resources/v1/video_projects/client_test.py +527 -0
  83. magic_hour/resources/v1/video_to_video/README.md +119 -15
  84. magic_hour/resources/v1/video_to_video/client.py +299 -46
  85. magic_hour/types/models/__init__.py +92 -56
  86. magic_hour/types/models/v1_ai_clothes_changer_create_response.py +33 -0
  87. magic_hour/types/models/v1_ai_face_editor_create_response.py +33 -0
  88. magic_hour/types/models/v1_ai_gif_generator_create_response.py +33 -0
  89. magic_hour/types/models/v1_ai_headshot_generator_create_response.py +33 -0
  90. magic_hour/types/models/v1_ai_image_editor_create_response.py +33 -0
  91. magic_hour/types/models/v1_ai_image_generator_create_response.py +33 -0
  92. magic_hour/types/models/v1_ai_image_upscaler_create_response.py +33 -0
  93. magic_hour/types/models/v1_ai_meme_generator_create_response.py +33 -0
  94. magic_hour/types/models/v1_ai_photo_editor_create_response.py +33 -0
  95. magic_hour/types/models/v1_ai_qr_code_generator_create_response.py +33 -0
  96. magic_hour/types/models/v1_ai_talking_photo_create_response.py +35 -0
  97. magic_hour/types/models/v1_ai_voice_cloner_create_response.py +27 -0
  98. magic_hour/types/models/v1_ai_voice_generator_create_response.py +27 -0
  99. magic_hour/types/models/v1_animation_create_response.py +35 -0
  100. magic_hour/types/models/v1_audio_projects_get_response.py +72 -0
  101. magic_hour/types/models/v1_audio_projects_get_response_downloads_item.py +19 -0
  102. magic_hour/types/models/{get_v1_image_projects_id_response_error.py → v1_audio_projects_get_response_error.py} +2 -2
  103. magic_hour/types/models/v1_auto_subtitle_generator_create_response.py +35 -0
  104. magic_hour/types/models/v1_face_detection_create_response.py +25 -0
  105. magic_hour/types/models/v1_face_detection_get_response.py +45 -0
  106. magic_hour/types/models/v1_face_detection_get_response_faces_item.py +25 -0
  107. magic_hour/types/models/v1_face_swap_create_response.py +35 -0
  108. magic_hour/types/models/v1_face_swap_photo_create_response.py +33 -0
  109. magic_hour/types/models/v1_files_upload_urls_create_response.py +24 -0
  110. magic_hour/types/models/{post_v1_files_upload_urls_response_items_item.py → v1_files_upload_urls_create_response_items_item.py} +2 -2
  111. magic_hour/types/models/v1_image_background_remover_create_response.py +33 -0
  112. magic_hour/types/models/{get_v1_image_projects_id_response.py → v1_image_projects_get_response.py} +20 -18
  113. magic_hour/types/models/{get_v1_video_projects_id_response_downloads_item.py → v1_image_projects_get_response_downloads_item.py} +1 -1
  114. magic_hour/types/models/{get_v1_video_projects_id_response_error.py → v1_image_projects_get_response_error.py} +2 -2
  115. magic_hour/types/models/v1_image_to_video_create_response.py +35 -0
  116. magic_hour/types/models/v1_lip_sync_create_response.py +35 -0
  117. magic_hour/types/models/v1_photo_colorizer_create_response.py +33 -0
  118. magic_hour/types/models/v1_text_to_video_create_response.py +35 -0
  119. magic_hour/types/models/{get_v1_video_projects_id_response.py → v1_video_projects_get_response.py} +26 -23
  120. magic_hour/types/models/{get_v1_video_projects_id_response_download.py → v1_video_projects_get_response_download.py} +1 -1
  121. magic_hour/types/models/{get_v1_image_projects_id_response_downloads_item.py → v1_video_projects_get_response_downloads_item.py} +1 -1
  122. magic_hour/types/models/v1_video_projects_get_response_error.py +25 -0
  123. magic_hour/types/models/v1_video_to_video_create_response.py +35 -0
  124. magic_hour/types/params/__init__.py +422 -176
  125. magic_hour/types/params/v1_ai_clothes_changer_create_body.py +40 -0
  126. magic_hour/types/params/v1_ai_clothes_changer_create_body_assets.py +58 -0
  127. magic_hour/types/params/v1_ai_clothes_changer_generate_body_assets.py +33 -0
  128. magic_hour/types/params/v1_ai_face_editor_create_body.py +52 -0
  129. magic_hour/types/params/v1_ai_face_editor_create_body_assets.py +33 -0
  130. magic_hour/types/params/v1_ai_face_editor_create_body_style.py +137 -0
  131. magic_hour/types/params/v1_ai_face_editor_generate_body_assets.py +17 -0
  132. magic_hour/types/params/v1_ai_gif_generator_create_body.py +47 -0
  133. magic_hour/types/params/{post_v1_ai_image_generator_body_style.py → v1_ai_gif_generator_create_body_style.py} +5 -5
  134. magic_hour/types/params/v1_ai_headshot_generator_create_body.py +49 -0
  135. magic_hour/types/params/v1_ai_headshot_generator_create_body_assets.py +33 -0
  136. magic_hour/types/params/v1_ai_headshot_generator_create_body_style.py +27 -0
  137. magic_hour/types/params/v1_ai_headshot_generator_generate_body_assets.py +17 -0
  138. magic_hour/types/params/v1_ai_image_editor_create_body.py +49 -0
  139. magic_hour/types/params/v1_ai_image_editor_create_body_assets.py +47 -0
  140. magic_hour/types/params/v1_ai_image_editor_create_body_style.py +41 -0
  141. magic_hour/types/params/v1_ai_image_editor_generate_body_assets.py +28 -0
  142. magic_hour/types/params/{post_v1_ai_image_generator_body.py → v1_ai_image_generator_create_body.py} +17 -11
  143. magic_hour/types/params/v1_ai_image_generator_create_body_style.py +127 -0
  144. magic_hour/types/params/v1_ai_image_upscaler_create_body.py +59 -0
  145. magic_hour/types/params/v1_ai_image_upscaler_create_body_assets.py +33 -0
  146. magic_hour/types/params/{post_v1_ai_image_upscaler_body_style.py → v1_ai_image_upscaler_create_body_style.py} +4 -4
  147. magic_hour/types/params/v1_ai_image_upscaler_generate_body_assets.py +17 -0
  148. magic_hour/types/params/v1_ai_meme_generator_create_body.py +37 -0
  149. magic_hour/types/params/v1_ai_meme_generator_create_body_style.py +73 -0
  150. magic_hour/types/params/{post_v1_ai_photo_editor_body.py → v1_ai_photo_editor_create_body.py} +15 -15
  151. magic_hour/types/params/v1_ai_photo_editor_create_body_assets.py +33 -0
  152. magic_hour/types/params/{post_v1_ai_photo_editor_body_style.py → v1_ai_photo_editor_create_body_style.py} +20 -4
  153. magic_hour/types/params/v1_ai_photo_editor_generate_body_assets.py +17 -0
  154. magic_hour/types/params/v1_ai_qr_code_generator_create_body.py +45 -0
  155. magic_hour/types/params/{post_v1_ai_qr_code_generator_body_style.py → v1_ai_qr_code_generator_create_body_style.py} +4 -4
  156. magic_hour/types/params/v1_ai_talking_photo_create_body.py +68 -0
  157. magic_hour/types/params/v1_ai_talking_photo_create_body_assets.py +46 -0
  158. magic_hour/types/params/v1_ai_talking_photo_create_body_style.py +44 -0
  159. magic_hour/types/params/v1_ai_talking_photo_generate_body_assets.py +26 -0
  160. magic_hour/types/params/v1_ai_voice_cloner_create_body.py +49 -0
  161. magic_hour/types/params/v1_ai_voice_cloner_create_body_assets.py +33 -0
  162. magic_hour/types/params/v1_ai_voice_cloner_create_body_style.py +28 -0
  163. magic_hour/types/params/v1_ai_voice_cloner_generate_body_assets.py +28 -0
  164. magic_hour/types/params/v1_ai_voice_generator_create_body.py +40 -0
  165. magic_hour/types/params/v1_ai_voice_generator_create_body_style.py +440 -0
  166. magic_hour/types/params/{post_v1_animation_body.py → v1_animation_create_body.py} +16 -16
  167. magic_hour/types/params/{post_v1_animation_body_assets.py → v1_animation_create_body_assets.py} +15 -5
  168. magic_hour/types/params/{post_v1_animation_body_style.py → v1_animation_create_body_style.py} +13 -10
  169. magic_hour/types/params/v1_animation_generate_body_assets.py +39 -0
  170. magic_hour/types/params/v1_auto_subtitle_generator_create_body.py +78 -0
  171. magic_hour/types/params/v1_auto_subtitle_generator_create_body_assets.py +33 -0
  172. magic_hour/types/params/v1_auto_subtitle_generator_create_body_style.py +56 -0
  173. magic_hour/types/params/v1_auto_subtitle_generator_create_body_style_custom_config.py +86 -0
  174. magic_hour/types/params/v1_auto_subtitle_generator_generate_body_assets.py +17 -0
  175. magic_hour/types/params/v1_face_detection_create_body.py +44 -0
  176. magic_hour/types/params/v1_face_detection_create_body_assets.py +33 -0
  177. magic_hour/types/params/v1_face_detection_generate_body_assets.py +17 -0
  178. magic_hour/types/params/v1_face_swap_create_body.py +92 -0
  179. magic_hour/types/params/v1_face_swap_create_body_assets.py +91 -0
  180. magic_hour/types/params/v1_face_swap_create_body_assets_face_mappings_item.py +44 -0
  181. magic_hour/types/params/v1_face_swap_create_body_style.py +33 -0
  182. magic_hour/types/params/v1_face_swap_generate_body_assets.py +56 -0
  183. magic_hour/types/params/v1_face_swap_generate_body_assets_face_mappings_item.py +25 -0
  184. magic_hour/types/params/v1_face_swap_photo_create_body.py +40 -0
  185. magic_hour/types/params/v1_face_swap_photo_create_body_assets.py +76 -0
  186. magic_hour/types/params/v1_face_swap_photo_create_body_assets_face_mappings_item.py +44 -0
  187. magic_hour/types/params/v1_face_swap_photo_generate_body_assets.py +47 -0
  188. magic_hour/types/params/v1_face_swap_photo_generate_body_assets_face_mappings_item.py +25 -0
  189. magic_hour/types/params/v1_files_upload_urls_create_body.py +36 -0
  190. magic_hour/types/params/v1_files_upload_urls_create_body_items_item.py +38 -0
  191. magic_hour/types/params/v1_image_background_remover_create_body.py +40 -0
  192. magic_hour/types/params/v1_image_background_remover_create_body_assets.py +49 -0
  193. magic_hour/types/params/v1_image_background_remover_generate_body_assets.py +27 -0
  194. magic_hour/types/params/v1_image_to_video_create_body.py +101 -0
  195. magic_hour/types/params/v1_image_to_video_create_body_assets.py +33 -0
  196. magic_hour/types/params/v1_image_to_video_create_body_style.py +53 -0
  197. magic_hour/types/params/v1_image_to_video_generate_body_assets.py +17 -0
  198. magic_hour/types/params/v1_lip_sync_create_body.py +100 -0
  199. magic_hour/types/params/{post_v1_lip_sync_body_assets.py → v1_lip_sync_create_body_assets.py} +15 -5
  200. magic_hour/types/params/v1_lip_sync_create_body_style.py +37 -0
  201. magic_hour/types/params/v1_lip_sync_generate_body_assets.py +36 -0
  202. magic_hour/types/params/v1_photo_colorizer_create_body.py +40 -0
  203. magic_hour/types/params/v1_photo_colorizer_create_body_assets.py +33 -0
  204. magic_hour/types/params/v1_photo_colorizer_generate_body_assets.py +17 -0
  205. magic_hour/types/params/v1_text_to_video_create_body.py +78 -0
  206. magic_hour/types/params/v1_text_to_video_create_body_style.py +43 -0
  207. magic_hour/types/params/v1_video_to_video_create_body.py +101 -0
  208. magic_hour/types/params/{post_v1_video_to_video_body_assets.py → v1_video_to_video_create_body_assets.py} +9 -4
  209. magic_hour/types/params/{post_v1_video_to_video_body_style.py → v1_video_to_video_create_body_style.py} +68 -26
  210. magic_hour/types/params/v1_video_to_video_generate_body_assets.py +27 -0
  211. magic_hour-0.44.0.dist-info/METADATA +328 -0
  212. magic_hour-0.44.0.dist-info/RECORD +231 -0
  213. magic_hour/core/__init__.py +0 -52
  214. magic_hour/core/api_error.py +0 -56
  215. magic_hour/core/auth.py +0 -314
  216. magic_hour/core/base_client.py +0 -618
  217. magic_hour/core/binary_response.py +0 -23
  218. magic_hour/core/query.py +0 -106
  219. magic_hour/core/request.py +0 -156
  220. magic_hour/core/response.py +0 -293
  221. magic_hour/core/type_utils.py +0 -28
  222. magic_hour/core/utils.py +0 -55
  223. magic_hour/types/models/post_v1_ai_clothes_changer_response.py +0 -25
  224. magic_hour/types/models/post_v1_ai_headshot_generator_response.py +0 -25
  225. magic_hour/types/models/post_v1_ai_image_generator_response.py +0 -25
  226. magic_hour/types/models/post_v1_ai_image_upscaler_response.py +0 -25
  227. magic_hour/types/models/post_v1_ai_photo_editor_response.py +0 -25
  228. magic_hour/types/models/post_v1_ai_qr_code_generator_response.py +0 -25
  229. magic_hour/types/models/post_v1_animation_response.py +0 -25
  230. magic_hour/types/models/post_v1_face_swap_photo_response.py +0 -25
  231. magic_hour/types/models/post_v1_face_swap_response.py +0 -25
  232. magic_hour/types/models/post_v1_files_upload_urls_response.py +0 -21
  233. magic_hour/types/models/post_v1_image_background_remover_response.py +0 -25
  234. magic_hour/types/models/post_v1_image_to_video_response.py +0 -25
  235. magic_hour/types/models/post_v1_lip_sync_response.py +0 -25
  236. magic_hour/types/models/post_v1_text_to_video_response.py +0 -25
  237. magic_hour/types/models/post_v1_video_to_video_response.py +0 -25
  238. magic_hour/types/params/post_v1_ai_clothes_changer_body.py +0 -40
  239. magic_hour/types/params/post_v1_ai_clothes_changer_body_assets.py +0 -45
  240. magic_hour/types/params/post_v1_ai_headshot_generator_body.py +0 -40
  241. magic_hour/types/params/post_v1_ai_headshot_generator_body_assets.py +0 -28
  242. magic_hour/types/params/post_v1_ai_image_upscaler_body.py +0 -57
  243. magic_hour/types/params/post_v1_ai_image_upscaler_body_assets.py +0 -28
  244. magic_hour/types/params/post_v1_ai_photo_editor_body_assets.py +0 -28
  245. magic_hour/types/params/post_v1_ai_qr_code_generator_body.py +0 -45
  246. magic_hour/types/params/post_v1_face_swap_body.py +0 -72
  247. magic_hour/types/params/post_v1_face_swap_body_assets.py +0 -52
  248. magic_hour/types/params/post_v1_face_swap_photo_body.py +0 -40
  249. magic_hour/types/params/post_v1_face_swap_photo_body_assets.py +0 -36
  250. magic_hour/types/params/post_v1_files_upload_urls_body.py +0 -31
  251. magic_hour/types/params/post_v1_files_upload_urls_body_items_item.py +0 -38
  252. magic_hour/types/params/post_v1_image_background_remover_body.py +0 -40
  253. magic_hour/types/params/post_v1_image_background_remover_body_assets.py +0 -28
  254. magic_hour/types/params/post_v1_image_to_video_body.py +0 -73
  255. magic_hour/types/params/post_v1_image_to_video_body_assets.py +0 -28
  256. magic_hour/types/params/post_v1_image_to_video_body_style.py +0 -37
  257. magic_hour/types/params/post_v1_lip_sync_body.py +0 -80
  258. magic_hour/types/params/post_v1_text_to_video_body.py +0 -57
  259. magic_hour/types/params/post_v1_text_to_video_body_style.py +0 -28
  260. magic_hour/types/params/post_v1_video_to_video_body.py +0 -93
  261. magic_hour-0.9.5.dist-info/METADATA +0 -133
  262. magic_hour-0.9.5.dist-info/RECORD +0 -132
  263. {magic_hour-0.9.5.dist-info → magic_hour-0.44.0.dist-info}/LICENSE +0 -0
  264. {magic_hour-0.9.5.dist-info → magic_hour-0.44.0.dist-info}/WHEEL +0 -0
@@ -1,60 +1,96 @@
1
- from .get_v1_image_projects_id_response import GetV1ImageProjectsIdResponse
2
- from .get_v1_image_projects_id_response_downloads_item import (
3
- GetV1ImageProjectsIdResponseDownloadsItem,
4
- )
5
- from .get_v1_image_projects_id_response_error import GetV1ImageProjectsIdResponseError
6
- from .get_v1_video_projects_id_response import GetV1VideoProjectsIdResponse
7
- from .get_v1_video_projects_id_response_download import (
8
- GetV1VideoProjectsIdResponseDownload,
9
- )
10
- from .get_v1_video_projects_id_response_downloads_item import (
11
- GetV1VideoProjectsIdResponseDownloadsItem,
12
- )
13
- from .get_v1_video_projects_id_response_error import GetV1VideoProjectsIdResponseError
14
- from .post_v1_ai_clothes_changer_response import PostV1AiClothesChangerResponse
15
- from .post_v1_ai_headshot_generator_response import PostV1AiHeadshotGeneratorResponse
16
- from .post_v1_ai_image_generator_response import PostV1AiImageGeneratorResponse
17
- from .post_v1_ai_image_upscaler_response import PostV1AiImageUpscalerResponse
18
- from .post_v1_ai_photo_editor_response import PostV1AiPhotoEditorResponse
19
- from .post_v1_ai_qr_code_generator_response import PostV1AiQrCodeGeneratorResponse
20
- from .post_v1_animation_response import PostV1AnimationResponse
21
- from .post_v1_face_swap_photo_response import PostV1FaceSwapPhotoResponse
22
- from .post_v1_face_swap_response import PostV1FaceSwapResponse
23
- from .post_v1_files_upload_urls_response import PostV1FilesUploadUrlsResponse
24
- from .post_v1_files_upload_urls_response_items_item import (
25
- PostV1FilesUploadUrlsResponseItemsItem,
26
- )
27
- from .post_v1_image_background_remover_response import (
28
- PostV1ImageBackgroundRemoverResponse,
29
- )
30
- from .post_v1_image_to_video_response import PostV1ImageToVideoResponse
31
- from .post_v1_lip_sync_response import PostV1LipSyncResponse
32
- from .post_v1_text_to_video_response import PostV1TextToVideoResponse
33
- from .post_v1_video_to_video_response import PostV1VideoToVideoResponse
1
+ from .v1_ai_clothes_changer_create_response import V1AiClothesChangerCreateResponse
2
+ from .v1_ai_face_editor_create_response import V1AiFaceEditorCreateResponse
3
+ from .v1_ai_gif_generator_create_response import V1AiGifGeneratorCreateResponse
4
+ from .v1_ai_headshot_generator_create_response import (
5
+ V1AiHeadshotGeneratorCreateResponse,
6
+ )
7
+ from .v1_ai_image_editor_create_response import V1AiImageEditorCreateResponse
8
+ from .v1_ai_image_generator_create_response import V1AiImageGeneratorCreateResponse
9
+ from .v1_ai_image_upscaler_create_response import V1AiImageUpscalerCreateResponse
10
+ from .v1_ai_meme_generator_create_response import V1AiMemeGeneratorCreateResponse
11
+ from .v1_ai_photo_editor_create_response import V1AiPhotoEditorCreateResponse
12
+ from .v1_ai_qr_code_generator_create_response import V1AiQrCodeGeneratorCreateResponse
13
+ from .v1_ai_talking_photo_create_response import V1AiTalkingPhotoCreateResponse
14
+ from .v1_ai_voice_cloner_create_response import V1AiVoiceClonerCreateResponse
15
+ from .v1_ai_voice_generator_create_response import V1AiVoiceGeneratorCreateResponse
16
+ from .v1_animation_create_response import V1AnimationCreateResponse
17
+ from .v1_audio_projects_get_response import V1AudioProjectsGetResponse
18
+ from .v1_audio_projects_get_response_downloads_item import (
19
+ V1AudioProjectsGetResponseDownloadsItem,
20
+ )
21
+ from .v1_audio_projects_get_response_error import V1AudioProjectsGetResponseError
22
+ from .v1_auto_subtitle_generator_create_response import (
23
+ V1AutoSubtitleGeneratorCreateResponse,
24
+ )
25
+ from .v1_face_detection_create_response import V1FaceDetectionCreateResponse
26
+ from .v1_face_detection_get_response import V1FaceDetectionGetResponse
27
+ from .v1_face_detection_get_response_faces_item import (
28
+ V1FaceDetectionGetResponseFacesItem,
29
+ )
30
+ from .v1_face_swap_create_response import V1FaceSwapCreateResponse
31
+ from .v1_face_swap_photo_create_response import V1FaceSwapPhotoCreateResponse
32
+ from .v1_files_upload_urls_create_response import V1FilesUploadUrlsCreateResponse
33
+ from .v1_files_upload_urls_create_response_items_item import (
34
+ V1FilesUploadUrlsCreateResponseItemsItem,
35
+ )
36
+ from .v1_image_background_remover_create_response import (
37
+ V1ImageBackgroundRemoverCreateResponse,
38
+ )
39
+ from .v1_image_projects_get_response import V1ImageProjectsGetResponse
40
+ from .v1_image_projects_get_response_downloads_item import (
41
+ V1ImageProjectsGetResponseDownloadsItem,
42
+ )
43
+ from .v1_image_projects_get_response_error import V1ImageProjectsGetResponseError
44
+ from .v1_image_to_video_create_response import V1ImageToVideoCreateResponse
45
+ from .v1_lip_sync_create_response import V1LipSyncCreateResponse
46
+ from .v1_photo_colorizer_create_response import V1PhotoColorizerCreateResponse
47
+ from .v1_text_to_video_create_response import V1TextToVideoCreateResponse
48
+ from .v1_video_projects_get_response import V1VideoProjectsGetResponse
49
+ from .v1_video_projects_get_response_download import V1VideoProjectsGetResponseDownload
50
+ from .v1_video_projects_get_response_downloads_item import (
51
+ V1VideoProjectsGetResponseDownloadsItem,
52
+ )
53
+ from .v1_video_projects_get_response_error import V1VideoProjectsGetResponseError
54
+ from .v1_video_to_video_create_response import V1VideoToVideoCreateResponse
34
55
 
35
56
 
36
57
  __all__ = [
37
- "GetV1ImageProjectsIdResponse",
38
- "GetV1ImageProjectsIdResponseDownloadsItem",
39
- "GetV1ImageProjectsIdResponseError",
40
- "GetV1VideoProjectsIdResponse",
41
- "GetV1VideoProjectsIdResponseDownload",
42
- "GetV1VideoProjectsIdResponseDownloadsItem",
43
- "GetV1VideoProjectsIdResponseError",
44
- "PostV1AiClothesChangerResponse",
45
- "PostV1AiHeadshotGeneratorResponse",
46
- "PostV1AiImageGeneratorResponse",
47
- "PostV1AiImageUpscalerResponse",
48
- "PostV1AiPhotoEditorResponse",
49
- "PostV1AiQrCodeGeneratorResponse",
50
- "PostV1AnimationResponse",
51
- "PostV1FaceSwapPhotoResponse",
52
- "PostV1FaceSwapResponse",
53
- "PostV1FilesUploadUrlsResponse",
54
- "PostV1FilesUploadUrlsResponseItemsItem",
55
- "PostV1ImageBackgroundRemoverResponse",
56
- "PostV1ImageToVideoResponse",
57
- "PostV1LipSyncResponse",
58
- "PostV1TextToVideoResponse",
59
- "PostV1VideoToVideoResponse",
58
+ "V1AiClothesChangerCreateResponse",
59
+ "V1AiFaceEditorCreateResponse",
60
+ "V1AiGifGeneratorCreateResponse",
61
+ "V1AiHeadshotGeneratorCreateResponse",
62
+ "V1AiImageEditorCreateResponse",
63
+ "V1AiImageGeneratorCreateResponse",
64
+ "V1AiImageUpscalerCreateResponse",
65
+ "V1AiMemeGeneratorCreateResponse",
66
+ "V1AiPhotoEditorCreateResponse",
67
+ "V1AiQrCodeGeneratorCreateResponse",
68
+ "V1AiTalkingPhotoCreateResponse",
69
+ "V1AiVoiceClonerCreateResponse",
70
+ "V1AiVoiceGeneratorCreateResponse",
71
+ "V1AnimationCreateResponse",
72
+ "V1AudioProjectsGetResponse",
73
+ "V1AudioProjectsGetResponseDownloadsItem",
74
+ "V1AudioProjectsGetResponseError",
75
+ "V1AutoSubtitleGeneratorCreateResponse",
76
+ "V1FaceDetectionCreateResponse",
77
+ "V1FaceDetectionGetResponse",
78
+ "V1FaceDetectionGetResponseFacesItem",
79
+ "V1FaceSwapCreateResponse",
80
+ "V1FaceSwapPhotoCreateResponse",
81
+ "V1FilesUploadUrlsCreateResponse",
82
+ "V1FilesUploadUrlsCreateResponseItemsItem",
83
+ "V1ImageBackgroundRemoverCreateResponse",
84
+ "V1ImageProjectsGetResponse",
85
+ "V1ImageProjectsGetResponseDownloadsItem",
86
+ "V1ImageProjectsGetResponseError",
87
+ "V1ImageToVideoCreateResponse",
88
+ "V1LipSyncCreateResponse",
89
+ "V1PhotoColorizerCreateResponse",
90
+ "V1TextToVideoCreateResponse",
91
+ "V1VideoProjectsGetResponse",
92
+ "V1VideoProjectsGetResponseDownload",
93
+ "V1VideoProjectsGetResponseDownloadsItem",
94
+ "V1VideoProjectsGetResponseError",
95
+ "V1VideoToVideoCreateResponse",
60
96
  ]
@@ -0,0 +1,33 @@
1
+ import pydantic
2
+
3
+
4
+ class V1AiClothesChangerCreateResponse(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
+ credits_charged: int = pydantic.Field(
15
+ alias="credits_charged",
16
+ )
17
+ """
18
+ The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.
19
+
20
+ If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.
21
+ """
22
+ frame_cost: int = pydantic.Field(
23
+ alias="frame_cost",
24
+ )
25
+ """
26
+ Deprecated: Previously represented the number of frames (original name of our credit system) used for image generation. Use 'credits_charged' instead.
27
+ """
28
+ id: str = pydantic.Field(
29
+ alias="id",
30
+ )
31
+ """
32
+ Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
33
+ """
@@ -0,0 +1,33 @@
1
+ import pydantic
2
+
3
+
4
+ class V1AiFaceEditorCreateResponse(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
+ credits_charged: int = pydantic.Field(
15
+ alias="credits_charged",
16
+ )
17
+ """
18
+ The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.
19
+
20
+ If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.
21
+ """
22
+ frame_cost: int = pydantic.Field(
23
+ alias="frame_cost",
24
+ )
25
+ """
26
+ Deprecated: Previously represented the number of frames (original name of our credit system) used for image generation. Use 'credits_charged' instead.
27
+ """
28
+ id: str = pydantic.Field(
29
+ alias="id",
30
+ )
31
+ """
32
+ Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
33
+ """
@@ -0,0 +1,33 @@
1
+ import pydantic
2
+
3
+
4
+ class V1AiGifGeneratorCreateResponse(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
+ credits_charged: int = pydantic.Field(
15
+ alias="credits_charged",
16
+ )
17
+ """
18
+ The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.
19
+
20
+ If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.
21
+ """
22
+ frame_cost: int = pydantic.Field(
23
+ alias="frame_cost",
24
+ )
25
+ """
26
+ Deprecated: Previously represented the number of frames (original name of our credit system) used for image generation. Use 'credits_charged' instead.
27
+ """
28
+ id: str = pydantic.Field(
29
+ alias="id",
30
+ )
31
+ """
32
+ Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
33
+ """
@@ -0,0 +1,33 @@
1
+ import pydantic
2
+
3
+
4
+ class V1AiHeadshotGeneratorCreateResponse(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
+ credits_charged: int = pydantic.Field(
15
+ alias="credits_charged",
16
+ )
17
+ """
18
+ The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.
19
+
20
+ If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.
21
+ """
22
+ frame_cost: int = pydantic.Field(
23
+ alias="frame_cost",
24
+ )
25
+ """
26
+ Deprecated: Previously represented the number of frames (original name of our credit system) used for image generation. Use 'credits_charged' instead.
27
+ """
28
+ id: str = pydantic.Field(
29
+ alias="id",
30
+ )
31
+ """
32
+ Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
33
+ """
@@ -0,0 +1,33 @@
1
+ import pydantic
2
+
3
+
4
+ class V1AiImageEditorCreateResponse(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
+ credits_charged: int = pydantic.Field(
15
+ alias="credits_charged",
16
+ )
17
+ """
18
+ The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.
19
+
20
+ If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.
21
+ """
22
+ frame_cost: int = pydantic.Field(
23
+ alias="frame_cost",
24
+ )
25
+ """
26
+ Deprecated: Previously represented the number of frames (original name of our credit system) used for image generation. Use 'credits_charged' instead.
27
+ """
28
+ id: str = pydantic.Field(
29
+ alias="id",
30
+ )
31
+ """
32
+ Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
33
+ """
@@ -0,0 +1,33 @@
1
+ import pydantic
2
+
3
+
4
+ class V1AiImageGeneratorCreateResponse(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
+ credits_charged: int = pydantic.Field(
15
+ alias="credits_charged",
16
+ )
17
+ """
18
+ The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.
19
+
20
+ If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.
21
+ """
22
+ frame_cost: int = pydantic.Field(
23
+ alias="frame_cost",
24
+ )
25
+ """
26
+ Deprecated: Previously represented the number of frames (original name of our credit system) used for image generation. Use 'credits_charged' instead.
27
+ """
28
+ id: str = pydantic.Field(
29
+ alias="id",
30
+ )
31
+ """
32
+ Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
33
+ """
@@ -0,0 +1,33 @@
1
+ import pydantic
2
+
3
+
4
+ class V1AiImageUpscalerCreateResponse(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
+ credits_charged: int = pydantic.Field(
15
+ alias="credits_charged",
16
+ )
17
+ """
18
+ The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.
19
+
20
+ If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.
21
+ """
22
+ frame_cost: int = pydantic.Field(
23
+ alias="frame_cost",
24
+ )
25
+ """
26
+ Deprecated: Previously represented the number of frames (original name of our credit system) used for image generation. Use 'credits_charged' instead.
27
+ """
28
+ id: str = pydantic.Field(
29
+ alias="id",
30
+ )
31
+ """
32
+ Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
33
+ """
@@ -0,0 +1,33 @@
1
+ import pydantic
2
+
3
+
4
+ class V1AiMemeGeneratorCreateResponse(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
+ credits_charged: int = pydantic.Field(
15
+ alias="credits_charged",
16
+ )
17
+ """
18
+ The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.
19
+
20
+ If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.
21
+ """
22
+ frame_cost: int = pydantic.Field(
23
+ alias="frame_cost",
24
+ )
25
+ """
26
+ Deprecated: Previously represented the number of frames (original name of our credit system) used for image generation. Use 'credits_charged' instead.
27
+ """
28
+ id: str = pydantic.Field(
29
+ alias="id",
30
+ )
31
+ """
32
+ Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
33
+ """
@@ -0,0 +1,33 @@
1
+ import pydantic
2
+
3
+
4
+ class V1AiPhotoEditorCreateResponse(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
+ credits_charged: int = pydantic.Field(
15
+ alias="credits_charged",
16
+ )
17
+ """
18
+ The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.
19
+
20
+ If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.
21
+ """
22
+ frame_cost: int = pydantic.Field(
23
+ alias="frame_cost",
24
+ )
25
+ """
26
+ Deprecated: Previously represented the number of frames (original name of our credit system) used for image generation. Use 'credits_charged' instead.
27
+ """
28
+ id: str = pydantic.Field(
29
+ alias="id",
30
+ )
31
+ """
32
+ Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
33
+ """
@@ -0,0 +1,33 @@
1
+ import pydantic
2
+
3
+
4
+ class V1AiQrCodeGeneratorCreateResponse(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
+ credits_charged: int = pydantic.Field(
15
+ alias="credits_charged",
16
+ )
17
+ """
18
+ The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.
19
+
20
+ If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.
21
+ """
22
+ frame_cost: int = pydantic.Field(
23
+ alias="frame_cost",
24
+ )
25
+ """
26
+ Deprecated: Previously represented the number of frames (original name of our credit system) used for image generation. Use 'credits_charged' instead.
27
+ """
28
+ id: str = pydantic.Field(
29
+ alias="id",
30
+ )
31
+ """
32
+ Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
33
+ """
@@ -0,0 +1,35 @@
1
+ import pydantic
2
+
3
+
4
+ class V1AiTalkingPhotoCreateResponse(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
+ credits_charged: int = pydantic.Field(
15
+ alias="credits_charged",
16
+ )
17
+ """
18
+ The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video.
19
+
20
+ If video generation fails, credits will be refunded, and this field will be updated to include the refund.
21
+ """
22
+ estimated_frame_cost: int = pydantic.Field(
23
+ alias="estimated_frame_cost",
24
+ )
25
+ """
26
+ Deprecated: Previously represented the number of frames (original name of our credit system) used for video generation. Use 'credits_charged' instead.
27
+
28
+ 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.
29
+ """
30
+ id: str = pydantic.Field(
31
+ alias="id",
32
+ )
33
+ """
34
+ 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
35
+ """
@@ -0,0 +1,27 @@
1
+ import pydantic
2
+
3
+
4
+ class V1AiVoiceClonerCreateResponse(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
+ credits_charged: int = pydantic.Field(
15
+ alias="credits_charged",
16
+ )
17
+ """
18
+ The amount of credits deducted from your account to generate the audio. We charge credits right when the request is made.
19
+
20
+ If an error occurred while generating the audio, credits will be refunded and this field will be updated to include the refund.
21
+ """
22
+ id: str = pydantic.Field(
23
+ alias="id",
24
+ )
25
+ """
26
+ Unique ID of the audio. This value can be used in the [get audio project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch additional details such as status
27
+ """
@@ -0,0 +1,27 @@
1
+ import pydantic
2
+
3
+
4
+ class V1AiVoiceGeneratorCreateResponse(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
+ credits_charged: int = pydantic.Field(
15
+ alias="credits_charged",
16
+ )
17
+ """
18
+ The amount of credits deducted from your account to generate the audio. We charge credits right when the request is made.
19
+
20
+ If an error occurred while generating the audio, credits will be refunded and this field will be updated to include the refund.
21
+ """
22
+ id: str = pydantic.Field(
23
+ alias="id",
24
+ )
25
+ """
26
+ Unique ID of the audio. This value can be used in the [get audio project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch additional details such as status
27
+ """
@@ -0,0 +1,35 @@
1
+ import pydantic
2
+
3
+
4
+ class V1AnimationCreateResponse(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
+ credits_charged: int = pydantic.Field(
15
+ alias="credits_charged",
16
+ )
17
+ """
18
+ The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video.
19
+
20
+ If video generation fails, credits will be refunded, and this field will be updated to include the refund.
21
+ """
22
+ estimated_frame_cost: int = pydantic.Field(
23
+ alias="estimated_frame_cost",
24
+ )
25
+ """
26
+ Deprecated: Previously represented the number of frames (original name of our credit system) used for video generation. Use 'credits_charged' instead.
27
+
28
+ 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.
29
+ """
30
+ id: str = pydantic.Field(
31
+ alias="id",
32
+ )
33
+ """
34
+ 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
35
+ """