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
@@ -0,0 +1,440 @@
1
+ import pydantic
2
+ import typing_extensions
3
+
4
+
5
+ class V1AiVoiceGeneratorCreateBodyStyle(typing_extensions.TypedDict):
6
+ """
7
+ The content used to generate speech.
8
+ """
9
+
10
+ prompt: typing_extensions.Required[str]
11
+ """
12
+ Text used to generate speech. Starter tier users can use up to 1000 characters, while Creator, Pro, or Business users can use up to 1000.
13
+ """
14
+
15
+ voice_name: typing_extensions.Required[
16
+ typing_extensions.Literal[
17
+ "A.R. Rahman",
18
+ "Aamir Khan",
19
+ "Abraham Lincoln",
20
+ "Adam Driver",
21
+ "Ajay Devgn",
22
+ "Akshay Kumar",
23
+ "Alain Delon",
24
+ "Alan Alda",
25
+ "Alan Cumming",
26
+ "Alan Rickman",
27
+ "Albert Einstein",
28
+ "Alex Trebek",
29
+ "Alexz Johnson",
30
+ "Amitabh Bachchan",
31
+ "Amy Poehler",
32
+ "Ana Gasteyer",
33
+ "Andrew Rannells",
34
+ "Ang Lee",
35
+ "Anne Hathaway",
36
+ "Ansel Elgort",
37
+ "Anthony Anderson",
38
+ "Anthony Mackie",
39
+ "Arden Cho",
40
+ "Armie Hammer",
41
+ "Asa Butterfield",
42
+ "B.J. Novak",
43
+ "Barack Obama",
44
+ "Barbara Eden",
45
+ "Bear Grylls",
46
+ "Ben McKenzie",
47
+ "Ben Stiller",
48
+ "Ben Whishaw",
49
+ "Betty White",
50
+ "Bill Nighy",
51
+ "Bill Pullman",
52
+ "Billie Joe Armstrong",
53
+ "Bingbing Li",
54
+ "Blake Shelton",
55
+ "Bob Barker",
56
+ "Bonnie Wright",
57
+ "Booboo Stewart",
58
+ "Brad Paisley",
59
+ "Bradley Steven Perry",
60
+ "Brendan Gleeson",
61
+ "Brian Cox",
62
+ "Bruno Ganz",
63
+ "Bruno Mars",
64
+ "Burt Reynolds",
65
+ "Caitriona Balfe",
66
+ "Caity Lotz",
67
+ "Cameron Boyce",
68
+ "Candice Accola",
69
+ "Carrie Fisher",
70
+ "Carrie Underwood",
71
+ "Casey Affleck",
72
+ "Caterina Scorsone",
73
+ "Cedric the Entertainer",
74
+ "Chace Crawford",
75
+ "Chadwick Boseman",
76
+ "Charles Dance",
77
+ "Charlie Chaplin",
78
+ "Charlie Day",
79
+ "Chiwetel Ejiofor",
80
+ "Chris Hemsworth",
81
+ "Chris Martin",
82
+ "Chris Pine",
83
+ "Christina Hendricks",
84
+ "Christina Ricci",
85
+ "Christopher Mintz-Plasse",
86
+ "Cillian Murphy",
87
+ "Cyndi Lauper",
88
+ "Dakota Fanning",
89
+ "Damian Lewis",
90
+ "Dan Aykroyd",
91
+ "Dan Fogler",
92
+ "Dan Stevens",
93
+ "Daniel Craig",
94
+ "Daniel Dae Kim",
95
+ "Danielle Panabaker",
96
+ "Dave Bautista",
97
+ "David Attenborough",
98
+ "David Letterman",
99
+ "David Oyelowo",
100
+ "David Schwimmer",
101
+ "David Tennant",
102
+ "Denis Leary",
103
+ "Derek Mears",
104
+ "Diane Keaton",
105
+ "Diane Kruger",
106
+ "Dick Van Dyke",
107
+ "Diego Luna",
108
+ "Domhnall Gleeson",
109
+ "Dominic Cooper",
110
+ "Donald Glover",
111
+ "Donald Sutherland",
112
+ "Donald Trump",
113
+ "Donnie Yen",
114
+ "Doutzen Kroes",
115
+ "Dove Cameron",
116
+ "Dr. Dre",
117
+ "Drake Bell",
118
+ "Drew Carey",
119
+ "Eartha Kitt",
120
+ "Eddie Izzard",
121
+ "Edward Asner",
122
+ "Eli Roth",
123
+ "Elisabeth Moss",
124
+ "Elle Fanning",
125
+ "Ellen Burstyn",
126
+ "Elon Musk",
127
+ "Emile Hirsch",
128
+ "Ernie Hudson",
129
+ "Ezra Miller",
130
+ "Felicity Jones",
131
+ "Fergie",
132
+ "Fiona Shaw",
133
+ "Florence Henderson",
134
+ "Forest Whitaker",
135
+ "Francia Raisa",
136
+ "Freddie Highmore",
137
+ "Freida Pinto",
138
+ "Geena Davis",
139
+ "Gemma Arterton",
140
+ "Geri Halliwell",
141
+ "Gillian Jacobs",
142
+ "Gina Carano",
143
+ "Ginnifer Goodwin",
144
+ "Glenn Close",
145
+ "Gloria Steinem",
146
+ "Gordon Ramsay",
147
+ "Greta Gerwig",
148
+ "Gugu Mbatha-Raw",
149
+ "Guy Pearce",
150
+ "Gwendoline Christie",
151
+ "Hailee Steinfeld",
152
+ "Hans Zimmer",
153
+ "Harry Connick Jr.",
154
+ "Harvey Keitel",
155
+ "Helena Bonham Carter",
156
+ "Henry Cavill",
157
+ "Hilary Swank",
158
+ "Howie Mandel",
159
+ "Hugh Bonneville",
160
+ "Hugh Jackman",
161
+ "Hugh Laurie",
162
+ "Idina Menzel",
163
+ "Imelda Staunton",
164
+ "Ingrid Bergman",
165
+ "Irrfan Khan",
166
+ "Isla Fisher",
167
+ "Iwan Rheon",
168
+ "J. K. Simmons",
169
+ "J.J. Abrams",
170
+ "Jack Black",
171
+ "Jack Lemmon",
172
+ "James Earl Jones",
173
+ "Janet Jackson",
174
+ "Jared Leto",
175
+ "Jason Bateman",
176
+ "Jason Segel",
177
+ "Jeff Goldblum",
178
+ "Jennifer Carpenter",
179
+ "Jennifer Coolidge",
180
+ "Jimmy Fallon",
181
+ "Joe Biden",
182
+ "Joe Rogan",
183
+ "John F. Kennedy",
184
+ "Johnny Galecki",
185
+ "Jon Favreau",
186
+ "Joseph Gordon-Levitt",
187
+ "Josh Brolin",
188
+ "Josh Gad",
189
+ "Josh Groban",
190
+ "Julia Louis-Dreyfus",
191
+ "Julia Roberts",
192
+ "Kanye West",
193
+ "Katy Perry",
194
+ "Kesha",
195
+ "Kevin Bacon",
196
+ "Kim Kardashian",
197
+ "Kris Jenner",
198
+ "Kristen Bell",
199
+ "Kristen Stewart",
200
+ "Kristen Wiig",
201
+ "Lorde",
202
+ "Lucille Ball",
203
+ "Marilyn Monroe",
204
+ "Mark Zuckerberg",
205
+ "Matt Smith",
206
+ "Morgan Freeman",
207
+ "Natalie Portman",
208
+ "Prince",
209
+ "Rooney Mara",
210
+ "Samuel L. Jackson",
211
+ "Sean Connery",
212
+ "Stephen Colbert",
213
+ "Steve Carell",
214
+ "Taylor Swift",
215
+ "Tom Hiddleston",
216
+ "Zoe Saldana",
217
+ ]
218
+ ]
219
+ """
220
+ The voice to use for the speech. Available voices: Elon Musk, Mark Zuckerberg, Joe Rogan, Barack Obama, Morgan Freeman, Kanye West, Donald Trump, Joe Biden, Kim Kardashian, Taylor Swift, James Earl Jones, Samuel L. Jackson, Jeff Goldblum, David Attenborough, Sean Connery, Cillian Murphy, Anne Hathaway, Julia Roberts, Natalie Portman, Steve Carell, Amy Poehler, Stephen Colbert, Jimmy Fallon, David Letterman, Alex Trebek, Katy Perry, Prince, Kevin Bacon, Tom Hiddleston, Adam Driver, Alan Rickman, Alexz Johnson, Ana Gasteyer, Andrew Rannells, Arden Cho, Bear Grylls, Ben McKenzie, Ben Stiller, Ben Whishaw, Billie Joe Armstrong, Bingbing Li, Bob Barker, Booboo Stewart, Bradley Steven Perry, Bruno Mars, Caity Lotz, Cameron Boyce, Candice Accola, Carrie Underwood, Casey Affleck, Caterina Scorsone, Cedric the Entertainer, Chace Crawford, Chadwick Boseman, Charlie Day, Chris Hemsworth, Chris Martin, Christopher Mintz-Plasse, Dan Fogler, Dan Stevens, Daniel Dae Kim, Danielle Panabaker, Dave Bautista, David Schwimmer, Denis Leary, Derek Mears, Diego Luna, Donald Glover, Donnie Yen, Doutzen Kroes, Dove Cameron, Dr. Dre, Drake Bell, Elle Fanning, Ernie Hudson, Fergie, Forest Whitaker, Francia Raisa, Freddie Highmore, Gillian Jacobs, Gina Carano, Ginnifer Goodwin, Gordon Ramsay, Guy Pearce, Gwendoline Christie, Hailee Steinfeld, Howie Mandel, Hugh Jackman, Hugh Laurie, J. K. Simmons, Jack Black, Jared Leto, Jennifer Carpenter, Kesha, Kris Jenner, Kristen Bell, Lorde, Matt Smith, Marilyn Monroe, Charlie Chaplin, Albert Einstein, Abraham Lincoln, John F. Kennedy, Lucille Ball, A.R. Rahman, Aamir Khan, Ajay Devgn, Akshay Kumar, Alain Delon, Alan Alda, Alan Cumming, Amitabh Bachchan, Ang Lee, Ansel Elgort, Anthony Anderson, Anthony Mackie, Armie Hammer, Asa Butterfield, B.J. Novak, Barbara Eden, Betty White, Bill Nighy, Bill Pullman, Blake Shelton, Bonnie Wright, Brad Paisley, Brendan Gleeson, Brian Cox, Bruno Ganz, Burt Reynolds, Carrie Fisher, Charles Dance, Chiwetel Ejiofor, Chris Pine, Christina Hendricks, Christina Ricci, Cyndi Lauper, Dakota Fanning, Damian Lewis, Dan Aykroyd, Daniel Craig, David Oyelowo, David Tennant, Diane Keaton, Diane Kruger, Dick Van Dyke, Domhnall Gleeson, Dominic Cooper, Donald Sutherland, Drew Carey, Eartha Kitt, Eddie Izzard, Edward Asner, Eli Roth, Elisabeth Moss, Ellen Burstyn, Emile Hirsch, Ezra Miller, Felicity Jones, Fiona Shaw, Florence Henderson, Freida Pinto, Geena Davis, Gemma Arterton, Geri Halliwell, Glenn Close, Gloria Steinem, Greta Gerwig, Gugu Mbatha-Raw, Hans Zimmer, Harry Connick Jr., Harvey Keitel, Helena Bonham Carter, Henry Cavill, Hilary Swank, Hugh Bonneville, Idina Menzel, Imelda Staunton, Ingrid Bergman, Irrfan Khan, Isla Fisher, Iwan Rheon, Jack Lemmon, Janet Jackson, Jason Bateman, Jason Segel, Jennifer Coolidge, Johnny Galecki, Jon Favreau, Joseph Gordon-Levitt, Josh Brolin, Josh Gad, Josh Groban, Julia Louis-Dreyfus, Kristen Stewart, Kristen Wiig, Rooney Mara, Caitriona Balfe, J.J. Abrams, Zoe Saldana
221
+ """
222
+
223
+
224
+ class _SerializerV1AiVoiceGeneratorCreateBodyStyle(pydantic.BaseModel):
225
+ """
226
+ Serializer for V1AiVoiceGeneratorCreateBodyStyle handling case conversions
227
+ and file omissions as dictated by the API
228
+ """
229
+
230
+ model_config = pydantic.ConfigDict(
231
+ populate_by_name=True,
232
+ )
233
+
234
+ prompt: str = pydantic.Field(
235
+ alias="prompt",
236
+ )
237
+ voice_name: typing_extensions.Literal[
238
+ "A.R. Rahman",
239
+ "Aamir Khan",
240
+ "Abraham Lincoln",
241
+ "Adam Driver",
242
+ "Ajay Devgn",
243
+ "Akshay Kumar",
244
+ "Alain Delon",
245
+ "Alan Alda",
246
+ "Alan Cumming",
247
+ "Alan Rickman",
248
+ "Albert Einstein",
249
+ "Alex Trebek",
250
+ "Alexz Johnson",
251
+ "Amitabh Bachchan",
252
+ "Amy Poehler",
253
+ "Ana Gasteyer",
254
+ "Andrew Rannells",
255
+ "Ang Lee",
256
+ "Anne Hathaway",
257
+ "Ansel Elgort",
258
+ "Anthony Anderson",
259
+ "Anthony Mackie",
260
+ "Arden Cho",
261
+ "Armie Hammer",
262
+ "Asa Butterfield",
263
+ "B.J. Novak",
264
+ "Barack Obama",
265
+ "Barbara Eden",
266
+ "Bear Grylls",
267
+ "Ben McKenzie",
268
+ "Ben Stiller",
269
+ "Ben Whishaw",
270
+ "Betty White",
271
+ "Bill Nighy",
272
+ "Bill Pullman",
273
+ "Billie Joe Armstrong",
274
+ "Bingbing Li",
275
+ "Blake Shelton",
276
+ "Bob Barker",
277
+ "Bonnie Wright",
278
+ "Booboo Stewart",
279
+ "Brad Paisley",
280
+ "Bradley Steven Perry",
281
+ "Brendan Gleeson",
282
+ "Brian Cox",
283
+ "Bruno Ganz",
284
+ "Bruno Mars",
285
+ "Burt Reynolds",
286
+ "Caitriona Balfe",
287
+ "Caity Lotz",
288
+ "Cameron Boyce",
289
+ "Candice Accola",
290
+ "Carrie Fisher",
291
+ "Carrie Underwood",
292
+ "Casey Affleck",
293
+ "Caterina Scorsone",
294
+ "Cedric the Entertainer",
295
+ "Chace Crawford",
296
+ "Chadwick Boseman",
297
+ "Charles Dance",
298
+ "Charlie Chaplin",
299
+ "Charlie Day",
300
+ "Chiwetel Ejiofor",
301
+ "Chris Hemsworth",
302
+ "Chris Martin",
303
+ "Chris Pine",
304
+ "Christina Hendricks",
305
+ "Christina Ricci",
306
+ "Christopher Mintz-Plasse",
307
+ "Cillian Murphy",
308
+ "Cyndi Lauper",
309
+ "Dakota Fanning",
310
+ "Damian Lewis",
311
+ "Dan Aykroyd",
312
+ "Dan Fogler",
313
+ "Dan Stevens",
314
+ "Daniel Craig",
315
+ "Daniel Dae Kim",
316
+ "Danielle Panabaker",
317
+ "Dave Bautista",
318
+ "David Attenborough",
319
+ "David Letterman",
320
+ "David Oyelowo",
321
+ "David Schwimmer",
322
+ "David Tennant",
323
+ "Denis Leary",
324
+ "Derek Mears",
325
+ "Diane Keaton",
326
+ "Diane Kruger",
327
+ "Dick Van Dyke",
328
+ "Diego Luna",
329
+ "Domhnall Gleeson",
330
+ "Dominic Cooper",
331
+ "Donald Glover",
332
+ "Donald Sutherland",
333
+ "Donald Trump",
334
+ "Donnie Yen",
335
+ "Doutzen Kroes",
336
+ "Dove Cameron",
337
+ "Dr. Dre",
338
+ "Drake Bell",
339
+ "Drew Carey",
340
+ "Eartha Kitt",
341
+ "Eddie Izzard",
342
+ "Edward Asner",
343
+ "Eli Roth",
344
+ "Elisabeth Moss",
345
+ "Elle Fanning",
346
+ "Ellen Burstyn",
347
+ "Elon Musk",
348
+ "Emile Hirsch",
349
+ "Ernie Hudson",
350
+ "Ezra Miller",
351
+ "Felicity Jones",
352
+ "Fergie",
353
+ "Fiona Shaw",
354
+ "Florence Henderson",
355
+ "Forest Whitaker",
356
+ "Francia Raisa",
357
+ "Freddie Highmore",
358
+ "Freida Pinto",
359
+ "Geena Davis",
360
+ "Gemma Arterton",
361
+ "Geri Halliwell",
362
+ "Gillian Jacobs",
363
+ "Gina Carano",
364
+ "Ginnifer Goodwin",
365
+ "Glenn Close",
366
+ "Gloria Steinem",
367
+ "Gordon Ramsay",
368
+ "Greta Gerwig",
369
+ "Gugu Mbatha-Raw",
370
+ "Guy Pearce",
371
+ "Gwendoline Christie",
372
+ "Hailee Steinfeld",
373
+ "Hans Zimmer",
374
+ "Harry Connick Jr.",
375
+ "Harvey Keitel",
376
+ "Helena Bonham Carter",
377
+ "Henry Cavill",
378
+ "Hilary Swank",
379
+ "Howie Mandel",
380
+ "Hugh Bonneville",
381
+ "Hugh Jackman",
382
+ "Hugh Laurie",
383
+ "Idina Menzel",
384
+ "Imelda Staunton",
385
+ "Ingrid Bergman",
386
+ "Irrfan Khan",
387
+ "Isla Fisher",
388
+ "Iwan Rheon",
389
+ "J. K. Simmons",
390
+ "J.J. Abrams",
391
+ "Jack Black",
392
+ "Jack Lemmon",
393
+ "James Earl Jones",
394
+ "Janet Jackson",
395
+ "Jared Leto",
396
+ "Jason Bateman",
397
+ "Jason Segel",
398
+ "Jeff Goldblum",
399
+ "Jennifer Carpenter",
400
+ "Jennifer Coolidge",
401
+ "Jimmy Fallon",
402
+ "Joe Biden",
403
+ "Joe Rogan",
404
+ "John F. Kennedy",
405
+ "Johnny Galecki",
406
+ "Jon Favreau",
407
+ "Joseph Gordon-Levitt",
408
+ "Josh Brolin",
409
+ "Josh Gad",
410
+ "Josh Groban",
411
+ "Julia Louis-Dreyfus",
412
+ "Julia Roberts",
413
+ "Kanye West",
414
+ "Katy Perry",
415
+ "Kesha",
416
+ "Kevin Bacon",
417
+ "Kim Kardashian",
418
+ "Kris Jenner",
419
+ "Kristen Bell",
420
+ "Kristen Stewart",
421
+ "Kristen Wiig",
422
+ "Lorde",
423
+ "Lucille Ball",
424
+ "Marilyn Monroe",
425
+ "Mark Zuckerberg",
426
+ "Matt Smith",
427
+ "Morgan Freeman",
428
+ "Natalie Portman",
429
+ "Prince",
430
+ "Rooney Mara",
431
+ "Samuel L. Jackson",
432
+ "Sean Connery",
433
+ "Stephen Colbert",
434
+ "Steve Carell",
435
+ "Taylor Swift",
436
+ "Tom Hiddleston",
437
+ "Zoe Saldana",
438
+ ] = pydantic.Field(
439
+ alias="voice_name",
440
+ )
@@ -2,29 +2,29 @@ import pydantic
2
2
  import typing
3
3
  import typing_extensions
4
4
 
5
- from .post_v1_animation_body_assets import (
6
- PostV1AnimationBodyAssets,
7
- _SerializerPostV1AnimationBodyAssets,
5
+ from .v1_animation_create_body_assets import (
6
+ V1AnimationCreateBodyAssets,
7
+ _SerializerV1AnimationCreateBodyAssets,
8
8
  )
9
- from .post_v1_animation_body_style import (
10
- PostV1AnimationBodyStyle,
11
- _SerializerPostV1AnimationBodyStyle,
9
+ from .v1_animation_create_body_style import (
10
+ V1AnimationCreateBodyStyle,
11
+ _SerializerV1AnimationCreateBodyStyle,
12
12
  )
13
13
 
14
14
 
15
- class PostV1AnimationBody(typing_extensions.TypedDict):
15
+ class V1AnimationCreateBody(typing_extensions.TypedDict):
16
16
  """
17
- PostV1AnimationBody
17
+ V1AnimationCreateBody
18
18
  """
19
19
 
20
- assets: typing_extensions.Required[PostV1AnimationBodyAssets]
20
+ assets: typing_extensions.Required[V1AnimationCreateBodyAssets]
21
21
  """
22
22
  Provide the assets for animation.
23
23
  """
24
24
 
25
25
  end_seconds: typing_extensions.Required[float]
26
26
  """
27
- The end time of the input video in seconds
27
+ This value determines the duration of the output video.
28
28
  """
29
29
 
30
30
  fps: typing_extensions.Required[float]
@@ -39,10 +39,10 @@ class PostV1AnimationBody(typing_extensions.TypedDict):
39
39
 
40
40
  name: typing_extensions.NotRequired[str]
41
41
  """
42
- The name of video
42
+ The name of video. This value is mainly used for your own identification of the video.
43
43
  """
44
44
 
45
- style: typing_extensions.Required[PostV1AnimationBodyStyle]
45
+ style: typing_extensions.Required[V1AnimationCreateBodyStyle]
46
46
  """
47
47
  Defines the style of the output video
48
48
  """
@@ -53,9 +53,9 @@ class PostV1AnimationBody(typing_extensions.TypedDict):
53
53
  """
54
54
 
55
55
 
56
- class _SerializerPostV1AnimationBody(pydantic.BaseModel):
56
+ class _SerializerV1AnimationCreateBody(pydantic.BaseModel):
57
57
  """
58
- Serializer for PostV1AnimationBody handling case conversions
58
+ Serializer for V1AnimationCreateBody handling case conversions
59
59
  and file omissions as dictated by the API
60
60
  """
61
61
 
@@ -63,7 +63,7 @@ class _SerializerPostV1AnimationBody(pydantic.BaseModel):
63
63
  populate_by_name=True,
64
64
  )
65
65
 
66
- assets: _SerializerPostV1AnimationBodyAssets = pydantic.Field(
66
+ assets: _SerializerV1AnimationCreateBodyAssets = pydantic.Field(
67
67
  alias="assets",
68
68
  )
69
69
  end_seconds: float = pydantic.Field(
@@ -76,7 +76,7 @@ class _SerializerPostV1AnimationBody(pydantic.BaseModel):
76
76
  alias="height",
77
77
  )
78
78
  name: typing.Optional[str] = pydantic.Field(alias="name", default=None)
79
- style: _SerializerPostV1AnimationBodyStyle = pydantic.Field(
79
+ style: _SerializerV1AnimationCreateBodyStyle = pydantic.Field(
80
80
  alias="style",
81
81
  )
82
82
  width: int = pydantic.Field(
@@ -3,14 +3,19 @@ import typing
3
3
  import typing_extensions
4
4
 
5
5
 
6
- class PostV1AnimationBodyAssets(typing_extensions.TypedDict):
6
+ class V1AnimationCreateBodyAssets(typing_extensions.TypedDict):
7
7
  """
8
8
  Provide the assets for animation.
9
9
  """
10
10
 
11
11
  audio_file_path: typing_extensions.NotRequired[str]
12
12
  """
13
- The path of the input audio. This field is required if `audio_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
13
+ The path of the input audio. This field is required if `audio_source` is `file`. This value is either
14
+ - a direct URL to the video file
15
+ - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
16
+
17
+ Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
18
+
14
19
  """
15
20
 
16
21
  audio_source: typing_extensions.Required[
@@ -22,7 +27,12 @@ class PostV1AnimationBodyAssets(typing_extensions.TypedDict):
22
27
 
23
28
  image_file_path: typing_extensions.NotRequired[str]
24
29
  """
25
- An initial image to use a the first frame of the video. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
30
+ An initial image to use a the first frame of the video. This value is either
31
+ - a direct URL to the video file
32
+ - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
33
+
34
+ Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
35
+
26
36
  """
27
37
 
28
38
  youtube_url: typing_extensions.NotRequired[str]
@@ -31,9 +41,9 @@ class PostV1AnimationBodyAssets(typing_extensions.TypedDict):
31
41
  """
32
42
 
33
43
 
34
- class _SerializerPostV1AnimationBodyAssets(pydantic.BaseModel):
44
+ class _SerializerV1AnimationCreateBodyAssets(pydantic.BaseModel):
35
45
  """
36
- Serializer for PostV1AnimationBodyAssets handling case conversions
46
+ Serializer for V1AnimationCreateBodyAssets handling case conversions
37
47
  and file omissions as dictated by the API
38
48
  """
39
49
 
@@ -3,7 +3,7 @@ import typing
3
3
  import typing_extensions
4
4
 
5
5
 
6
- class PostV1AnimationBodyStyle(typing_extensions.TypedDict):
6
+ class V1AnimationCreateBodyStyle(typing_extensions.TypedDict):
7
7
  """
8
8
  Defines the style of the output video
9
9
  """
@@ -60,7 +60,7 @@ class PostV1AnimationBodyStyle(typing_extensions.TypedDict):
60
60
  ]
61
61
  ]
62
62
  """
63
- The art style of the final output video
63
+ The art style used to create the output video
64
64
  """
65
65
 
66
66
  art_style_custom: typing_extensions.NotRequired[str]
@@ -124,8 +124,11 @@ class PostV1AnimationBodyStyle(typing_extensions.TypedDict):
124
124
  "Zoom Out - Audio Sync",
125
125
  ]
126
126
  ]
127
+ """
128
+ The camera effect used to create the output video
129
+ """
127
130
 
128
- prompt: typing_extensions.Required[typing.Optional[str]]
131
+ prompt: typing_extensions.NotRequired[str]
129
132
  """
130
133
  The prompt used for the video. Prompt is required if `prompt_type` is `custom`. Otherwise this value is ignored
131
134
  """
@@ -135,20 +138,22 @@ class PostV1AnimationBodyStyle(typing_extensions.TypedDict):
135
138
  ]
136
139
  """
137
140
 
138
- * `custom` - use your own prompt for the video.
141
+ * `custom` - Use your own prompt for the video.
139
142
  * `use_lyrics` - Use the lyrics of the audio to create the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`.
140
143
  * `ai_choose` - Let AI write the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`.
141
144
  """
142
145
 
143
146
  transition_speed: typing_extensions.Required[int]
144
147
  """
145
- Change determines how quickly the video's content changes across frames. Higher = more rapid transitions. Lower = more stable visual experience.
148
+ Change determines how quickly the video's content changes across frames.
149
+ * Higher = more rapid transitions.
150
+ * Lower = more stable visual experience.
146
151
  """
147
152
 
148
153
 
149
- class _SerializerPostV1AnimationBodyStyle(pydantic.BaseModel):
154
+ class _SerializerV1AnimationCreateBodyStyle(pydantic.BaseModel):
150
155
  """
151
- Serializer for PostV1AnimationBodyStyle handling case conversions
156
+ Serializer for V1AnimationCreateBodyStyle handling case conversions
152
157
  and file omissions as dictated by the API
153
158
  """
154
159
 
@@ -266,9 +271,7 @@ class _SerializerPostV1AnimationBodyStyle(pydantic.BaseModel):
266
271
  ] = pydantic.Field(
267
272
  alias="camera_effect",
268
273
  )
269
- prompt: typing.Optional[str] = pydantic.Field(
270
- alias="prompt",
271
- )
274
+ prompt: typing.Optional[str] = pydantic.Field(alias="prompt", default=None)
272
275
  prompt_type: typing_extensions.Literal["ai_choose", "custom", "use_lyrics"] = (
273
276
  pydantic.Field(
274
277
  alias="prompt_type",
@@ -0,0 +1,39 @@
1
+ import pydantic
2
+ import typing
3
+ import typing_extensions
4
+
5
+
6
+ class V1AnimationGenerateBodyAssets(typing_extensions.TypedDict):
7
+ """
8
+ Provide the assets for animation.
9
+ """
10
+
11
+ audio_file_path: typing_extensions.NotRequired[str]
12
+ """
13
+ The path of the input audio. This field is required if `audio_source` is `file`. This value is either
14
+ - a direct URL to the video file
15
+ - a path to a local file
16
+
17
+ Note: if the path begins with `api-assets`, it will be assumed to already be uploaded to Magic Hour's storage, and will not be uploaded again.
18
+ """
19
+
20
+ audio_source: typing_extensions.Required[
21
+ typing_extensions.Literal["file", "none", "youtube"]
22
+ ]
23
+ """
24
+ Optionally add an audio source if you'd like to incorporate audio into your video
25
+ """
26
+
27
+ image_file_path: typing_extensions.NotRequired[str]
28
+ """
29
+ An initial image to use a the first frame of the video. This value is either
30
+ - a direct URL to the image file
31
+ - a path to a local file
32
+
33
+ Note: if the path begins with `api-assets`, it will be assumed to already be uploaded to Magic Hour's storage, and will not be uploaded again.
34
+ """
35
+
36
+ youtube_url: typing_extensions.NotRequired[str]
37
+ """
38
+ Using a youtube video as the input source. This field is required if `audio_source` is `youtube`
39
+ """