magic_hour 0.38.1__tar.gz → 0.40.0__tar.gz

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 (221) hide show
  1. {magic_hour-0.38.1 → magic_hour-0.40.0}/PKG-INFO +11 -1
  2. {magic_hour-0.38.1 → magic_hour-0.40.0}/README.md +10 -0
  3. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/README.md +3 -3
  4. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/environment.py +1 -1
  5. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/README.md +2 -2
  6. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_clothes_changer/README.md +4 -3
  7. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_face_editor/README.md +4 -2
  8. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_gif_generator/README.md +5 -2
  9. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_headshot_generator/README.md +4 -2
  10. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_image_editor/README.md +4 -2
  11. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_image_generator/README.md +4 -2
  12. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_image_upscaler/README.md +4 -2
  13. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_meme_generator/README.md +4 -2
  14. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_photo_editor/README.md +4 -2
  15. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_qr_code_generator/README.md +4 -2
  16. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_talking_photo/README.md +5 -3
  17. magic_hour-0.40.0/magic_hour/resources/v1/ai_voice_generator/README.md +56 -0
  18. magic_hour-0.40.0/magic_hour/resources/v1/ai_voice_generator/__init__.py +4 -0
  19. magic_hour-0.40.0/magic_hour/resources/v1/ai_voice_generator/client.py +119 -0
  20. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/animation/README.md +4 -2
  21. magic_hour-0.40.0/magic_hour/resources/v1/audio_projects/README.md +90 -0
  22. magic_hour-0.40.0/magic_hour/resources/v1/audio_projects/__init__.py +4 -0
  23. magic_hour-0.40.0/magic_hour/resources/v1/audio_projects/client.py +173 -0
  24. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/auto_subtitle_generator/README.md +4 -2
  25. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/client.py +14 -0
  26. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/face_detection/README.md +4 -2
  27. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/face_swap/README.md +5 -2
  28. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/face_swap_photo/README.md +4 -2
  29. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/files/README.md +4 -1
  30. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/files/upload_urls/README.md +2 -5
  31. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/image_background_remover/README.md +4 -2
  32. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/image_projects/README.md +4 -2
  33. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/image_to_video/README.md +4 -2
  34. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/lip_sync/README.md +4 -2
  35. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/photo_colorizer/README.md +4 -2
  36. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/text_to_video/README.md +4 -2
  37. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/video_projects/README.md +4 -2
  38. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/video_to_video/README.md +9 -9
  39. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/video_to_video/client.py +0 -2
  40. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/__init__.py +10 -0
  41. magic_hour-0.40.0/magic_hour/types/models/v1_ai_voice_generator_create_response.py +27 -0
  42. magic_hour-0.40.0/magic_hour/types/models/v1_audio_projects_get_response.py +72 -0
  43. magic_hour-0.40.0/magic_hour/types/models/v1_audio_projects_get_response_downloads_item.py +19 -0
  44. magic_hour-0.40.0/magic_hour/types/models/v1_audio_projects_get_response_error.py +25 -0
  45. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/__init__.py +12 -0
  46. magic_hour-0.40.0/magic_hour/types/params/v1_ai_voice_generator_create_body.py +40 -0
  47. magic_hour-0.40.0/magic_hour/types/params/v1_ai_voice_generator_create_body_style.py +60 -0
  48. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_video_to_video_create_body_style.py +21 -19
  49. {magic_hour-0.38.1 → magic_hour-0.40.0}/pyproject.toml +1 -1
  50. {magic_hour-0.38.1 → magic_hour-0.40.0}/LICENSE +0 -0
  51. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/__init__.py +0 -0
  52. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/client.py +0 -0
  53. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/helpers/__init__.py +0 -0
  54. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/helpers/download.py +0 -0
  55. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/helpers/logger.py +0 -0
  56. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/__init__.py +0 -0
  57. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_clothes_changer/__init__.py +0 -0
  58. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_clothes_changer/client.py +0 -0
  59. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_face_editor/__init__.py +0 -0
  60. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_face_editor/client.py +0 -0
  61. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_gif_generator/__init__.py +0 -0
  62. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_gif_generator/client.py +0 -0
  63. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_headshot_generator/__init__.py +0 -0
  64. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_headshot_generator/client.py +0 -0
  65. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_image_editor/__init__.py +0 -0
  66. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_image_editor/client.py +0 -0
  67. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_image_generator/__init__.py +0 -0
  68. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_image_generator/client.py +0 -0
  69. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_image_upscaler/__init__.py +0 -0
  70. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_image_upscaler/client.py +0 -0
  71. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_meme_generator/__init__.py +0 -0
  72. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_meme_generator/client.py +0 -0
  73. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_photo_editor/__init__.py +0 -0
  74. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_photo_editor/client.py +0 -0
  75. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_qr_code_generator/__init__.py +0 -0
  76. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_qr_code_generator/client.py +0 -0
  77. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_talking_photo/__init__.py +0 -0
  78. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/ai_talking_photo/client.py +0 -0
  79. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/animation/__init__.py +0 -0
  80. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/animation/client.py +0 -0
  81. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/auto_subtitle_generator/__init__.py +0 -0
  82. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/auto_subtitle_generator/client.py +0 -0
  83. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/face_detection/__init__.py +0 -0
  84. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/face_detection/client.py +0 -0
  85. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/face_swap/__init__.py +0 -0
  86. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/face_swap/client.py +0 -0
  87. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/face_swap_photo/__init__.py +0 -0
  88. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/face_swap_photo/client.py +0 -0
  89. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/files/__init__.py +0 -0
  90. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/files/client.py +0 -0
  91. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/files/client_test.py +0 -0
  92. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/files/upload_urls/__init__.py +0 -0
  93. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/files/upload_urls/client.py +0 -0
  94. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/image_background_remover/__init__.py +0 -0
  95. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/image_background_remover/client.py +0 -0
  96. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/image_projects/__init__.py +0 -0
  97. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/image_projects/client.py +0 -0
  98. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/image_projects/client_test.py +0 -0
  99. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/image_to_video/__init__.py +0 -0
  100. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/image_to_video/client.py +0 -0
  101. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/lip_sync/__init__.py +0 -0
  102. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/lip_sync/client.py +0 -0
  103. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/photo_colorizer/__init__.py +0 -0
  104. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/photo_colorizer/client.py +0 -0
  105. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/text_to_video/__init__.py +0 -0
  106. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/text_to_video/client.py +0 -0
  107. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/video_projects/__init__.py +0 -0
  108. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/video_projects/client.py +0 -0
  109. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/video_projects/client_test.py +0 -0
  110. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/resources/v1/video_to_video/__init__.py +0 -0
  111. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_ai_clothes_changer_create_response.py +0 -0
  112. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_ai_face_editor_create_response.py +0 -0
  113. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_ai_gif_generator_create_response.py +0 -0
  114. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_ai_headshot_generator_create_response.py +0 -0
  115. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_ai_image_editor_create_response.py +0 -0
  116. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_ai_image_generator_create_response.py +0 -0
  117. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_ai_image_upscaler_create_response.py +0 -0
  118. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_ai_meme_generator_create_response.py +0 -0
  119. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_ai_photo_editor_create_response.py +0 -0
  120. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_ai_qr_code_generator_create_response.py +0 -0
  121. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_ai_talking_photo_create_response.py +0 -0
  122. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_animation_create_response.py +0 -0
  123. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_auto_subtitle_generator_create_response.py +0 -0
  124. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_face_detection_create_response.py +0 -0
  125. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_face_detection_get_response.py +0 -0
  126. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_face_detection_get_response_faces_item.py +0 -0
  127. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_face_swap_create_response.py +0 -0
  128. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_face_swap_photo_create_response.py +0 -0
  129. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_files_upload_urls_create_response.py +0 -0
  130. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_files_upload_urls_create_response_items_item.py +0 -0
  131. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_image_background_remover_create_response.py +0 -0
  132. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_image_projects_get_response.py +0 -0
  133. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_image_projects_get_response_downloads_item.py +0 -0
  134. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_image_projects_get_response_error.py +0 -0
  135. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_image_to_video_create_response.py +0 -0
  136. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_lip_sync_create_response.py +0 -0
  137. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_photo_colorizer_create_response.py +0 -0
  138. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_text_to_video_create_response.py +0 -0
  139. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_video_projects_get_response.py +0 -0
  140. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_video_projects_get_response_download.py +0 -0
  141. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_video_projects_get_response_downloads_item.py +0 -0
  142. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_video_projects_get_response_error.py +0 -0
  143. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/models/v1_video_to_video_create_response.py +0 -0
  144. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_clothes_changer_create_body.py +0 -0
  145. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_clothes_changer_create_body_assets.py +0 -0
  146. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_clothes_changer_generate_body_assets.py +0 -0
  147. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_face_editor_create_body.py +0 -0
  148. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_face_editor_create_body_assets.py +0 -0
  149. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_face_editor_create_body_style.py +0 -0
  150. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_face_editor_generate_body_assets.py +0 -0
  151. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_gif_generator_create_body.py +0 -0
  152. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_gif_generator_create_body_style.py +0 -0
  153. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_headshot_generator_create_body.py +0 -0
  154. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_headshot_generator_create_body_assets.py +0 -0
  155. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_headshot_generator_create_body_style.py +0 -0
  156. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_headshot_generator_generate_body_assets.py +0 -0
  157. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_image_editor_create_body.py +0 -0
  158. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_image_editor_create_body_assets.py +0 -0
  159. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_image_editor_create_body_style.py +0 -0
  160. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_image_editor_generate_body_assets.py +0 -0
  161. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_image_generator_create_body.py +0 -0
  162. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_image_generator_create_body_style.py +0 -0
  163. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_image_upscaler_create_body.py +0 -0
  164. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_image_upscaler_create_body_assets.py +0 -0
  165. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_image_upscaler_create_body_style.py +0 -0
  166. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_image_upscaler_generate_body_assets.py +0 -0
  167. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_meme_generator_create_body.py +0 -0
  168. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_meme_generator_create_body_style.py +0 -0
  169. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_photo_editor_create_body.py +0 -0
  170. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_photo_editor_create_body_assets.py +0 -0
  171. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_photo_editor_create_body_style.py +0 -0
  172. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_photo_editor_generate_body_assets.py +0 -0
  173. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_qr_code_generator_create_body.py +0 -0
  174. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_qr_code_generator_create_body_style.py +0 -0
  175. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_talking_photo_create_body.py +0 -0
  176. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_talking_photo_create_body_assets.py +0 -0
  177. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_talking_photo_create_body_style.py +0 -0
  178. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_ai_talking_photo_generate_body_assets.py +0 -0
  179. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_animation_create_body.py +0 -0
  180. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_animation_create_body_assets.py +0 -0
  181. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_animation_create_body_style.py +0 -0
  182. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_animation_generate_body_assets.py +0 -0
  183. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_auto_subtitle_generator_create_body.py +0 -0
  184. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_auto_subtitle_generator_create_body_assets.py +0 -0
  185. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_auto_subtitle_generator_create_body_style.py +0 -0
  186. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_auto_subtitle_generator_create_body_style_custom_config.py +0 -0
  187. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_auto_subtitle_generator_generate_body_assets.py +0 -0
  188. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_face_detection_create_body.py +0 -0
  189. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_face_detection_create_body_assets.py +0 -0
  190. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_face_detection_generate_body_assets.py +0 -0
  191. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_face_swap_create_body.py +0 -0
  192. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_face_swap_create_body_assets.py +0 -0
  193. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_face_swap_create_body_assets_face_mappings_item.py +0 -0
  194. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_face_swap_create_body_style.py +0 -0
  195. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_face_swap_generate_body_assets.py +0 -0
  196. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_face_swap_generate_body_assets_face_mappings_item.py +0 -0
  197. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_face_swap_photo_create_body.py +0 -0
  198. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_face_swap_photo_create_body_assets.py +0 -0
  199. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_face_swap_photo_create_body_assets_face_mappings_item.py +0 -0
  200. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_face_swap_photo_generate_body_assets.py +0 -0
  201. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_face_swap_photo_generate_body_assets_face_mappings_item.py +0 -0
  202. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_files_upload_urls_create_body.py +0 -0
  203. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_files_upload_urls_create_body_items_item.py +0 -0
  204. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_image_background_remover_create_body.py +0 -0
  205. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_image_background_remover_create_body_assets.py +0 -0
  206. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_image_background_remover_generate_body_assets.py +0 -0
  207. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_image_to_video_create_body.py +0 -0
  208. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_image_to_video_create_body_assets.py +0 -0
  209. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_image_to_video_create_body_style.py +0 -0
  210. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_image_to_video_generate_body_assets.py +0 -0
  211. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_lip_sync_create_body.py +0 -0
  212. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_lip_sync_create_body_assets.py +0 -0
  213. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_lip_sync_generate_body_assets.py +0 -0
  214. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_photo_colorizer_create_body.py +0 -0
  215. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_photo_colorizer_create_body_assets.py +0 -0
  216. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_photo_colorizer_generate_body_assets.py +0 -0
  217. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_text_to_video_create_body.py +0 -0
  218. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_text_to_video_create_body_style.py +0 -0
  219. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_video_to_video_create_body.py +0 -0
  220. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_video_to_video_create_body_assets.py +0 -0
  221. {magic_hour-0.38.1 → magic_hour-0.40.0}/magic_hour/types/params/v1_video_to_video_generate_body_assets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: magic_hour
3
- Version: 0.38.1
3
+ Version: 0.40.0
4
4
  Summary: Python SDK for Magic Hour API
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -223,11 +223,21 @@ download_urls = result.downloads
223
223
  * [create](magic_hour/resources/v1/ai_talking_photo/README.md#create) - AI Talking Photo
224
224
  * [generate](magic_hour/resources/v1/ai_talking_photo/README.md#generate) - Ai Talking Photo Generate Workflow
225
225
 
226
+ ### [v1.ai_voice_generator](magic_hour/resources/v1/ai_voice_generator/README.md)
227
+
228
+ * [create](magic_hour/resources/v1/ai_voice_generator/README.md#create) - AI Voice Generator
229
+
226
230
  ### [v1.animation](magic_hour/resources/v1/animation/README.md)
227
231
 
228
232
  * [create](magic_hour/resources/v1/animation/README.md#create) - Animation
229
233
  * [generate](magic_hour/resources/v1/animation/README.md#generate) - Animation Generate Workflow
230
234
 
235
+ ### [v1.audio_projects](magic_hour/resources/v1/audio_projects/README.md)
236
+
237
+ * [delete](magic_hour/resources/v1/audio_projects/README.md#delete) - Delete audio
238
+ * [get](magic_hour/resources/v1/audio_projects/README.md#get) - Get audio details
239
+
240
+
231
241
  ### [v1.auto_subtitle_generator](magic_hour/resources/v1/auto_subtitle_generator/README.md)
232
242
 
233
243
  * [create](magic_hour/resources/v1/auto_subtitle_generator/README.md#create) - Auto Subtitle Generator
@@ -208,11 +208,21 @@ download_urls = result.downloads
208
208
  * [create](magic_hour/resources/v1/ai_talking_photo/README.md#create) - AI Talking Photo
209
209
  * [generate](magic_hour/resources/v1/ai_talking_photo/README.md#generate) - Ai Talking Photo Generate Workflow
210
210
 
211
+ ### [v1.ai_voice_generator](magic_hour/resources/v1/ai_voice_generator/README.md)
212
+
213
+ * [create](magic_hour/resources/v1/ai_voice_generator/README.md#create) - AI Voice Generator
214
+
211
215
  ### [v1.animation](magic_hour/resources/v1/animation/README.md)
212
216
 
213
217
  * [create](magic_hour/resources/v1/animation/README.md#create) - Animation
214
218
  * [generate](magic_hour/resources/v1/animation/README.md#generate) - Animation Generate Workflow
215
219
 
220
+ ### [v1.audio_projects](magic_hour/resources/v1/audio_projects/README.md)
221
+
222
+ * [delete](magic_hour/resources/v1/audio_projects/README.md#delete) - Delete audio
223
+ * [get](magic_hour/resources/v1/audio_projects/README.md#get) - Get audio details
224
+
225
+
216
226
  ### [v1.auto_subtitle_generator](magic_hour/resources/v1/auto_subtitle_generator/README.md)
217
227
 
218
228
  * [create](magic_hour/resources/v1/auto_subtitle_generator/README.md#create) - Auto Subtitle Generator
@@ -1,8 +1,6 @@
1
- # Root Client
1
+ # Base Client
2
2
 
3
- <!-- CUSTOM DOCS START -->
4
3
 
5
- <!-- CUSTOM DOCS END -->
6
4
 
7
5
  ## Submodules
8
6
  - [ai_clothes_changer](resources/v1/ai_clothes_changer/README.md) - ai_clothes_changer
@@ -16,7 +14,9 @@
16
14
  - [ai_photo_editor](resources/v1/ai_photo_editor/README.md) - ai_photo_editor
17
15
  - [ai_qr_code_generator](resources/v1/ai_qr_code_generator/README.md) - ai_qr_code_generator
18
16
  - [ai_talking_photo](resources/v1/ai_talking_photo/README.md) - ai_talking_photo
17
+ - [ai_voice_generator](resources/v1/ai_voice_generator/README.md) - ai_voice_generator
19
18
  - [animation](resources/v1/animation/README.md) - animation
19
+ - [audio_projects](resources/v1/audio_projects/README.md) - audio_projects
20
20
  - [auto_subtitle_generator](resources/v1/auto_subtitle_generator/README.md) - auto_subtitle_generator
21
21
  - [face_detection](resources/v1/face_detection/README.md) - face_detection
22
22
  - [face_swap](resources/v1/face_swap/README.md) - face_swap
@@ -6,7 +6,7 @@ class Environment(enum.Enum):
6
6
  """Pre-defined base URLs for the API"""
7
7
 
8
8
  ENVIRONMENT = "https://api.magichour.ai"
9
- MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.38.0"
9
+ MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.40.0"
10
10
 
11
11
 
12
12
  def _get_base_url(
@@ -1,8 +1,6 @@
1
1
  # v1
2
2
 
3
- <!-- CUSTOM DOCS START -->
4
3
 
5
- <!-- CUSTOM DOCS END -->
6
4
 
7
5
  ## Submodules
8
6
  - [ai_clothes_changer](ai_clothes_changer/README.md) - ai_clothes_changer
@@ -16,7 +14,9 @@
16
14
  - [ai_photo_editor](ai_photo_editor/README.md) - ai_photo_editor
17
15
  - [ai_qr_code_generator](ai_qr_code_generator/README.md) - ai_qr_code_generator
18
16
  - [ai_talking_photo](ai_talking_photo/README.md) - ai_talking_photo
17
+ - [ai_voice_generator](ai_voice_generator/README.md) - ai_voice_generator
19
18
  - [animation](animation/README.md) - animation
19
+ - [audio_projects](audio_projects/README.md) - audio_projects
20
20
  - [auto_subtitle_generator](auto_subtitle_generator/README.md) - auto_subtitle_generator
21
21
  - [face_detection](face_detection/README.md) - face_detection
22
22
  - [face_swap](face_swap/README.md) - face_swap
@@ -1,7 +1,9 @@
1
- # v1_ai_clothes_changer
1
+ # v1.ai_clothes_changer
2
2
 
3
3
  ## Module Functions
4
4
 
5
+
6
+
5
7
  <!-- CUSTOM DOCS START -->
6
8
 
7
9
  ### AI Clothes Changer Generate Workflow <a name="generate"></a>
@@ -66,8 +68,6 @@ res = await client.v1.ai_clothes_changer.generate(
66
68
  ```
67
69
 
68
70
  <!-- CUSTOM DOCS END -->
69
-
70
-
71
71
  ### AI Clothes Changer <a name="create"></a>
72
72
 
73
73
  Change outfits in photos in seconds with just a photo reference. Each photo costs 25 credits.
@@ -128,3 +128,4 @@ res = await client.v1.ai_clothes_changer.create(
128
128
  ##### Example
129
129
  `{"credits_charged": 25, "frame_cost": 25, "id": "cuid-example"}`
130
130
 
131
+
@@ -1,7 +1,9 @@
1
- # v1_ai_face_editor
1
+ # v1.ai_face_editor
2
2
 
3
3
  ## Module Functions
4
4
 
5
+
6
+
5
7
  <!-- CUSTOM DOCS START -->
6
8
 
7
9
  ### Ai Face Editor Generate Workflow <a name="generate"></a>
@@ -91,7 +93,6 @@ res = await client.v1.ai_face_editor.generate(
91
93
  ```
92
94
 
93
95
  <!-- CUSTOM DOCS END -->
94
-
95
96
  ### AI Face Editor <a name="create"></a>
96
97
 
97
98
  Edit facial features of an image using AI. Each edit costs 1 frame. The height/width of the output image depends on your subscription. Please refer to our [pricing](/pricing) page for more details
@@ -192,3 +193,4 @@ res = await client.v1.ai_face_editor.create(
192
193
  ##### Example
193
194
  `{"credits_charged": 1, "frame_cost": 1, "id": "cuid-example"}`
194
195
 
196
+
@@ -1,7 +1,9 @@
1
- # v1_ai_gif_generator
1
+ # v1.ai_gif_generator
2
2
 
3
3
  ## Module Functions
4
4
 
5
+
6
+
5
7
  <!-- CUSTOM DOCS START -->
6
8
 
7
9
  ### Ai Gif Generator Generate Workflow <a name="generate"></a>
@@ -59,7 +61,6 @@ res = await client.v1.ai_gif_generator.generate(
59
61
  ```
60
62
 
61
63
  <!-- CUSTOM DOCS END -->
62
-
63
64
  ### AI GIFs <a name="create"></a>
64
65
 
65
66
  Create an AI GIF. Each GIF costs 50 credits.
@@ -112,3 +113,5 @@ res = await client.v1.ai_gif_generator.create(
112
113
 
113
114
  ##### Example
114
115
  `{"credits_charged": 50, "frame_cost": 50, "id": "cuid-example"}`
116
+
117
+
@@ -1,7 +1,9 @@
1
- # v1_ai_headshot_generator
1
+ # v1.ai_headshot_generator
2
2
 
3
3
  ## Module Functions
4
4
 
5
+
6
+
5
7
  <!-- CUSTOM DOCS START -->
6
8
 
7
9
  ### Ai Headshot Generator Generate Workflow <a name="generate"></a>
@@ -55,7 +57,6 @@ res = await client.v1.ai_headshot_generator.generate(
55
57
  ```
56
58
 
57
59
  <!-- CUSTOM DOCS END -->
58
-
59
60
  ### AI Headshots <a name="create"></a>
60
61
 
61
62
  Create an AI headshot. Each headshot costs 50 credits.
@@ -106,3 +107,4 @@ res = await client.v1.ai_headshot_generator.create(
106
107
  ##### Example
107
108
  `{"credits_charged": 50, "frame_cost": 50, "id": "cuid-example"}`
108
109
 
110
+
@@ -1,7 +1,9 @@
1
- # v1_ai_image_editor
1
+ # v1.ai_image_editor
2
2
 
3
3
  ## Module Functions
4
4
 
5
+
6
+
5
7
  <!-- CUSTOM DOCS START -->
6
8
 
7
9
  ### Ai Image Editor Generate Workflow <a name="generate"></a>
@@ -59,7 +61,6 @@ res = await client.v1.ai_image_editor.generate(
59
61
  ```
60
62
 
61
63
  <!-- CUSTOM DOCS END -->
62
-
63
64
  ### AI Image Editor <a name="create"></a>
64
65
 
65
66
  Edit images with AI. Each edit costs 50 credits.
@@ -114,3 +115,4 @@ res = await client.v1.ai_image_editor.create(
114
115
  ##### Example
115
116
  `{"credits_charged": 50, "frame_cost": 50, "id": "cuid-example"}`
116
117
 
118
+
@@ -1,7 +1,9 @@
1
- # v1_ai_image_generator
1
+ # v1.ai_image_generator
2
2
 
3
3
  ## Module Functions
4
4
 
5
+
6
+
5
7
  <!-- CUSTOM DOCS START -->
6
8
 
7
9
  ### Ai Image Generator Generate Workflow <a name="generate"></a>
@@ -61,7 +63,6 @@ res = await client.v1.ai_image_generator.generate(
61
63
  ```
62
64
 
63
65
  <!-- CUSTOM DOCS END -->
64
-
65
66
  ### AI Images <a name="create"></a>
66
67
 
67
68
  Create an AI image. Each image costs 5 credits.
@@ -119,3 +120,4 @@ res = await client.v1.ai_image_generator.create(
119
120
  ##### Example
120
121
  `{"credits_charged": 5, "frame_cost": 5, "id": "cuid-example"}`
121
122
 
123
+
@@ -1,7 +1,9 @@
1
- # v1_ai_image_upscaler
1
+ # v1.ai_image_upscaler
2
2
 
3
3
  ## Module Functions
4
4
 
5
+
6
+
5
7
  <!-- CUSTOM DOCS START -->
6
8
 
7
9
  ### Ai Image Upscaler Generate Workflow <a name="generate"></a>
@@ -61,7 +63,6 @@ res = await client.v1.ai_image_upscaler.generate(
61
63
  ```
62
64
 
63
65
  <!-- CUSTOM DOCS END -->
64
-
65
66
  ### AI Image Upscaler <a name="create"></a>
66
67
 
67
68
  Upscale your image using AI. Each 2x upscale costs 50 credits, and 4x upscale costs 200 credits.
@@ -120,3 +121,4 @@ res = await client.v1.ai_image_upscaler.create(
120
121
  ##### Example
121
122
  `{"credits_charged": 50, "frame_cost": 50, "id": "cuid-example"}`
122
123
 
124
+
@@ -1,7 +1,9 @@
1
- # v1_ai_meme_generator
1
+ # v1.ai_meme_generator
2
2
 
3
3
  ## Module Functions
4
4
 
5
+
6
+
5
7
  <!-- CUSTOM DOCS START -->
6
8
 
7
9
  ### Ai Meme Generator Generate Workflow <a name="generate"></a>
@@ -65,7 +67,6 @@ res = await client.v1.ai_meme_generator.generate(
65
67
  ```
66
68
 
67
69
  <!-- CUSTOM DOCS END -->
68
-
69
70
  ### AI Meme Generator <a name="create"></a>
70
71
 
71
72
  Create an AI generated meme. Each meme costs 10 credits.
@@ -126,3 +127,4 @@ res = await client.v1.ai_meme_generator.create(
126
127
  ##### Example
127
128
  `{"credits_charged": 10, "frame_cost": 10, "id": "cuid-example"}`
128
129
 
130
+
@@ -1,7 +1,9 @@
1
- # v1_ai_photo_editor
1
+ # v1.ai_photo_editor
2
2
 
3
3
  ## Module Functions
4
4
 
5
+
6
+
5
7
  <!-- CUSTOM DOCS START -->
6
8
 
7
9
  ### Ai Photo Editor Generate Workflow <a name="generate"></a>
@@ -79,7 +81,6 @@ res = await client.v1.ai_photo_editor.generate(
79
81
  ```
80
82
 
81
83
  <!-- CUSTOM DOCS END -->
82
-
83
84
  ### AI Photo Editor <a name="create"></a>
84
85
 
85
86
  > **NOTE**: this API is still in early development stages, and should be avoided. Please reach out to us if you're interested in this API.
@@ -165,3 +166,4 @@ res = await client.v1.ai_photo_editor.create(
165
166
  ##### Example
166
167
  `{"credits_charged": 10, "frame_cost": 10, "id": "cuid-example"}`
167
168
 
169
+
@@ -1,7 +1,9 @@
1
- # v1_ai_qr_code_generator
1
+ # v1.ai_qr_code_generator
2
2
 
3
3
  ## Module Functions
4
4
 
5
+
6
+
5
7
  <!-- CUSTOM DOCS START -->
6
8
 
7
9
  ### Ai Qr Code Generator Generate Workflow <a name="generate"></a>
@@ -59,7 +61,6 @@ res = await client.v1.ai_qr_code_generator.generate(
59
61
  ```
60
62
 
61
63
  <!-- CUSTOM DOCS END -->
62
-
63
64
  ### AI QR Code <a name="create"></a>
64
65
 
65
66
  Create an AI QR code. Each QR code costs 20 credits.
@@ -113,3 +114,4 @@ res = await client.v1.ai_qr_code_generator.create(
113
114
  ##### Example
114
115
  `{"credits_charged": 20, "frame_cost": 20, "id": "cuid-example"}`
115
116
 
117
+
@@ -1,7 +1,9 @@
1
- # v1_ai_talking_photo
1
+ # v1.ai_talking_photo
2
2
 
3
3
  ## Module Functions
4
4
 
5
+
6
+
5
7
  <!-- CUSTOM DOCS START -->
6
8
 
7
9
  ### Ai Talking Photo Generate Workflow <a name="generate"></a>
@@ -67,7 +69,6 @@ res = await client.v1.ai_talking_photo.generate(
67
69
  ```
68
70
 
69
71
  <!-- CUSTOM DOCS END -->
70
-
71
72
  ### AI Talking Photo <a name="create"></a>
72
73
 
73
74
  Create a talking photo from an image and audio or text input.
@@ -85,7 +86,7 @@ Create a talking photo from an image and audio or text input.
85
86
  | `start_seconds` | ✓ | The start time of the input audio in seconds. The maximum duration allowed is 60 seconds. | `0.0` |
86
87
  | `name` | ✗ | The name of image. This value is mainly used for your own identification of the image. | `"Talking Photo image"` |
87
88
  | `style` | ✗ | Attributes used to dictate the style of the output | `{"generation_mode": "expressive", "intensity": 1.5}` |
88
- | `└─ generation_mode` | ✗ | Controls overall motion style. * `expressive` - More motion and facial expressiveness; may introduce visual artifacts. * `stable` - Reduced motion for cleaner output; may result in minimal animation. | `"expressive"` |
89
+ | `└─ generation_mode` | ✗ | Controls overall motion style. * `pro` - Realistic, high fidelity, accurate lip sync, slower. * `expressive` - More motion and facial expressiveness; may introduce visual artifacts. * `stable` - Reduced motion for cleaner output; may result in minimal animation. (Deprecated: passing this value will be treated as `pro`) | `"expressive"` |
89
90
  | `└─ intensity` | ✗ | Note: this value is only applicable when generation_mode is `expressive`. The value can include up to 2 decimal places. * Lower values yield more stability but can suppress mouth movement. * Higher values increase motion and expressiveness, with a higher risk of distortion. | `1.5` |
90
91
 
91
92
  #### Synchronous Client
@@ -134,3 +135,4 @@ res = await client.v1.ai_talking_photo.create(
134
135
  ##### Example
135
136
  `{"credits_charged": 450, "estimated_frame_cost": 450, "id": "cuid-example"}`
136
137
 
138
+
@@ -0,0 +1,56 @@
1
+ # v1.ai_voice_generator
2
+
3
+ ## Module Functions
4
+
5
+ ### AI Voice Generator <a name="create"></a>
6
+
7
+ Generate speech from text. Each character costs 0.05 credits. The cost is rounded up to the nearest whole number.
8
+
9
+ **API Endpoint**: `POST /v1/ai-voice-generator`
10
+
11
+ #### Parameters
12
+
13
+ | Parameter | Required | Description | Example |
14
+ |-----------|:--------:|-------------|--------|
15
+ | `style` | ✓ | The content used to generate speech. | `{"prompt": "Hello, how are you?", "voice_name": "Elon Musk"}` |
16
+ | `└─ prompt` | ✓ | Text used to generate speech. Starter tier users can use up to 200 characters, while Creator, Pro, or Business users can use up to 1000. | `"Hello, how are you?"` |
17
+ | `└─ voice_name` | ✓ | 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 | `"Elon Musk"` |
18
+ | `name` | ✗ | The name of audio. This value is mainly used for your own identification of the audio. | `"Voice Generator audio"` |
19
+
20
+ #### Synchronous Client
21
+
22
+ ```python
23
+ from magic_hour import Client
24
+ from os import getenv
25
+
26
+ client = Client(token=getenv("API_TOKEN"))
27
+ res = client.v1.ai_voice_generator.create(
28
+ style={"prompt": "Hello, how are you?", "voice_name": "Elon Musk"},
29
+ name="Voice Generator audio",
30
+ )
31
+
32
+ ```
33
+
34
+ #### Asynchronous Client
35
+
36
+ ```python
37
+ from magic_hour import AsyncClient
38
+ from os import getenv
39
+
40
+ client = AsyncClient(token=getenv("API_TOKEN"))
41
+ res = await client.v1.ai_voice_generator.create(
42
+ style={"prompt": "Hello, how are you?", "voice_name": "Elon Musk"},
43
+ name="Voice Generator audio",
44
+ )
45
+
46
+ ```
47
+
48
+ #### Response
49
+
50
+ ##### Type
51
+ [V1AiVoiceGeneratorCreateResponse](/magic_hour/types/models/v1_ai_voice_generator_create_response.py)
52
+
53
+ ##### Example
54
+ `{"credits_charged": 1, "id": "cuid-example"}`
55
+
56
+
@@ -0,0 +1,4 @@
1
+ from .client import AiVoiceGeneratorClient, AsyncAiVoiceGeneratorClient
2
+
3
+
4
+ __all__ = ["AiVoiceGeneratorClient", "AsyncAiVoiceGeneratorClient"]
@@ -0,0 +1,119 @@
1
+ import typing
2
+
3
+ from magic_hour.types import models, params
4
+ from make_api_request import (
5
+ AsyncBaseClient,
6
+ RequestOptions,
7
+ SyncBaseClient,
8
+ default_request_options,
9
+ to_encodable,
10
+ type_utils,
11
+ )
12
+
13
+
14
+ class AiVoiceGeneratorClient:
15
+ def __init__(self, *, base_client: SyncBaseClient):
16
+ self._base_client = base_client
17
+
18
+ def create(
19
+ self,
20
+ *,
21
+ style: params.V1AiVoiceGeneratorCreateBodyStyle,
22
+ name: typing.Union[
23
+ typing.Optional[str], type_utils.NotGiven
24
+ ] = type_utils.NOT_GIVEN,
25
+ request_options: typing.Optional[RequestOptions] = None,
26
+ ) -> models.V1AiVoiceGeneratorCreateResponse:
27
+ """
28
+ AI Voice Generator
29
+
30
+ Generate speech from text. Each character costs 0.05 credits. The cost is rounded up to the nearest whole number.
31
+
32
+ POST /v1/ai-voice-generator
33
+
34
+ Args:
35
+ name: The name of audio. This value is mainly used for your own identification of the audio.
36
+ style: The content used to generate speech.
37
+ request_options: Additional options to customize the HTTP request
38
+
39
+ Returns:
40
+ Success
41
+
42
+ Raises:
43
+ ApiError: A custom exception class that provides additional context
44
+ for API errors, including the HTTP status code and response body.
45
+
46
+ Examples:
47
+ ```py
48
+ client.v1.ai_voice_generator.create(
49
+ style={"prompt": "Hello, how are you?", "voice_name": "Elon Musk"},
50
+ name="Voice Generator audio",
51
+ )
52
+ ```
53
+ """
54
+ _json = to_encodable(
55
+ item={"name": name, "style": style},
56
+ dump_with=params._SerializerV1AiVoiceGeneratorCreateBody,
57
+ )
58
+ return self._base_client.request(
59
+ method="POST",
60
+ path="/v1/ai-voice-generator",
61
+ auth_names=["bearerAuth"],
62
+ json=_json,
63
+ cast_to=models.V1AiVoiceGeneratorCreateResponse,
64
+ request_options=request_options or default_request_options(),
65
+ )
66
+
67
+
68
+ class AsyncAiVoiceGeneratorClient:
69
+ def __init__(self, *, base_client: AsyncBaseClient):
70
+ self._base_client = base_client
71
+
72
+ async def create(
73
+ self,
74
+ *,
75
+ style: params.V1AiVoiceGeneratorCreateBodyStyle,
76
+ name: typing.Union[
77
+ typing.Optional[str], type_utils.NotGiven
78
+ ] = type_utils.NOT_GIVEN,
79
+ request_options: typing.Optional[RequestOptions] = None,
80
+ ) -> models.V1AiVoiceGeneratorCreateResponse:
81
+ """
82
+ AI Voice Generator
83
+
84
+ Generate speech from text. Each character costs 0.05 credits. The cost is rounded up to the nearest whole number.
85
+
86
+ POST /v1/ai-voice-generator
87
+
88
+ Args:
89
+ name: The name of audio. This value is mainly used for your own identification of the audio.
90
+ style: The content used to generate speech.
91
+ request_options: Additional options to customize the HTTP request
92
+
93
+ Returns:
94
+ Success
95
+
96
+ Raises:
97
+ ApiError: A custom exception class that provides additional context
98
+ for API errors, including the HTTP status code and response body.
99
+
100
+ Examples:
101
+ ```py
102
+ await client.v1.ai_voice_generator.create(
103
+ style={"prompt": "Hello, how are you?", "voice_name": "Elon Musk"},
104
+ name="Voice Generator audio",
105
+ )
106
+ ```
107
+ """
108
+ _json = to_encodable(
109
+ item={"name": name, "style": style},
110
+ dump_with=params._SerializerV1AiVoiceGeneratorCreateBody,
111
+ )
112
+ return await self._base_client.request(
113
+ method="POST",
114
+ path="/v1/ai-voice-generator",
115
+ auth_names=["bearerAuth"],
116
+ json=_json,
117
+ cast_to=models.V1AiVoiceGeneratorCreateResponse,
118
+ request_options=request_options or default_request_options(),
119
+ )
@@ -1,7 +1,9 @@
1
- # v1_animation
1
+ # v1.animation
2
2
 
3
3
  ## Module Functions
4
4
 
5
+
6
+
5
7
  <!-- CUSTOM DOCS START -->
6
8
 
7
9
  ### Animation Generate Workflow <a name="generate"></a>
@@ -87,7 +89,6 @@ res = await client.v1.animation.generate(
87
89
  ```
88
90
 
89
91
  <!-- CUSTOM DOCS END -->
90
-
91
92
  ### Animation <a name="create"></a>
92
93
 
93
94
  Create a Animation video. The estimated frame cost is calculated based on the `fps` and `end_seconds` input.
@@ -182,3 +183,4 @@ res = await client.v1.animation.create(
182
183
  ##### Example
183
184
  `{"credits_charged": 450, "estimated_frame_cost": 450, "id": "cuid-example"}`
184
185
 
186
+
@@ -0,0 +1,90 @@
1
+ # v1.audio_projects
2
+
3
+ ## Module Functions
4
+
5
+ ### Delete audio <a name="delete"></a>
6
+
7
+ Permanently delete the rendered audio file(s). This action is not reversible, please be sure before deleting.
8
+
9
+ **API Endpoint**: `DELETE /v1/audio-projects/{id}`
10
+
11
+ #### Parameters
12
+
13
+ | Parameter | Required | Description | Example |
14
+ |-----------|:--------:|-------------|--------|
15
+ | `id` | ✓ | Unique ID of the audio project. This value is returned by all of the POST APIs that create an audio. | `"cuid-example"` |
16
+
17
+ #### Synchronous Client
18
+
19
+ ```python
20
+ from magic_hour import Client
21
+ from os import getenv
22
+
23
+ client = Client(token=getenv("API_TOKEN"))
24
+ res = client.v1.audio_projects.delete(id="cuid-example")
25
+
26
+ ```
27
+
28
+ #### Asynchronous Client
29
+
30
+ ```python
31
+ from magic_hour import AsyncClient
32
+ from os import getenv
33
+
34
+ client = AsyncClient(token=getenv("API_TOKEN"))
35
+ res = await client.v1.audio_projects.delete(id="cuid-example")
36
+
37
+ ```
38
+
39
+ ### Get audio details <a name="get"></a>
40
+
41
+ Get the details of a audio project. The `downloads` field will be empty unless the audio was successfully rendered.
42
+
43
+ The audio can be one of the following status
44
+ - `draft` - not currently used
45
+ - `queued` - the job is queued and waiting for a GPU
46
+ - `rendering` - the generation is in progress
47
+ - `complete` - the audio is successful created
48
+ - `error` - an error occurred during rendering
49
+ - `canceled` - audio render is canceled by the user
50
+
51
+
52
+ **API Endpoint**: `GET /v1/audio-projects/{id}`
53
+
54
+ #### Parameters
55
+
56
+ | Parameter | Required | Description | Example |
57
+ |-----------|:--------:|-------------|--------|
58
+ | `id` | ✓ | Unique ID of the audio project. This value is returned by all of the POST APIs that create an audio. | `"cuid-example"` |
59
+
60
+ #### Synchronous Client
61
+
62
+ ```python
63
+ from magic_hour import Client
64
+ from os import getenv
65
+
66
+ client = Client(token=getenv("API_TOKEN"))
67
+ res = client.v1.audio_projects.get(id="cuid-example")
68
+
69
+ ```
70
+
71
+ #### Asynchronous Client
72
+
73
+ ```python
74
+ from magic_hour import AsyncClient
75
+ from os import getenv
76
+
77
+ client = AsyncClient(token=getenv("API_TOKEN"))
78
+ res = await client.v1.audio_projects.get(id="cuid-example")
79
+
80
+ ```
81
+
82
+ #### Response
83
+
84
+ ##### Type
85
+ [V1AudioProjectsGetResponse](/magic_hour/types/models/v1_audio_projects_get_response.py)
86
+
87
+ ##### Example
88
+ `{"created_at": "1970-01-01T00:00:00", "credits_charged": 2, "downloads": [{"expires_at": "2024-10-19T05:16:19.027Z", "url": "https://videos.magichour.ai/id/output.wav"}], "enabled": True, "error": {"code": "no_source_face", "message": "Please use an image with a detectable face"}, "id": "cuid-example", "name": "Example Name", "status": "complete", "type_": "VOICE_GENERATOR"}`
89
+
90
+