magic_hour 0.8.3__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.
- {magic_hour-0.8.3 → magic_hour-0.8.5}/PKG-INFO +1 -1
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/environment.py +1 -1
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_headshot_generator/README.md +2 -2
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_headshot_generator/client.py +4 -2
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_image_upscaler/README.md +2 -2
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_image_upscaler/client.py +2 -2
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/face_swap/README.md +2 -2
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/image_background_remover/README.md +4 -2
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/image_background_remover/client.py +2 -2
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/image_to_video/README.md +2 -2
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/image_to_video/client.py +2 -2
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/lip_sync/README.md +4 -4
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/lip_sync/client.py +8 -2
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/video_to_video/README.md +2 -2
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_clothes_changer_body_assets.py +2 -2
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_headshot_generator_body_assets.py +1 -1
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_image_upscaler_body_assets.py +1 -1
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_face_swap_body_assets.py +1 -1
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_image_background_remover_body_assets.py +1 -1
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_image_to_video_body_assets.py +1 -1
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_lip_sync_body_assets.py +2 -2
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_video_to_video_body_assets.py +1 -1
- {magic_hour-0.8.3 → magic_hour-0.8.5}/pyproject.toml +1 -1
- {magic_hour-0.8.3 → magic_hour-0.8.5}/LICENSE +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/README.md +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/client.py +1 -1
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/core/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/core/api_error.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/core/auth.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/core/base_client.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/core/binary_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/core/request.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/core/response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/core/type_utils.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/core/utils.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_clothes_changer/README.md +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_clothes_changer/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_clothes_changer/client.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_headshot_generator/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_image_generator/README.md +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_image_generator/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_image_generator/client.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_image_upscaler/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_photo_editor/README.md +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_photo_editor/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_photo_editor/client.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_qr_code_generator/README.md +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_qr_code_generator/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_qr_code_generator/client.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/animation/README.md +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/animation/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/animation/client.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/client.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/face_swap/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/face_swap/client.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/face_swap_photo/README.md +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/face_swap_photo/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/face_swap_photo/client.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/files/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/files/client.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/files/upload_urls/README.md +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/files/upload_urls/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/files/upload_urls/client.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/image_background_remover/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/image_projects/README.md +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/image_projects/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/image_projects/client.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/image_to_video/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/lip_sync/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/text_to_video/README.md +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/text_to_video/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/text_to_video/client.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/video_projects/README.md +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/video_projects/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/video_projects/client.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/video_to_video/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/video_to_video/client.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_image_projects_id_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_image_projects_id_response_downloads_item.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_image_projects_id_response_error.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_video_projects_id_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_video_projects_id_response_download.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_video_projects_id_response_downloads_item.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_video_projects_id_response_error.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_clothes_changer_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_headshot_generator_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_image_generator_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_image_upscaler_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_photo_editor_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_qr_code_generator_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_animation_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_face_swap_photo_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_face_swap_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_files_upload_urls_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_files_upload_urls_response_items_item.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_image_background_remover_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_image_to_video_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_lip_sync_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_text_to_video_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_video_to_video_response.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/__init__.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_clothes_changer_body.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_headshot_generator_body.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_image_generator_body.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_image_generator_body_style.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_image_upscaler_body.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_image_upscaler_body_style.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_photo_editor_body.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_photo_editor_body_assets.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_photo_editor_body_style.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_qr_code_generator_body.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_qr_code_generator_body_style.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_animation_body.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_animation_body_assets.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_animation_body_style.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_face_swap_body.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_face_swap_photo_body.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_face_swap_photo_body_assets.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_files_upload_urls_body.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_files_upload_urls_body_items_item.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_image_background_remover_body.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_image_to_video_body.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_image_to_video_body_style.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_lip_sync_body.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_text_to_video_body.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_text_to_video_body_style.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_video_to_video_body.py +0 -0
- {magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_video_to_video_body_style.py +0 -0
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_headshot_generator/README.md
RENAMED
|
@@ -14,7 +14,7 @@ from os import getenv
|
|
|
14
14
|
|
|
15
15
|
client = Client(token=getenv("API_TOKEN"))
|
|
16
16
|
res = client.v1.ai_headshot_generator.create(
|
|
17
|
-
assets={"image_file_path": "
|
|
17
|
+
assets={"image_file_path": "api-assets/id/1234.png"}, name="Ai Headshot image"
|
|
18
18
|
)
|
|
19
19
|
```
|
|
20
20
|
|
|
@@ -26,6 +26,6 @@ from os import getenv
|
|
|
26
26
|
|
|
27
27
|
client = AsyncClient(token=getenv("API_TOKEN"))
|
|
28
28
|
res = await client.v1.ai_headshot_generator.create(
|
|
29
|
-
assets={"image_file_path": "
|
|
29
|
+
assets={"image_file_path": "api-assets/id/1234.png"}, name="Ai Headshot image"
|
|
30
30
|
)
|
|
31
31
|
```
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_headshot_generator/client.py
RENAMED
|
@@ -46,7 +46,8 @@ class AiHeadshotGeneratorClient:
|
|
|
46
46
|
Examples:
|
|
47
47
|
```py
|
|
48
48
|
client.v1.ai_headshot_generator.create(
|
|
49
|
-
assets={"image_file_path": "
|
|
49
|
+
assets={"image_file_path": "api-assets/id/1234.png"},
|
|
50
|
+
name="Ai Headshot image",
|
|
50
51
|
)
|
|
51
52
|
```
|
|
52
53
|
|
|
@@ -100,7 +101,8 @@ class AsyncAiHeadshotGeneratorClient:
|
|
|
100
101
|
Examples:
|
|
101
102
|
```py
|
|
102
103
|
await client.v1.ai_headshot_generator.create(
|
|
103
|
-
assets={"image_file_path": "
|
|
104
|
+
assets={"image_file_path": "api-assets/id/1234.png"},
|
|
105
|
+
name="Ai Headshot image",
|
|
104
106
|
)
|
|
105
107
|
```
|
|
106
108
|
|
|
@@ -14,7 +14,7 @@ from os import getenv
|
|
|
14
14
|
|
|
15
15
|
client = Client(token=getenv("API_TOKEN"))
|
|
16
16
|
res = client.v1.ai_image_upscaler.create(
|
|
17
|
-
assets={"image_file_path": "
|
|
17
|
+
assets={"image_file_path": "api-assets/id/1234.png"},
|
|
18
18
|
scale_factor=123.45,
|
|
19
19
|
style={"enhancement": "Balanced"},
|
|
20
20
|
name="Image Upscaler image",
|
|
@@ -29,7 +29,7 @@ from os import getenv
|
|
|
29
29
|
|
|
30
30
|
client = AsyncClient(token=getenv("API_TOKEN"))
|
|
31
31
|
res = await client.v1.ai_image_upscaler.create(
|
|
32
|
-
assets={"image_file_path": "
|
|
32
|
+
assets={"image_file_path": "api-assets/id/1234.png"},
|
|
33
33
|
scale_factor=123.45,
|
|
34
34
|
style={"enhancement": "Balanced"},
|
|
35
35
|
name="Image Upscaler image",
|
|
@@ -50,7 +50,7 @@ class AiImageUpscalerClient:
|
|
|
50
50
|
Examples:
|
|
51
51
|
```py
|
|
52
52
|
client.v1.ai_image_upscaler.create(
|
|
53
|
-
assets={"image_file_path": "
|
|
53
|
+
assets={"image_file_path": "api-assets/id/1234.png"},
|
|
54
54
|
scale_factor=123.0,
|
|
55
55
|
style={"enhancement": "Balanced"},
|
|
56
56
|
name="Image Upscaler image",
|
|
@@ -116,7 +116,7 @@ class AsyncAiImageUpscalerClient:
|
|
|
116
116
|
Examples:
|
|
117
117
|
```py
|
|
118
118
|
await client.v1.ai_image_upscaler.create(
|
|
119
|
-
assets={"image_file_path": "
|
|
119
|
+
assets={"image_file_path": "api-assets/id/1234.png"},
|
|
120
120
|
scale_factor=123.0,
|
|
121
121
|
style={"enhancement": "Balanced"},
|
|
122
122
|
name="Image Upscaler image",
|
|
@@ -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": "
|
|
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": "
|
|
43
|
+
"video_file_path": "api-assets/id/1234.mp4",
|
|
44
44
|
"video_source": "file",
|
|
45
45
|
},
|
|
46
46
|
end_seconds=15.0,
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/image_background_remover/README.md
RENAMED
|
@@ -14,7 +14,8 @@ from os import getenv
|
|
|
14
14
|
|
|
15
15
|
client = Client(token=getenv("API_TOKEN"))
|
|
16
16
|
res = client.v1.image_background_remover.create(
|
|
17
|
-
assets={"image_file_path": "
|
|
17
|
+
assets={"image_file_path": "api-assets/id/1234.png"},
|
|
18
|
+
name="Background Remover image",
|
|
18
19
|
)
|
|
19
20
|
```
|
|
20
21
|
|
|
@@ -26,6 +27,7 @@ from os import getenv
|
|
|
26
27
|
|
|
27
28
|
client = AsyncClient(token=getenv("API_TOKEN"))
|
|
28
29
|
res = await client.v1.image_background_remover.create(
|
|
29
|
-
assets={"image_file_path": "
|
|
30
|
+
assets={"image_file_path": "api-assets/id/1234.png"},
|
|
31
|
+
name="Background Remover image",
|
|
30
32
|
)
|
|
31
33
|
```
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/image_background_remover/client.py
RENAMED
|
@@ -46,7 +46,7 @@ class ImageBackgroundRemoverClient:
|
|
|
46
46
|
Examples:
|
|
47
47
|
```py
|
|
48
48
|
client.v1.image_background_remover.create(
|
|
49
|
-
assets={"image_file_path": "
|
|
49
|
+
assets={"image_file_path": "api-assets/id/1234.png"},
|
|
50
50
|
name="Background Remover image",
|
|
51
51
|
)
|
|
52
52
|
```
|
|
@@ -101,7 +101,7 @@ class AsyncImageBackgroundRemoverClient:
|
|
|
101
101
|
Examples:
|
|
102
102
|
```py
|
|
103
103
|
await client.v1.image_background_remover.create(
|
|
104
|
-
assets={"image_file_path": "
|
|
104
|
+
assets={"image_file_path": "api-assets/id/1234.png"},
|
|
105
105
|
name="Background Remover image",
|
|
106
106
|
)
|
|
107
107
|
```
|
|
@@ -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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
22
|
-
"video_file_path": "
|
|
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": "
|
|
44
|
-
"video_file_path": "
|
|
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={
|
|
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={
|
|
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": "
|
|
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": "
|
|
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,
|
|
@@ -9,7 +9,7 @@ class PostV1AiClothesChangerBodyAssets(typing_extensions.TypedDict):
|
|
|
9
9
|
|
|
10
10
|
garment_file_path: typing_extensions.Required[str]
|
|
11
11
|
"""
|
|
12
|
-
The image of the outfit. This value can be 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
|
|
12
|
+
The image of the outfit. 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
|
garment_type: typing_extensions.Required[
|
|
@@ -18,7 +18,7 @@ class PostV1AiClothesChangerBodyAssets(typing_extensions.TypedDict):
|
|
|
18
18
|
|
|
19
19
|
person_file_path: typing_extensions.Required[str]
|
|
20
20
|
"""
|
|
21
|
-
The image with the person. This value can be 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
|
|
21
|
+
The image with the person. 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..
|
|
22
22
|
"""
|
|
23
23
|
|
|
24
24
|
|
|
@@ -9,7 +9,7 @@ class PostV1AiHeadshotGeneratorBodyAssets(typing_extensions.TypedDict):
|
|
|
9
9
|
|
|
10
10
|
image_file_path: typing_extensions.Required[str]
|
|
11
11
|
"""
|
|
12
|
-
The image used to generate the headshot. This image must contain one detectable face. This
|
|
12
|
+
The image used to generate the headshot. This image must contain one detectable face. 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
|
|
|
@@ -9,7 +9,7 @@ class PostV1AiImageUpscalerBodyAssets(typing_extensions.TypedDict):
|
|
|
9
9
|
|
|
10
10
|
image_file_path: typing_extensions.Required[str]
|
|
11
11
|
"""
|
|
12
|
-
The image to upscale. This
|
|
12
|
+
The image to upscale. 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
|
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_face_swap_body_assets.py
RENAMED
|
@@ -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)
|
|
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 PostV1ImageBackgroundRemoverBodyAssets(typing_extensions.TypedDict):
|
|
|
9
9
|
|
|
10
10
|
image_file_path: typing_extensions.Required[str]
|
|
11
11
|
"""
|
|
12
|
-
The image used to generate the image. This
|
|
12
|
+
The image used to generate the image. 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
|
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_image_to_video_body_assets.py
RENAMED
|
@@ -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
|
|
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
|
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_lip_sync_body_assets.py
RENAMED
|
@@ -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
|
|
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)
|
|
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[
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_video_to_video_body_assets.py
RENAMED
|
@@ -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).
|
|
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[
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import httpx
|
|
2
2
|
import typing
|
|
3
3
|
|
|
4
|
+
from magic_hour.core import AsyncBaseClient, AuthBearer, SyncBaseClient
|
|
4
5
|
from magic_hour.resources.v1 import AsyncV1Client, V1Client
|
|
5
6
|
from magic_hour.environment import Environment
|
|
6
|
-
from magic_hour.core import AsyncBaseClient, AuthBearer, SyncBaseClient
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class Client:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_clothes_changer/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_headshot_generator/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_image_generator/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_qr_code_generator/README.md
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_qr_code_generator/__init__.py
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/ai_qr_code_generator/client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/resources/v1/image_background_remover/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_image_projects_id_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/get_v1_video_projects_id_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_clothes_changer_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_image_generator_response.py
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_image_upscaler_response.py
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_ai_photo_editor_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_face_swap_photo_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_files_upload_urls_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_image_to_video_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_text_to_video_response.py
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/models/post_v1_video_to_video_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_clothes_changer_body.py
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_headshot_generator_body.py
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_image_generator_body.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_image_upscaler_body.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_photo_editor_body.py
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_photo_editor_body_assets.py
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_photo_editor_body_style.py
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_ai_qr_code_generator_body.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_animation_body_assets.py
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_animation_body_style.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_face_swap_photo_body.py
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_face_swap_photo_body_assets.py
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_files_upload_urls_body.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_image_to_video_body.py
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_image_to_video_body_style.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_text_to_video_body_style.py
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_video_to_video_body.py
RENAMED
|
File without changes
|
{magic_hour-0.8.3 → magic_hour-0.8.5}/magic_hour/types/params/post_v1_video_to_video_body_style.py
RENAMED
|
File without changes
|