magic_hour 0.8.4__tar.gz → 0.8.5__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 (131) hide show
  1. {magic_hour-0.8.4 → magic_hour-0.8.5}/PKG-INFO +1 -1
  2. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/environment.py +1 -1
  3. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/face_swap/README.md +2 -2
  4. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/image_to_video/README.md +2 -2
  5. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/image_to_video/client.py +2 -2
  6. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/lip_sync/README.md +4 -4
  7. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/lip_sync/client.py +8 -2
  8. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/video_to_video/README.md +2 -2
  9. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_face_swap_body_assets.py +1 -1
  10. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_image_to_video_body_assets.py +1 -1
  11. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_lip_sync_body_assets.py +2 -2
  12. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_video_to_video_body_assets.py +1 -1
  13. {magic_hour-0.8.4 → magic_hour-0.8.5}/pyproject.toml +1 -1
  14. {magic_hour-0.8.4 → magic_hour-0.8.5}/LICENSE +0 -0
  15. {magic_hour-0.8.4 → magic_hour-0.8.5}/README.md +0 -0
  16. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/__init__.py +0 -0
  17. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/client.py +2 -2
  18. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/core/__init__.py +0 -0
  19. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/core/api_error.py +0 -0
  20. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/core/auth.py +0 -0
  21. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/core/base_client.py +0 -0
  22. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/core/binary_response.py +0 -0
  23. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/core/request.py +0 -0
  24. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/core/response.py +0 -0
  25. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/core/type_utils.py +0 -0
  26. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/core/utils.py +0 -0
  27. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/__init__.py +0 -0
  28. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_clothes_changer/README.md +0 -0
  29. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_clothes_changer/__init__.py +0 -0
  30. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_clothes_changer/client.py +0 -0
  31. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_headshot_generator/README.md +0 -0
  32. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_headshot_generator/__init__.py +0 -0
  33. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_headshot_generator/client.py +0 -0
  34. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_image_generator/README.md +0 -0
  35. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_image_generator/__init__.py +0 -0
  36. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_image_generator/client.py +0 -0
  37. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_image_upscaler/README.md +0 -0
  38. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_image_upscaler/__init__.py +0 -0
  39. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_image_upscaler/client.py +0 -0
  40. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_photo_editor/README.md +0 -0
  41. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_photo_editor/__init__.py +0 -0
  42. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_photo_editor/client.py +0 -0
  43. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_qr_code_generator/README.md +0 -0
  44. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_qr_code_generator/__init__.py +0 -0
  45. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_qr_code_generator/client.py +0 -0
  46. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/animation/README.md +0 -0
  47. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/animation/__init__.py +0 -0
  48. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/animation/client.py +0 -0
  49. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/client.py +0 -0
  50. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/face_swap/__init__.py +0 -0
  51. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/face_swap/client.py +0 -0
  52. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/face_swap_photo/README.md +0 -0
  53. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/face_swap_photo/__init__.py +0 -0
  54. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/face_swap_photo/client.py +0 -0
  55. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/files/__init__.py +0 -0
  56. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/files/client.py +0 -0
  57. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/files/upload_urls/README.md +0 -0
  58. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/files/upload_urls/__init__.py +0 -0
  59. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/files/upload_urls/client.py +0 -0
  60. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/image_background_remover/README.md +0 -0
  61. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/image_background_remover/__init__.py +0 -0
  62. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/image_background_remover/client.py +0 -0
  63. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/image_projects/README.md +0 -0
  64. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/image_projects/__init__.py +0 -0
  65. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/image_projects/client.py +0 -0
  66. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/image_to_video/__init__.py +0 -0
  67. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/lip_sync/__init__.py +0 -0
  68. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/text_to_video/README.md +0 -0
  69. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/text_to_video/__init__.py +0 -0
  70. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/text_to_video/client.py +0 -0
  71. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/video_projects/README.md +0 -0
  72. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/video_projects/__init__.py +0 -0
  73. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/video_projects/client.py +0 -0
  74. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/video_to_video/__init__.py +0 -0
  75. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/resources/v1/video_to_video/client.py +0 -0
  76. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/__init__.py +0 -0
  77. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_image_projects_id_response.py +0 -0
  78. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_image_projects_id_response_downloads_item.py +0 -0
  79. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_image_projects_id_response_error.py +0 -0
  80. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_video_projects_id_response.py +0 -0
  81. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_video_projects_id_response_download.py +0 -0
  82. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_video_projects_id_response_downloads_item.py +0 -0
  83. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_video_projects_id_response_error.py +0 -0
  84. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_clothes_changer_response.py +0 -0
  85. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_headshot_generator_response.py +0 -0
  86. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_image_generator_response.py +0 -0
  87. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_image_upscaler_response.py +0 -0
  88. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_photo_editor_response.py +0 -0
  89. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_qr_code_generator_response.py +0 -0
  90. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_animation_response.py +0 -0
  91. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_face_swap_photo_response.py +0 -0
  92. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_face_swap_response.py +0 -0
  93. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_files_upload_urls_response.py +0 -0
  94. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_files_upload_urls_response_items_item.py +0 -0
  95. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_image_background_remover_response.py +0 -0
  96. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_image_to_video_response.py +0 -0
  97. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_lip_sync_response.py +0 -0
  98. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_text_to_video_response.py +0 -0
  99. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_video_to_video_response.py +0 -0
  100. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/__init__.py +0 -0
  101. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_clothes_changer_body.py +0 -0
  102. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_clothes_changer_body_assets.py +0 -0
  103. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_headshot_generator_body.py +0 -0
  104. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_headshot_generator_body_assets.py +0 -0
  105. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_image_generator_body.py +0 -0
  106. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_image_generator_body_style.py +0 -0
  107. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_image_upscaler_body.py +0 -0
  108. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_image_upscaler_body_assets.py +0 -0
  109. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_image_upscaler_body_style.py +0 -0
  110. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_photo_editor_body.py +0 -0
  111. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_photo_editor_body_assets.py +0 -0
  112. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_photo_editor_body_style.py +0 -0
  113. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_qr_code_generator_body.py +0 -0
  114. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_qr_code_generator_body_style.py +0 -0
  115. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_animation_body.py +0 -0
  116. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_animation_body_assets.py +0 -0
  117. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_animation_body_style.py +0 -0
  118. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_face_swap_body.py +0 -0
  119. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_face_swap_photo_body.py +0 -0
  120. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_face_swap_photo_body_assets.py +0 -0
  121. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_files_upload_urls_body.py +0 -0
  122. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_files_upload_urls_body_items_item.py +0 -0
  123. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_image_background_remover_body.py +0 -0
  124. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_image_background_remover_body_assets.py +0 -0
  125. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_image_to_video_body.py +0 -0
  126. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_image_to_video_body_style.py +0 -0
  127. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_lip_sync_body.py +0 -0
  128. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_text_to_video_body.py +0 -0
  129. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_text_to_video_body_style.py +0 -0
  130. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_video_to_video_body.py +0 -0
  131. {magic_hour-0.8.4 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_video_to_video_body_style.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: magic_hour
3
- Version: 0.8.4
3
+ Version: 0.8.5
4
4
  Summary: Python SDK for Magic Hour API
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -3,4 +3,4 @@ import enum
3
3
 
4
4
  class Environment(enum.Enum):
5
5
  ENVIRONMENT = "https://api.magichour.ai"
6
- MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.8.4"
6
+ MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.8.5"
@@ -19,7 +19,7 @@ client = Client(token=getenv("API_TOKEN"))
19
19
  res = client.v1.face_swap.create(
20
20
  assets={
21
21
  "image_file_path": "image/id/1234.png",
22
- "video_file_path": "video/id/1234.mp4",
22
+ "video_file_path": "api-assets/id/1234.mp4",
23
23
  "video_source": "file",
24
24
  },
25
25
  end_seconds=15.0,
@@ -40,7 +40,7 @@ client = AsyncClient(token=getenv("API_TOKEN"))
40
40
  res = await client.v1.face_swap.create(
41
41
  assets={
42
42
  "image_file_path": "image/id/1234.png",
43
- "video_file_path": "video/id/1234.mp4",
43
+ "video_file_path": "api-assets/id/1234.mp4",
44
44
  "video_source": "file",
45
45
  },
46
46
  end_seconds=15.0,
@@ -17,7 +17,7 @@ from os import getenv
17
17
 
18
18
  client = Client(token=getenv("API_TOKEN"))
19
19
  res = client.v1.image_to_video.create(
20
- assets={"image_file_path": "image/id/1234.png"},
20
+ assets={"image_file_path": "api-assets/id/1234.png"},
21
21
  end_seconds=5.0,
22
22
  height=960,
23
23
  style={"prompt": None},
@@ -34,7 +34,7 @@ from os import getenv
34
34
 
35
35
  client = AsyncClient(token=getenv("API_TOKEN"))
36
36
  res = await client.v1.image_to_video.create(
37
- assets={"image_file_path": "image/id/1234.png"},
37
+ assets={"image_file_path": "api-assets/id/1234.png"},
38
38
  end_seconds=5.0,
39
39
  height=960,
40
40
  style={"prompt": None},
@@ -57,7 +57,7 @@ class ImageToVideoClient:
57
57
  Examples:
58
58
  ```py
59
59
  client.v1.image_to_video.create(
60
- assets={"image_file_path": "image/id/1234.png"},
60
+ assets={"image_file_path": "api-assets/id/1234.png"},
61
61
  end_seconds=5.0,
62
62
  height=960,
63
63
  style={"prompt": "string"},
@@ -134,7 +134,7 @@ class AsyncImageToVideoClient:
134
134
  Examples:
135
135
  ```py
136
136
  await client.v1.image_to_video.create(
137
- assets={"image_file_path": "image/id/1234.png"},
137
+ assets={"image_file_path": "api-assets/id/1234.png"},
138
138
  end_seconds=5.0,
139
139
  height=960,
140
140
  style={"prompt": "string"},
@@ -18,8 +18,8 @@ from os import getenv
18
18
  client = Client(token=getenv("API_TOKEN"))
19
19
  res = client.v1.lip_sync.create(
20
20
  assets={
21
- "audio_file_path": "audio/id/1234.mp3",
22
- "video_file_path": "video/id/1234.mp4",
21
+ "audio_file_path": "api-assets/id/1234.mp3",
22
+ "video_file_path": "api-assets/id/1234.mp4",
23
23
  "video_source": "file",
24
24
  },
25
25
  end_seconds=15.0,
@@ -40,8 +40,8 @@ from os import getenv
40
40
  client = AsyncClient(token=getenv("API_TOKEN"))
41
41
  res = await client.v1.lip_sync.create(
42
42
  assets={
43
- "audio_file_path": "audio/id/1234.mp3",
44
- "video_file_path": "video/id/1234.mp4",
43
+ "audio_file_path": "api-assets/id/1234.mp3",
44
+ "video_file_path": "api-assets/id/1234.mp4",
45
45
  "video_source": "file",
46
46
  },
47
47
  end_seconds=15.0,
@@ -61,7 +61,10 @@ class LipSyncClient:
61
61
  Examples:
62
62
  ```py
63
63
  client.v1.lip_sync.create(
64
- assets={"audio_file_path": "audio/id/1234.mp3", "video_source": "file"},
64
+ assets={
65
+ "audio_file_path": "api-assets/id/1234.mp3",
66
+ "video_source": "file",
67
+ },
65
68
  end_seconds=15.0,
66
69
  height=960,
67
70
  start_seconds=0.0,
@@ -144,7 +147,10 @@ class AsyncLipSyncClient:
144
147
  Examples:
145
148
  ```py
146
149
  await client.v1.lip_sync.create(
147
- assets={"audio_file_path": "audio/id/1234.mp3", "video_source": "file"},
150
+ assets={
151
+ "audio_file_path": "api-assets/id/1234.mp3",
152
+ "video_source": "file",
153
+ },
148
154
  end_seconds=15.0,
149
155
  height=960,
150
156
  start_seconds=0.0,
@@ -17,7 +17,7 @@ from os import getenv
17
17
 
18
18
  client = Client(token=getenv("API_TOKEN"))
19
19
  res = client.v1.video_to_video.create(
20
- assets={"video_file_path": "video/id/1234.mp4", "video_source": "file"},
20
+ assets={"video_file_path": "api-assets/id/1234.mp4", "video_source": "file"},
21
21
  end_seconds=15.0,
22
22
  height=960,
23
23
  start_seconds=0.0,
@@ -42,7 +42,7 @@ from os import getenv
42
42
 
43
43
  client = AsyncClient(token=getenv("API_TOKEN"))
44
44
  res = await client.v1.video_to_video.create(
45
- assets={"video_file_path": "video/id/1234.mp4", "video_source": "file"},
45
+ assets={"video_file_path": "api-assets/id/1234.mp4", "video_source": "file"},
46
46
  end_seconds=15.0,
47
47
  height=960,
48
48
  start_seconds=0.0,
@@ -15,7 +15,7 @@ class PostV1FaceSwapBodyAssets(typing_extensions.TypedDict):
15
15
 
16
16
  video_file_path: typing_extensions.NotRequired[str]
17
17
  """
18
- The path of the input video. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls). This field is required if `video_source` is `file`
18
+ The path of the input video. This field is required if `video_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
19
19
  """
20
20
 
21
21
  video_source: typing_extensions.Required[
@@ -9,7 +9,7 @@ class PostV1ImageToVideoBodyAssets(typing_extensions.TypedDict):
9
9
 
10
10
  image_file_path: typing_extensions.Required[str]
11
11
  """
12
- The path of the image file. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
12
+ The path of the image file. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
13
13
  """
14
14
 
15
15
 
@@ -10,12 +10,12 @@ class PostV1LipSyncBodyAssets(typing_extensions.TypedDict):
10
10
 
11
11
  audio_file_path: typing_extensions.Required[str]
12
12
  """
13
- The path of the audio file. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
13
+ The path of the audio file. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
14
14
  """
15
15
 
16
16
  video_file_path: typing_extensions.NotRequired[str]
17
17
  """
18
- The path of the input video. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls). This field is required if `video_source` is `file`
18
+ The path of the input video. This field is required if `video_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
19
19
  """
20
20
 
21
21
  video_source: typing_extensions.Required[
@@ -10,7 +10,7 @@ class PostV1VideoToVideoBodyAssets(typing_extensions.TypedDict):
10
10
 
11
11
  video_file_path: typing_extensions.NotRequired[str]
12
12
  """
13
- The path of the input video. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls). This field is required if `video_source` is `file`
13
+ The path of the input video. This field is required if `video_source` is `file`. This value is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls).
14
14
  """
15
15
 
16
16
  video_source: typing_extensions.Required[
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "magic_hour"
3
- version = "0.8.4"
3
+ version = "0.8.5"
4
4
  description = "Python SDK for Magic Hour API"
5
5
  readme = "README.md"
6
6
  authors = []
File without changes
File without changes
@@ -1,9 +1,9 @@
1
1
  import httpx
2
2
  import typing
3
3
 
4
- from magic_hour.environment import Environment
5
- from magic_hour.resources.v1 import AsyncV1Client, V1Client
6
4
  from magic_hour.core import AsyncBaseClient, AuthBearer, SyncBaseClient
5
+ from magic_hour.resources.v1 import AsyncV1Client, V1Client
6
+ from magic_hour.environment import Environment
7
7
 
8
8
 
9
9
  class Client: