magic_hour 0.8.0__tar.gz → 0.8.2__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.0 → magic_hour-0.8.2}/PKG-INFO +36 -42
- {magic_hour-0.8.0 → magic_hour-0.8.2}/README.md +34 -40
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/environment.py +1 -1
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_image_upscaler/client.py +2 -2
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_image_upscaler_body.py +3 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/pyproject.toml +2 -2
- {magic_hour-0.8.0 → magic_hour-0.8.2}/LICENSE +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/core/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/core/api_error.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/core/auth.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/core/base_client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/core/binary_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/core/request.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/core/response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/core/type_utils.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/core/utils.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_clothes_changer/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_clothes_changer/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_clothes_changer/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_headshot_generator/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_headshot_generator/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_headshot_generator/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_image_generator/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_image_generator/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_image_generator/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_image_upscaler/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_image_upscaler/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_photo_editor/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_photo_editor/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_photo_editor/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_qr_code_generator/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_qr_code_generator/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_qr_code_generator/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/animation/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/animation/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/animation/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/face_swap/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/face_swap/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/face_swap/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/face_swap_photo/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/face_swap_photo/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/face_swap_photo/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/files/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/files/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/files/upload_urls/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/files/upload_urls/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/files/upload_urls/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/image_background_remover/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/image_background_remover/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/image_background_remover/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/image_projects/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/image_projects/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/image_projects/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/image_to_video/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/image_to_video/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/image_to_video/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/lip_sync/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/lip_sync/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/lip_sync/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/text_to_video/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/text_to_video/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/text_to_video/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/video_projects/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/video_projects/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/video_projects/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/video_to_video/README.md +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/video_to_video/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/video_to_video/client.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/get_v1_image_projects_id_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/get_v1_image_projects_id_response_downloads_item.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/get_v1_image_projects_id_response_error.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/get_v1_video_projects_id_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/get_v1_video_projects_id_response_download.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/get_v1_video_projects_id_response_downloads_item.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/get_v1_video_projects_id_response_error.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_ai_clothes_changer_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_ai_headshot_generator_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_ai_image_generator_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_ai_image_upscaler_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_ai_photo_editor_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_ai_qr_code_generator_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_animation_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_face_swap_photo_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_face_swap_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_files_upload_urls_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_files_upload_urls_response_items_item.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_image_background_remover_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_image_to_video_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_lip_sync_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_text_to_video_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_video_to_video_response.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/__init__.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_clothes_changer_body.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_clothes_changer_body_assets.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_headshot_generator_body.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_headshot_generator_body_assets.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_image_generator_body.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_image_generator_body_style.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_image_upscaler_body_assets.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_image_upscaler_body_style.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_photo_editor_body.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_photo_editor_body_assets.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_photo_editor_body_style.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_qr_code_generator_body.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_qr_code_generator_body_style.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_animation_body.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_animation_body_assets.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_animation_body_style.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_face_swap_body.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_face_swap_body_assets.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_face_swap_photo_body.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_face_swap_photo_body_assets.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_files_upload_urls_body.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_files_upload_urls_body_items_item.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_image_background_remover_body.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_image_background_remover_body_assets.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_image_to_video_body.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_image_to_video_body_assets.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_image_to_video_body_style.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_lip_sync_body.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_lip_sync_body_assets.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_text_to_video_body.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_text_to_video_body_style.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_video_to_video_body.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_video_to_video_body_assets.py +0 -0
- {magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_video_to_video_body_style.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: magic_hour
|
|
3
|
-
Version: 0.8.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 0.8.2
|
|
4
|
+
Summary: Python SDK for Magic Hour API
|
|
5
5
|
Requires-Python: >=3.8,<4.0
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
7
7
|
Classifier: Programming Language :: Python :: 3.8
|
|
@@ -16,123 +16,117 @@ Requires-Dist: pydantic (>=2.5.0,<3.0.0)
|
|
|
16
16
|
Requires-Dist: typing_extensions (>=4.0.0,<5.0.0)
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
|
|
19
|
+
# Magic Hour Python SDK
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+

|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
# Introduction
|
|
25
|
-
|
|
26
|
-
Magic Hour provides an API (beta) that can be integrated into your own application to generate videos using AI.
|
|
23
|
+
Magic Hour provides an API (beta) that can be integrated into your own application to generate videos and images using AI.
|
|
27
24
|
|
|
28
25
|
Webhook documentation can be found [here](https://magichour.ai/docs/webhook).
|
|
29
26
|
|
|
30
27
|
If you have any questions, please reach out to us via [discord](https://discord.gg/JX5rgsZaJp).
|
|
31
28
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
Every request requires an API key.
|
|
35
|
-
|
|
36
|
-
To get started, first generate your API key [here](https://magichour.ai/settings/developer).
|
|
37
|
-
|
|
38
|
-
Then, add the `Authorization` header to the request.
|
|
29
|
+
## Install
|
|
39
30
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
31
|
+
```
|
|
32
|
+
pip install magic_hour
|
|
33
|
+
```
|
|
43
34
|
|
|
44
|
-
|
|
35
|
+
## Usage
|
|
45
36
|
|
|
37
|
+
Initialize the client
|
|
46
38
|
|
|
47
39
|
### Synchronous Client
|
|
48
40
|
|
|
49
41
|
```python
|
|
50
42
|
from magic_hour import Client
|
|
51
|
-
from os import getenv
|
|
52
43
|
|
|
53
|
-
|
|
44
|
+
# generate your API Key at https://magichour.ai/developer
|
|
45
|
+
client = Client(token="my api key")
|
|
54
46
|
```
|
|
55
47
|
|
|
56
48
|
### Asynchronous Client
|
|
57
49
|
|
|
58
50
|
```python
|
|
59
51
|
from magic_hour import AsyncClient
|
|
60
|
-
from os import getenv
|
|
61
52
|
|
|
62
|
-
|
|
53
|
+
# generate your API Key at https://magichour.ai/developer
|
|
54
|
+
client = AsyncClient(token="my api key")
|
|
63
55
|
```
|
|
64
56
|
|
|
57
|
+
> **Warning**: any API call that renders a video will utilize frames in your account.
|
|
58
|
+
|
|
65
59
|
## Module Documentation and Snippets
|
|
66
60
|
|
|
67
61
|
### [v1.ai_clothes_changer](magic_hour/resources/v1/ai_clothes_changer/README.md)
|
|
68
62
|
|
|
69
|
-
|
|
63
|
+
- [create](magic_hour/resources/v1/ai_clothes_changer/README.md#create) - AI Clothes Changer
|
|
70
64
|
|
|
71
65
|
### [v1.ai_headshot_generator](magic_hour/resources/v1/ai_headshot_generator/README.md)
|
|
72
66
|
|
|
73
|
-
|
|
67
|
+
- [create](magic_hour/resources/v1/ai_headshot_generator/README.md#create) - AI Headshots
|
|
74
68
|
|
|
75
69
|
### [v1.ai_image_generator](magic_hour/resources/v1/ai_image_generator/README.md)
|
|
76
70
|
|
|
77
|
-
|
|
71
|
+
- [create](magic_hour/resources/v1/ai_image_generator/README.md#create) - AI Images
|
|
78
72
|
|
|
79
73
|
### [v1.ai_image_upscaler](magic_hour/resources/v1/ai_image_upscaler/README.md)
|
|
80
74
|
|
|
81
|
-
|
|
75
|
+
- [create](magic_hour/resources/v1/ai_image_upscaler/README.md#create) - AI Image Upscaler
|
|
82
76
|
|
|
83
77
|
### [v1.ai_photo_editor](magic_hour/resources/v1/ai_photo_editor/README.md)
|
|
84
78
|
|
|
85
|
-
|
|
79
|
+
- [create](magic_hour/resources/v1/ai_photo_editor/README.md#create) - AI Photo Editor
|
|
86
80
|
|
|
87
81
|
### [v1.ai_qr_code_generator](magic_hour/resources/v1/ai_qr_code_generator/README.md)
|
|
88
82
|
|
|
89
|
-
|
|
83
|
+
- [create](magic_hour/resources/v1/ai_qr_code_generator/README.md#create) - AI QR Code
|
|
90
84
|
|
|
91
85
|
### [v1.animation](magic_hour/resources/v1/animation/README.md)
|
|
92
86
|
|
|
93
|
-
|
|
87
|
+
- [create](magic_hour/resources/v1/animation/README.md#create) - Animation
|
|
94
88
|
|
|
95
89
|
### [v1.face_swap](magic_hour/resources/v1/face_swap/README.md)
|
|
96
90
|
|
|
97
|
-
|
|
91
|
+
- [create](magic_hour/resources/v1/face_swap/README.md#create) - Face Swap video
|
|
98
92
|
|
|
99
93
|
### [v1.face_swap_photo](magic_hour/resources/v1/face_swap_photo/README.md)
|
|
100
94
|
|
|
101
|
-
|
|
95
|
+
- [create](magic_hour/resources/v1/face_swap_photo/README.md#create) - Face Swap Photo
|
|
102
96
|
|
|
103
97
|
### [v1.files.upload_urls](magic_hour/resources/v1/files/upload_urls/README.md)
|
|
104
98
|
|
|
105
|
-
|
|
99
|
+
- [create](magic_hour/resources/v1/files/upload_urls/README.md#create) - Generate asset upload urls
|
|
106
100
|
|
|
107
101
|
### [v1.image_background_remover](magic_hour/resources/v1/image_background_remover/README.md)
|
|
108
102
|
|
|
109
|
-
|
|
103
|
+
- [create](magic_hour/resources/v1/image_background_remover/README.md#create) - Image Background Remover
|
|
110
104
|
|
|
111
105
|
### [v1.image_projects](magic_hour/resources/v1/image_projects/README.md)
|
|
112
106
|
|
|
113
|
-
|
|
114
|
-
|
|
107
|
+
- [delete](magic_hour/resources/v1/image_projects/README.md#delete) - Delete image
|
|
108
|
+
- [get](magic_hour/resources/v1/image_projects/README.md#get) - Get image details
|
|
115
109
|
|
|
116
110
|
### [v1.image_to_video](magic_hour/resources/v1/image_to_video/README.md)
|
|
117
111
|
|
|
118
|
-
|
|
112
|
+
- [create](magic_hour/resources/v1/image_to_video/README.md#create) - Image-to-Video
|
|
119
113
|
|
|
120
114
|
### [v1.lip_sync](magic_hour/resources/v1/lip_sync/README.md)
|
|
121
115
|
|
|
122
|
-
|
|
116
|
+
- [create](magic_hour/resources/v1/lip_sync/README.md#create) - Lip Sync
|
|
123
117
|
|
|
124
118
|
### [v1.text_to_video](magic_hour/resources/v1/text_to_video/README.md)
|
|
125
119
|
|
|
126
|
-
|
|
120
|
+
- [create](magic_hour/resources/v1/text_to_video/README.md#create) - Text-to-Video
|
|
127
121
|
|
|
128
122
|
### [v1.video_projects](magic_hour/resources/v1/video_projects/README.md)
|
|
129
123
|
|
|
130
|
-
|
|
131
|
-
|
|
124
|
+
- [delete](magic_hour/resources/v1/video_projects/README.md#delete) - Delete video
|
|
125
|
+
- [get](magic_hour/resources/v1/video_projects/README.md#get) - Get video details
|
|
132
126
|
|
|
133
127
|
### [v1.video_to_video](magic_hour/resources/v1/video_to_video/README.md)
|
|
134
128
|
|
|
135
|
-
|
|
129
|
+
- [create](magic_hour/resources/v1/video_to_video/README.md#create) - Video-to-Video
|
|
136
130
|
|
|
137
131
|
<!-- MODULE DOCS END -->
|
|
138
132
|
|
|
@@ -1,119 +1,113 @@
|
|
|
1
|
+
# Magic Hour Python SDK
|
|
1
2
|
|
|
2
|
-
|
|
3
|
+

|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
# Introduction
|
|
7
|
-
|
|
8
|
-
Magic Hour provides an API (beta) that can be integrated into your own application to generate videos using AI.
|
|
5
|
+
Magic Hour provides an API (beta) that can be integrated into your own application to generate videos and images using AI.
|
|
9
6
|
|
|
10
7
|
Webhook documentation can be found [here](https://magichour.ai/docs/webhook).
|
|
11
8
|
|
|
12
9
|
If you have any questions, please reach out to us via [discord](https://discord.gg/JX5rgsZaJp).
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Every request requires an API key.
|
|
17
|
-
|
|
18
|
-
To get started, first generate your API key [here](https://magichour.ai/settings/developer).
|
|
19
|
-
|
|
20
|
-
Then, add the `Authorization` header to the request.
|
|
11
|
+
## Install
|
|
21
12
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
```
|
|
14
|
+
pip install magic_hour
|
|
15
|
+
```
|
|
25
16
|
|
|
26
|
-
|
|
17
|
+
## Usage
|
|
27
18
|
|
|
19
|
+
Initialize the client
|
|
28
20
|
|
|
29
21
|
### Synchronous Client
|
|
30
22
|
|
|
31
23
|
```python
|
|
32
24
|
from magic_hour import Client
|
|
33
|
-
from os import getenv
|
|
34
25
|
|
|
35
|
-
|
|
26
|
+
# generate your API Key at https://magichour.ai/developer
|
|
27
|
+
client = Client(token="my api key")
|
|
36
28
|
```
|
|
37
29
|
|
|
38
30
|
### Asynchronous Client
|
|
39
31
|
|
|
40
32
|
```python
|
|
41
33
|
from magic_hour import AsyncClient
|
|
42
|
-
from os import getenv
|
|
43
34
|
|
|
44
|
-
|
|
35
|
+
# generate your API Key at https://magichour.ai/developer
|
|
36
|
+
client = AsyncClient(token="my api key")
|
|
45
37
|
```
|
|
46
38
|
|
|
39
|
+
> **Warning**: any API call that renders a video will utilize frames in your account.
|
|
40
|
+
|
|
47
41
|
## Module Documentation and Snippets
|
|
48
42
|
|
|
49
43
|
### [v1.ai_clothes_changer](magic_hour/resources/v1/ai_clothes_changer/README.md)
|
|
50
44
|
|
|
51
|
-
|
|
45
|
+
- [create](magic_hour/resources/v1/ai_clothes_changer/README.md#create) - AI Clothes Changer
|
|
52
46
|
|
|
53
47
|
### [v1.ai_headshot_generator](magic_hour/resources/v1/ai_headshot_generator/README.md)
|
|
54
48
|
|
|
55
|
-
|
|
49
|
+
- [create](magic_hour/resources/v1/ai_headshot_generator/README.md#create) - AI Headshots
|
|
56
50
|
|
|
57
51
|
### [v1.ai_image_generator](magic_hour/resources/v1/ai_image_generator/README.md)
|
|
58
52
|
|
|
59
|
-
|
|
53
|
+
- [create](magic_hour/resources/v1/ai_image_generator/README.md#create) - AI Images
|
|
60
54
|
|
|
61
55
|
### [v1.ai_image_upscaler](magic_hour/resources/v1/ai_image_upscaler/README.md)
|
|
62
56
|
|
|
63
|
-
|
|
57
|
+
- [create](magic_hour/resources/v1/ai_image_upscaler/README.md#create) - AI Image Upscaler
|
|
64
58
|
|
|
65
59
|
### [v1.ai_photo_editor](magic_hour/resources/v1/ai_photo_editor/README.md)
|
|
66
60
|
|
|
67
|
-
|
|
61
|
+
- [create](magic_hour/resources/v1/ai_photo_editor/README.md#create) - AI Photo Editor
|
|
68
62
|
|
|
69
63
|
### [v1.ai_qr_code_generator](magic_hour/resources/v1/ai_qr_code_generator/README.md)
|
|
70
64
|
|
|
71
|
-
|
|
65
|
+
- [create](magic_hour/resources/v1/ai_qr_code_generator/README.md#create) - AI QR Code
|
|
72
66
|
|
|
73
67
|
### [v1.animation](magic_hour/resources/v1/animation/README.md)
|
|
74
68
|
|
|
75
|
-
|
|
69
|
+
- [create](magic_hour/resources/v1/animation/README.md#create) - Animation
|
|
76
70
|
|
|
77
71
|
### [v1.face_swap](magic_hour/resources/v1/face_swap/README.md)
|
|
78
72
|
|
|
79
|
-
|
|
73
|
+
- [create](magic_hour/resources/v1/face_swap/README.md#create) - Face Swap video
|
|
80
74
|
|
|
81
75
|
### [v1.face_swap_photo](magic_hour/resources/v1/face_swap_photo/README.md)
|
|
82
76
|
|
|
83
|
-
|
|
77
|
+
- [create](magic_hour/resources/v1/face_swap_photo/README.md#create) - Face Swap Photo
|
|
84
78
|
|
|
85
79
|
### [v1.files.upload_urls](magic_hour/resources/v1/files/upload_urls/README.md)
|
|
86
80
|
|
|
87
|
-
|
|
81
|
+
- [create](magic_hour/resources/v1/files/upload_urls/README.md#create) - Generate asset upload urls
|
|
88
82
|
|
|
89
83
|
### [v1.image_background_remover](magic_hour/resources/v1/image_background_remover/README.md)
|
|
90
84
|
|
|
91
|
-
|
|
85
|
+
- [create](magic_hour/resources/v1/image_background_remover/README.md#create) - Image Background Remover
|
|
92
86
|
|
|
93
87
|
### [v1.image_projects](magic_hour/resources/v1/image_projects/README.md)
|
|
94
88
|
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
- [delete](magic_hour/resources/v1/image_projects/README.md#delete) - Delete image
|
|
90
|
+
- [get](magic_hour/resources/v1/image_projects/README.md#get) - Get image details
|
|
97
91
|
|
|
98
92
|
### [v1.image_to_video](magic_hour/resources/v1/image_to_video/README.md)
|
|
99
93
|
|
|
100
|
-
|
|
94
|
+
- [create](magic_hour/resources/v1/image_to_video/README.md#create) - Image-to-Video
|
|
101
95
|
|
|
102
96
|
### [v1.lip_sync](magic_hour/resources/v1/lip_sync/README.md)
|
|
103
97
|
|
|
104
|
-
|
|
98
|
+
- [create](magic_hour/resources/v1/lip_sync/README.md#create) - Lip Sync
|
|
105
99
|
|
|
106
100
|
### [v1.text_to_video](magic_hour/resources/v1/text_to_video/README.md)
|
|
107
101
|
|
|
108
|
-
|
|
102
|
+
- [create](magic_hour/resources/v1/text_to_video/README.md#create) - Text-to-Video
|
|
109
103
|
|
|
110
104
|
### [v1.video_projects](magic_hour/resources/v1/video_projects/README.md)
|
|
111
105
|
|
|
112
|
-
|
|
113
|
-
|
|
106
|
+
- [delete](magic_hour/resources/v1/video_projects/README.md#delete) - Delete video
|
|
107
|
+
- [get](magic_hour/resources/v1/video_projects/README.md#get) - Get video details
|
|
114
108
|
|
|
115
109
|
### [v1.video_to_video](magic_hour/resources/v1/video_to_video/README.md)
|
|
116
110
|
|
|
117
|
-
|
|
111
|
+
- [create](magic_hour/resources/v1/video_to_video/README.md#create) - Video-to-Video
|
|
118
112
|
|
|
119
113
|
<!-- MODULE DOCS END -->
|
|
@@ -36,7 +36,7 @@ class AiImageUpscalerClient:
|
|
|
36
36
|
Args:
|
|
37
37
|
name: The name of image
|
|
38
38
|
assets: Provide the assets for upscaling
|
|
39
|
-
scale_factor:
|
|
39
|
+
scale_factor: How much to scale the image. Must be either 2 or 4
|
|
40
40
|
style: PostV1AiImageUpscalerBodyStyle
|
|
41
41
|
request_options: Additional options to customize the HTTP request
|
|
42
42
|
|
|
@@ -102,7 +102,7 @@ class AsyncAiImageUpscalerClient:
|
|
|
102
102
|
Args:
|
|
103
103
|
name: The name of image
|
|
104
104
|
assets: Provide the assets for upscaling
|
|
105
|
-
scale_factor:
|
|
105
|
+
scale_factor: How much to scale the image. Must be either 2 or 4
|
|
106
106
|
style: PostV1AiImageUpscalerBodyStyle
|
|
107
107
|
request_options: Additional options to customize the HTTP request
|
|
108
108
|
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_image_upscaler_body.py
RENAMED
|
@@ -28,6 +28,9 @@ class PostV1AiImageUpscalerBody(typing_extensions.TypedDict):
|
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
30
|
scale_factor: typing_extensions.Required[float]
|
|
31
|
+
"""
|
|
32
|
+
How much to scale the image. Must be either 2 or 4
|
|
33
|
+
"""
|
|
31
34
|
|
|
32
35
|
style: typing_extensions.Required[PostV1AiImageUpscalerBodyStyle]
|
|
33
36
|
|
|
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.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_clothes_changer/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_headshot_generator/README.md
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_headshot_generator/__init__.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_headshot_generator/client.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/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
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_qr_code_generator/README.md
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/ai_qr_code_generator/__init__.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/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
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/image_background_remover/README.md
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/image_background_remover/__init__.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/resources/v1/image_background_remover/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/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.0 → magic_hour-0.8.2}/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.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_ai_clothes_changer_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_ai_image_generator_response.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_ai_image_upscaler_response.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/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.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_face_swap_photo_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/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.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_image_to_video_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_text_to_video_response.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/models/post_v1_video_to_video_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_clothes_changer_body.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_headshot_generator_body.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_image_generator_body.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_photo_editor_body.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_photo_editor_body_assets.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_ai_photo_editor_body_style.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/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.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_animation_body_assets.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_animation_body_style.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_face_swap_body_assets.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_face_swap_photo_body.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_face_swap_photo_body_assets.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_files_upload_urls_body.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_image_to_video_body.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_image_to_video_body_assets.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_image_to_video_body_style.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_lip_sync_body_assets.py
RENAMED
|
File without changes
|
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_text_to_video_body_style.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_video_to_video_body.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_video_to_video_body_assets.py
RENAMED
|
File without changes
|
{magic_hour-0.8.0 → magic_hour-0.8.2}/magic_hour/types/params/post_v1_video_to_video_body_style.py
RENAMED
|
File without changes
|