magic_hour 0.25.0__tar.gz → 0.26.1__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 (172) hide show
  1. {magic_hour-0.25.0 → magic_hour-0.26.1}/PKG-INFO +1 -1
  2. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/environment.py +1 -1
  3. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_gif_generator/README.md +2 -2
  4. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_gif_generator/client.py +2 -2
  5. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/image_to_video/README.md +2 -3
  6. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/image_to_video/client.py +33 -8
  7. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/text_to_video/README.md +1 -0
  8. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/text_to_video/client.py +22 -0
  9. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_image_to_video_create_body.py +18 -3
  10. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_image_to_video_create_body_style.py +10 -3
  11. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_text_to_video_create_body.py +15 -0
  12. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_text_to_video_create_body_style.py +5 -2
  13. {magic_hour-0.25.0 → magic_hour-0.26.1}/pyproject.toml +1 -1
  14. {magic_hour-0.25.0 → magic_hour-0.26.1}/LICENSE +0 -0
  15. {magic_hour-0.25.0 → magic_hour-0.26.1}/README.md +0 -0
  16. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/__init__.py +0 -0
  17. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/client.py +0 -0
  18. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/core/__init__.py +0 -0
  19. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/core/api_error.py +0 -0
  20. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/core/auth.py +0 -0
  21. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/core/base_client.py +0 -0
  22. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/core/binary_response.py +0 -0
  23. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/core/query.py +0 -0
  24. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/core/request.py +0 -0
  25. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/core/response.py +0 -0
  26. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/core/type_utils.py +0 -0
  27. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/core/utils.py +0 -0
  28. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/__init__.py +0 -0
  29. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_clothes_changer/README.md +0 -0
  30. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_clothes_changer/__init__.py +0 -0
  31. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_clothes_changer/client.py +0 -0
  32. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_face_editor/README.md +0 -0
  33. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_face_editor/__init__.py +0 -0
  34. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_face_editor/client.py +0 -0
  35. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_gif_generator/__init__.py +0 -0
  36. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_headshot_generator/README.md +0 -0
  37. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_headshot_generator/__init__.py +0 -0
  38. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_headshot_generator/client.py +0 -0
  39. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_image_editor/README.md +0 -0
  40. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_image_editor/__init__.py +0 -0
  41. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_image_editor/client.py +0 -0
  42. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_image_generator/README.md +0 -0
  43. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_image_generator/__init__.py +0 -0
  44. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_image_generator/client.py +0 -0
  45. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_image_upscaler/README.md +0 -0
  46. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_image_upscaler/__init__.py +0 -0
  47. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_image_upscaler/client.py +0 -0
  48. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_meme_generator/README.md +0 -0
  49. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_meme_generator/__init__.py +0 -0
  50. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_meme_generator/client.py +0 -0
  51. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_photo_editor/README.md +0 -0
  52. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_photo_editor/__init__.py +0 -0
  53. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_photo_editor/client.py +0 -0
  54. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_qr_code_generator/README.md +0 -0
  55. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_qr_code_generator/__init__.py +0 -0
  56. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_qr_code_generator/client.py +0 -0
  57. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_talking_photo/README.md +0 -0
  58. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_talking_photo/__init__.py +0 -0
  59. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/ai_talking_photo/client.py +0 -0
  60. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/animation/README.md +0 -0
  61. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/animation/__init__.py +0 -0
  62. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/animation/client.py +0 -0
  63. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/client.py +0 -0
  64. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/face_swap/README.md +0 -0
  65. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/face_swap/__init__.py +0 -0
  66. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/face_swap/client.py +0 -0
  67. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/face_swap_photo/README.md +0 -0
  68. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/face_swap_photo/__init__.py +0 -0
  69. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/face_swap_photo/client.py +0 -0
  70. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/files/__init__.py +0 -0
  71. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/files/client.py +0 -0
  72. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/files/upload_urls/README.md +0 -0
  73. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/files/upload_urls/__init__.py +0 -0
  74. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/files/upload_urls/client.py +0 -0
  75. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/image_background_remover/README.md +0 -0
  76. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/image_background_remover/__init__.py +0 -0
  77. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/image_background_remover/client.py +0 -0
  78. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/image_projects/README.md +0 -0
  79. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/image_projects/__init__.py +0 -0
  80. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/image_projects/client.py +0 -0
  81. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/image_to_video/__init__.py +0 -0
  82. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/lip_sync/README.md +0 -0
  83. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/lip_sync/__init__.py +0 -0
  84. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/lip_sync/client.py +0 -0
  85. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/photo_colorizer/README.md +0 -0
  86. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/photo_colorizer/__init__.py +0 -0
  87. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/photo_colorizer/client.py +0 -0
  88. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/text_to_video/__init__.py +0 -0
  89. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/video_projects/README.md +0 -0
  90. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/video_projects/__init__.py +0 -0
  91. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/video_projects/client.py +0 -0
  92. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/video_to_video/README.md +0 -0
  93. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/video_to_video/__init__.py +0 -0
  94. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/resources/v1/video_to_video/client.py +0 -0
  95. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/__init__.py +0 -0
  96. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_ai_clothes_changer_create_response.py +0 -0
  97. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_ai_face_editor_create_response.py +0 -0
  98. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_ai_gif_generator_create_response.py +0 -0
  99. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_ai_headshot_generator_create_response.py +0 -0
  100. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_ai_image_editor_create_response.py +0 -0
  101. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_ai_image_generator_create_response.py +0 -0
  102. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_ai_image_upscaler_create_response.py +0 -0
  103. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_ai_meme_generator_create_response.py +0 -0
  104. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_ai_photo_editor_create_response.py +0 -0
  105. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_ai_qr_code_generator_create_response.py +0 -0
  106. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_ai_talking_photo_create_response.py +0 -0
  107. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_animation_create_response.py +0 -0
  108. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_face_swap_create_response.py +0 -0
  109. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_face_swap_photo_create_response.py +0 -0
  110. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_files_upload_urls_create_response.py +0 -0
  111. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_files_upload_urls_create_response_items_item.py +0 -0
  112. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_image_background_remover_create_response.py +0 -0
  113. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_image_projects_get_response.py +0 -0
  114. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_image_projects_get_response_downloads_item.py +0 -0
  115. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_image_projects_get_response_error.py +0 -0
  116. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_image_to_video_create_response.py +0 -0
  117. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_lip_sync_create_response.py +0 -0
  118. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_photo_colorizer_create_response.py +0 -0
  119. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_text_to_video_create_response.py +0 -0
  120. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_video_projects_get_response.py +0 -0
  121. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_video_projects_get_response_download.py +0 -0
  122. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_video_projects_get_response_downloads_item.py +0 -0
  123. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_video_projects_get_response_error.py +0 -0
  124. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/models/v1_video_to_video_create_response.py +0 -0
  125. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/__init__.py +0 -0
  126. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_clothes_changer_create_body.py +0 -0
  127. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_clothes_changer_create_body_assets.py +0 -0
  128. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_face_editor_create_body.py +0 -0
  129. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_face_editor_create_body_assets.py +0 -0
  130. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_face_editor_create_body_style.py +0 -0
  131. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_gif_generator_create_body.py +0 -0
  132. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_gif_generator_create_body_style.py +0 -0
  133. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_headshot_generator_create_body.py +0 -0
  134. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_headshot_generator_create_body_assets.py +0 -0
  135. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_headshot_generator_create_body_style.py +0 -0
  136. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_image_editor_create_body.py +0 -0
  137. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_image_editor_create_body_assets.py +0 -0
  138. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_image_editor_create_body_style.py +0 -0
  139. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_image_generator_create_body.py +0 -0
  140. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_image_generator_create_body_style.py +0 -0
  141. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_image_upscaler_create_body.py +0 -0
  142. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_image_upscaler_create_body_assets.py +0 -0
  143. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_image_upscaler_create_body_style.py +0 -0
  144. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_meme_generator_create_body.py +0 -0
  145. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_meme_generator_create_body_style.py +0 -0
  146. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_photo_editor_create_body.py +0 -0
  147. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_photo_editor_create_body_assets.py +0 -0
  148. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_photo_editor_create_body_style.py +0 -0
  149. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_qr_code_generator_create_body.py +0 -0
  150. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_qr_code_generator_create_body_style.py +0 -0
  151. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_talking_photo_create_body.py +0 -0
  152. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_talking_photo_create_body_assets.py +0 -0
  153. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_ai_talking_photo_create_body_style.py +0 -0
  154. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_animation_create_body.py +0 -0
  155. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_animation_create_body_assets.py +0 -0
  156. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_animation_create_body_style.py +0 -0
  157. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_face_swap_create_body.py +0 -0
  158. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_face_swap_create_body_assets.py +0 -0
  159. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_face_swap_photo_create_body.py +0 -0
  160. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_face_swap_photo_create_body_assets.py +0 -0
  161. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_files_upload_urls_create_body.py +0 -0
  162. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_files_upload_urls_create_body_items_item.py +0 -0
  163. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_image_background_remover_create_body.py +0 -0
  164. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_image_background_remover_create_body_assets.py +0 -0
  165. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_image_to_video_create_body_assets.py +0 -0
  166. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_lip_sync_create_body.py +0 -0
  167. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_lip_sync_create_body_assets.py +0 -0
  168. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_photo_colorizer_create_body.py +0 -0
  169. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_photo_colorizer_create_body_assets.py +0 -0
  170. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_video_to_video_create_body.py +0 -0
  171. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_video_to_video_create_body_assets.py +0 -0
  172. {magic_hour-0.25.0 → magic_hour-0.26.1}/magic_hour/types/params/v1_video_to_video_create_body_style.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: magic_hour
3
- Version: 0.25.0
3
+ Version: 0.26.1
4
4
  Summary: Python SDK for Magic Hour API
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -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.25.0"
9
+ MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.26.1"
10
10
 
11
11
 
12
12
  def _get_base_url(
@@ -1,7 +1,7 @@
1
1
 
2
2
  ### AI GIFs <a name="create"></a>
3
3
 
4
- Create an AI GIF. Each GIF costs 25 credits.
4
+ Create an AI GIF. Each GIF costs 50 credits.
5
5
 
6
6
  **API Endpoint**: `POST /v1/ai-gif-generator`
7
7
 
@@ -44,4 +44,4 @@ res = await client.v1.ai_gif_generator.create(
44
44
  [V1AiGifGeneratorCreateResponse](/magic_hour/types/models/v1_ai_gif_generator_create_response.py)
45
45
 
46
46
  ##### Example
47
- `{"credits_charged": 25, "frame_cost": 25, "id": "clx7uu86w0a5qp55yxz315r6r"}`
47
+ `{"credits_charged": 50, "frame_cost": 50, "id": "clx7uu86w0a5qp55yxz315r6r"}`
@@ -27,7 +27,7 @@ class AiGifGeneratorClient:
27
27
  """
28
28
  AI GIFs
29
29
 
30
- Create an AI GIF. Each GIF costs 25 credits.
30
+ Create an AI GIF. Each GIF costs 50 credits.
31
31
 
32
32
  POST /v1/ai-gif-generator
33
33
 
@@ -80,7 +80,7 @@ class AsyncAiGifGeneratorClient:
80
80
  """
81
81
  AI GIFs
82
82
 
83
- Create an AI GIF. Each GIF costs 25 credits.
83
+ Create an AI GIF. Each GIF costs 50 credits.
84
84
 
85
85
  POST /v1/ai-gif-generator
86
86
 
@@ -14,9 +14,10 @@ Get more information about this mode at our [product page](/products/image-to-vi
14
14
  |-----------|:--------:|-------------|--------|
15
15
  | `assets` | ✓ | Provide the assets for image-to-video. | `{"image_file_path": "api-assets/id/1234.png"}` |
16
16
  | `end_seconds` | ✓ | The total duration of the output video in seconds. | `5.0` |
17
- | `style` | ✓ | Attributed used to dictate the style of the output | `{"prompt": "a dog running"}` |
18
17
  | `height` | ✗ | This field does not affect the output video's resolution. The video's orientation will match that of the input image. It is retained solely for backward compatibility and will be deprecated in the future. | `960` |
19
18
  | `name` | ✗ | The name of video | `"Image To Video video"` |
19
+ | `resolution` | ✗ | Controls the output video resolution. Defaults to `720p` if not specified. **Options:** - `480p` - Supports only 5 or 10 second videos. Output: 24fps. Cost: 120 credits per 5 seconds. - `720p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 300 credits per 5 seconds. - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds. **Requires** `pro` or `business` tier. | `"1080p"` |
20
+ | `style` | ✗ | Attributed used to dictate the style of the output | `{"prompt": "a dog running"}` |
20
21
  | `width` | ✗ | This field does not affect the output video's resolution. The video's orientation will match that of the input image. It is retained solely for backward compatibility and will be deprecated in the future. | `512` |
21
22
 
22
23
  #### Synchronous Client
@@ -29,7 +30,6 @@ client = Client(token=getenv("API_TOKEN"))
29
30
  res = client.v1.image_to_video.create(
30
31
  assets={"image_file_path": "api-assets/id/1234.png"},
31
32
  end_seconds=5.0,
32
- style={"prompt": "a dog running"},
33
33
  height=960,
34
34
  name="Image To Video video",
35
35
  width=512,
@@ -47,7 +47,6 @@ client = AsyncClient(token=getenv("API_TOKEN"))
47
47
  res = await client.v1.image_to_video.create(
48
48
  assets={"image_file_path": "api-assets/id/1234.png"},
49
49
  end_seconds=5.0,
50
- style={"prompt": "a dog running"},
51
50
  height=960,
52
51
  name="Image To Video video",
53
52
  width=512,
@@ -1,4 +1,5 @@
1
1
  import typing
2
+ import typing_extensions
2
3
 
3
4
  from magic_hour.core import (
4
5
  AsyncBaseClient,
@@ -20,13 +21,19 @@ class ImageToVideoClient:
20
21
  *,
21
22
  assets: params.V1ImageToVideoCreateBodyAssets,
22
23
  end_seconds: float,
23
- style: params.V1ImageToVideoCreateBodyStyle,
24
24
  height: typing.Union[
25
25
  typing.Optional[int], type_utils.NotGiven
26
26
  ] = type_utils.NOT_GIVEN,
27
27
  name: typing.Union[
28
28
  typing.Optional[str], type_utils.NotGiven
29
29
  ] = type_utils.NOT_GIVEN,
30
+ resolution: typing.Union[
31
+ typing.Optional[typing_extensions.Literal["1080p", "480p", "720p"]],
32
+ type_utils.NotGiven,
33
+ ] = type_utils.NOT_GIVEN,
34
+ style: typing.Union[
35
+ typing.Optional[params.V1ImageToVideoCreateBodyStyle], type_utils.NotGiven
36
+ ] = type_utils.NOT_GIVEN,
30
37
  width: typing.Union[
31
38
  typing.Optional[int], type_utils.NotGiven
32
39
  ] = type_utils.NOT_GIVEN,
@@ -47,12 +54,18 @@ class ImageToVideoClient:
47
54
 
48
55
  It is retained solely for backward compatibility and will be deprecated in the future.
49
56
  name: The name of video
57
+ resolution: Controls the output video resolution. Defaults to `720p` if not specified.
58
+
59
+ **Options:**
60
+ - `480p` - Supports only 5 or 10 second videos. Output: 24fps. Cost: 120 credits per 5 seconds.
61
+ - `720p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 300 credits per 5 seconds.
62
+ - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds. **Requires** `pro` or `business` tier.
63
+ style: Attributed used to dictate the style of the output
50
64
  width: This field does not affect the output video's resolution. The video's orientation will match that of the input image.
51
65
 
52
66
  It is retained solely for backward compatibility and will be deprecated in the future.
53
67
  assets: Provide the assets for image-to-video.
54
68
  end_seconds: The total duration of the output video in seconds.
55
- style: Attributed used to dictate the style of the output
56
69
  request_options: Additional options to customize the HTTP request
57
70
 
58
71
  Returns:
@@ -67,7 +80,6 @@ class ImageToVideoClient:
67
80
  client.v1.image_to_video.create(
68
81
  assets={"image_file_path": "api-assets/id/1234.png"},
69
82
  end_seconds=5.0,
70
- style={"prompt": "a dog running"},
71
83
  height=960,
72
84
  name="Image To Video video",
73
85
  width=512,
@@ -78,10 +90,11 @@ class ImageToVideoClient:
78
90
  item={
79
91
  "height": height,
80
92
  "name": name,
93
+ "resolution": resolution,
94
+ "style": style,
81
95
  "width": width,
82
96
  "assets": assets,
83
97
  "end_seconds": end_seconds,
84
- "style": style,
85
98
  },
86
99
  dump_with=params._SerializerV1ImageToVideoCreateBody,
87
100
  )
@@ -104,13 +117,19 @@ class AsyncImageToVideoClient:
104
117
  *,
105
118
  assets: params.V1ImageToVideoCreateBodyAssets,
106
119
  end_seconds: float,
107
- style: params.V1ImageToVideoCreateBodyStyle,
108
120
  height: typing.Union[
109
121
  typing.Optional[int], type_utils.NotGiven
110
122
  ] = type_utils.NOT_GIVEN,
111
123
  name: typing.Union[
112
124
  typing.Optional[str], type_utils.NotGiven
113
125
  ] = type_utils.NOT_GIVEN,
126
+ resolution: typing.Union[
127
+ typing.Optional[typing_extensions.Literal["1080p", "480p", "720p"]],
128
+ type_utils.NotGiven,
129
+ ] = type_utils.NOT_GIVEN,
130
+ style: typing.Union[
131
+ typing.Optional[params.V1ImageToVideoCreateBodyStyle], type_utils.NotGiven
132
+ ] = type_utils.NOT_GIVEN,
114
133
  width: typing.Union[
115
134
  typing.Optional[int], type_utils.NotGiven
116
135
  ] = type_utils.NOT_GIVEN,
@@ -131,12 +150,18 @@ class AsyncImageToVideoClient:
131
150
 
132
151
  It is retained solely for backward compatibility and will be deprecated in the future.
133
152
  name: The name of video
153
+ resolution: Controls the output video resolution. Defaults to `720p` if not specified.
154
+
155
+ **Options:**
156
+ - `480p` - Supports only 5 or 10 second videos. Output: 24fps. Cost: 120 credits per 5 seconds.
157
+ - `720p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 300 credits per 5 seconds.
158
+ - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds. **Requires** `pro` or `business` tier.
159
+ style: Attributed used to dictate the style of the output
134
160
  width: This field does not affect the output video's resolution. The video's orientation will match that of the input image.
135
161
 
136
162
  It is retained solely for backward compatibility and will be deprecated in the future.
137
163
  assets: Provide the assets for image-to-video.
138
164
  end_seconds: The total duration of the output video in seconds.
139
- style: Attributed used to dictate the style of the output
140
165
  request_options: Additional options to customize the HTTP request
141
166
 
142
167
  Returns:
@@ -151,7 +176,6 @@ class AsyncImageToVideoClient:
151
176
  await client.v1.image_to_video.create(
152
177
  assets={"image_file_path": "api-assets/id/1234.png"},
153
178
  end_seconds=5.0,
154
- style={"prompt": "a dog running"},
155
179
  height=960,
156
180
  name="Image To Video video",
157
181
  width=512,
@@ -162,10 +186,11 @@ class AsyncImageToVideoClient:
162
186
  item={
163
187
  "height": height,
164
188
  "name": name,
189
+ "resolution": resolution,
190
+ "style": style,
165
191
  "width": width,
166
192
  "assets": assets,
167
193
  "end_seconds": end_seconds,
168
- "style": style,
169
194
  },
170
195
  dump_with=params._SerializerV1ImageToVideoCreateBody,
171
196
  )
@@ -16,6 +16,7 @@ Get more information about this mode at our [product page](/products/text-to-vid
16
16
  | `orientation` | ✓ | Determines the orientation of the output video | `"landscape"` |
17
17
  | `style` | ✓ | | `{"prompt": "a dog running"}` |
18
18
  | `name` | ✗ | The name of video | `"Text To Video video"` |
19
+ | `resolution` | ✗ | Controls the output video resolution. Defaults to `720p` if not specified. **Options:** - `480p` - Supports only 5 or 10 second videos. Output: 24fps. Cost: 120 credits per 5 seconds. - `720p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 300 credits per 5 seconds. - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds. **Requires** `pro` or `business` tier. | `"1080p"` |
19
20
 
20
21
  #### Synchronous Client
21
22
 
@@ -25,6 +25,10 @@ class TextToVideoClient:
25
25
  name: typing.Union[
26
26
  typing.Optional[str], type_utils.NotGiven
27
27
  ] = type_utils.NOT_GIVEN,
28
+ resolution: typing.Union[
29
+ typing.Optional[typing_extensions.Literal["1080p", "480p", "720p"]],
30
+ type_utils.NotGiven,
31
+ ] = type_utils.NOT_GIVEN,
28
32
  request_options: typing.Optional[RequestOptions] = None,
29
33
  ) -> models.V1TextToVideoCreateResponse:
30
34
  """
@@ -39,6 +43,12 @@ class TextToVideoClient:
39
43
 
40
44
  Args:
41
45
  name: The name of video
46
+ resolution: Controls the output video resolution. Defaults to `720p` if not specified.
47
+
48
+ **Options:**
49
+ - `480p` - Supports only 5 or 10 second videos. Output: 24fps. Cost: 120 credits per 5 seconds.
50
+ - `720p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 300 credits per 5 seconds.
51
+ - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds. **Requires** `pro` or `business` tier.
42
52
  end_seconds: The total duration of the output video in seconds.
43
53
  orientation: Determines the orientation of the output video
44
54
  style: V1TextToVideoCreateBodyStyle
@@ -64,6 +74,7 @@ class TextToVideoClient:
64
74
  _json = to_encodable(
65
75
  item={
66
76
  "name": name,
77
+ "resolution": resolution,
67
78
  "end_seconds": end_seconds,
68
79
  "orientation": orientation,
69
80
  "style": style,
@@ -93,6 +104,10 @@ class AsyncTextToVideoClient:
93
104
  name: typing.Union[
94
105
  typing.Optional[str], type_utils.NotGiven
95
106
  ] = type_utils.NOT_GIVEN,
107
+ resolution: typing.Union[
108
+ typing.Optional[typing_extensions.Literal["1080p", "480p", "720p"]],
109
+ type_utils.NotGiven,
110
+ ] = type_utils.NOT_GIVEN,
96
111
  request_options: typing.Optional[RequestOptions] = None,
97
112
  ) -> models.V1TextToVideoCreateResponse:
98
113
  """
@@ -107,6 +122,12 @@ class AsyncTextToVideoClient:
107
122
 
108
123
  Args:
109
124
  name: The name of video
125
+ resolution: Controls the output video resolution. Defaults to `720p` if not specified.
126
+
127
+ **Options:**
128
+ - `480p` - Supports only 5 or 10 second videos. Output: 24fps. Cost: 120 credits per 5 seconds.
129
+ - `720p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 300 credits per 5 seconds.
130
+ - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds. **Requires** `pro` or `business` tier.
110
131
  end_seconds: The total duration of the output video in seconds.
111
132
  orientation: Determines the orientation of the output video
112
133
  style: V1TextToVideoCreateBodyStyle
@@ -132,6 +153,7 @@ class AsyncTextToVideoClient:
132
153
  _json = to_encodable(
133
154
  item={
134
155
  "name": name,
156
+ "resolution": resolution,
135
157
  "end_seconds": end_seconds,
136
158
  "orientation": orientation,
137
159
  "style": style,
@@ -39,7 +39,19 @@ class V1ImageToVideoCreateBody(typing_extensions.TypedDict):
39
39
  The name of video
40
40
  """
41
41
 
42
- style: typing_extensions.Required[V1ImageToVideoCreateBodyStyle]
42
+ resolution: typing_extensions.NotRequired[
43
+ typing_extensions.Literal["1080p", "480p", "720p"]
44
+ ]
45
+ """
46
+ Controls the output video resolution. Defaults to `720p` if not specified.
47
+
48
+ **Options:**
49
+ - `480p` - Supports only 5 or 10 second videos. Output: 24fps. Cost: 120 credits per 5 seconds.
50
+ - `720p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 300 credits per 5 seconds.
51
+ - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds. **Requires** `pro` or `business` tier.
52
+ """
53
+
54
+ style: typing_extensions.NotRequired[V1ImageToVideoCreateBodyStyle]
43
55
  """
44
56
  Attributed used to dictate the style of the output
45
57
  """
@@ -70,7 +82,10 @@ class _SerializerV1ImageToVideoCreateBody(pydantic.BaseModel):
70
82
  )
71
83
  height: typing.Optional[int] = pydantic.Field(alias="height", default=None)
72
84
  name: typing.Optional[str] = pydantic.Field(alias="name", default=None)
73
- style: _SerializerV1ImageToVideoCreateBodyStyle = pydantic.Field(
74
- alias="style",
85
+ resolution: typing.Optional[typing_extensions.Literal["1080p", "480p", "720p"]] = (
86
+ pydantic.Field(alias="resolution", default=None)
87
+ )
88
+ style: typing.Optional[_SerializerV1ImageToVideoCreateBodyStyle] = pydantic.Field(
89
+ alias="style", default=None
75
90
  )
76
91
  width: typing.Optional[int] = pydantic.Field(alias="width", default=None)
@@ -10,7 +10,11 @@ class V1ImageToVideoCreateBodyStyle(typing_extensions.TypedDict):
10
10
 
11
11
  high_quality: typing_extensions.NotRequired[bool]
12
12
  """
13
- Deprecated: Please use `quality_mode` instead. For backward compatibility, setting `high_quality: true` and `quality_mode: quick` will map to `quality_mode: studio`. Note: `quality_mode: studio` offers the same quality as `high_quality: true`.
13
+ Deprecated: Please use `resolution` instead. For backward compatibility,
14
+ * `false` maps to 720p resolution
15
+ * `true` maps to 1080p resolution
16
+
17
+ This field will be removed in a future version. Use the `resolution` field to directly specify the resolution.
14
18
  """
15
19
 
16
20
  prompt: typing_extensions.NotRequired[str]
@@ -22,8 +26,11 @@ class V1ImageToVideoCreateBodyStyle(typing_extensions.TypedDict):
22
26
  typing_extensions.Literal["quick", "studio"]
23
27
  ]
24
28
  """
25
- * `quick` - Fastest option for rapid results. Takes ~3 minutes per 5s of video.
26
- * `studio` - Polished visuals with longer runtime. Takes ~8.5 minutes per 5s of video.
29
+ DEPRECATED: Please use `resolution` field instead. For backward compatibility:
30
+ * `quick` maps to 720p resolution
31
+ * `studio` maps to 1080p resolution
32
+
33
+ This field will be removed in a future version. Use the `resolution` field to directly to specify the resolution.
27
34
  """
28
35
 
29
36
 
@@ -30,6 +30,18 @@ class V1TextToVideoCreateBody(typing_extensions.TypedDict):
30
30
  Determines the orientation of the output video
31
31
  """
32
32
 
33
+ resolution: typing_extensions.NotRequired[
34
+ typing_extensions.Literal["1080p", "480p", "720p"]
35
+ ]
36
+ """
37
+ Controls the output video resolution. Defaults to `720p` if not specified.
38
+
39
+ **Options:**
40
+ - `480p` - Supports only 5 or 10 second videos. Output: 24fps. Cost: 120 credits per 5 seconds.
41
+ - `720p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 300 credits per 5 seconds.
42
+ - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds. **Requires** `pro` or `business` tier.
43
+ """
44
+
33
45
  style: typing_extensions.Required[V1TextToVideoCreateBodyStyle]
34
46
 
35
47
 
@@ -52,6 +64,9 @@ class _SerializerV1TextToVideoCreateBody(pydantic.BaseModel):
52
64
  alias="orientation",
53
65
  )
54
66
  )
67
+ resolution: typing.Optional[typing_extensions.Literal["1080p", "480p", "720p"]] = (
68
+ pydantic.Field(alias="resolution", default=None)
69
+ )
55
70
  style: _SerializerV1TextToVideoCreateBodyStyle = pydantic.Field(
56
71
  alias="style",
57
72
  )
@@ -17,8 +17,11 @@ class V1TextToVideoCreateBodyStyle(typing_extensions.TypedDict):
17
17
  typing_extensions.Literal["quick", "studio"]
18
18
  ]
19
19
  """
20
- * `quick` - Fastest option for rapid results. Takes ~3 minutes per 5s of video.
21
- * `studio` - Polished visuals with longer runtime. Takes ~8.5 minutes per 5s of video.
20
+ DEPRECATED: Please use `resolution` field instead. For backward compatibility:
21
+ * `quick` maps to 720p resolution
22
+ * `studio` maps to 1080p resolution
23
+
24
+ This field will be removed in a future version. Use the `resolution` field to directly to specify the resolution.
22
25
  """
23
26
 
24
27
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "magic_hour"
3
- version = "0.25.0"
3
+ version = "0.26.1"
4
4
  description = "Python SDK for Magic Hour API"
5
5
  readme = "README.md"
6
6
  authors = []
File without changes
File without changes