From a44ac138552afebc34f070af7a90ed87c6d22771 Mon Sep 17 00:00:00 2001 From: "sdk-github-actions[bot]" Date: Tue, 24 Mar 2026 23:24:22 +0000 Subject: [PATCH] chore(release): auto --- .sdk.json | 2 +- magic_hour/environment.py | 2 +- .../resources/v1/ai_face_editor/README.md | 2 +- .../resources/v1/ai_face_editor/client.py | 4 ++-- .../resources/v1/ai_image_upscaler/README.md | 18 +++++++++--------- .../resources/v1/face_detection/README.md | 2 +- .../resources/v1/face_detection/client.py | 4 ++-- .../v1_ai_image_upscaler_create_body_assets.py | 2 +- pyproject.toml | 2 +- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.sdk.json b/.sdk.json index 8601f01..fdee532 100644 --- a/.sdk.json +++ b/.sdk.json @@ -1,5 +1,5 @@ { - "id": "e010c44a-5d62-41e2-b0fe-654712dd6457", + "id": "b2d6ef4f-f33d-419f-85e6-a388096b49c1", "tracked_paths": [ { "editable": true, diff --git a/magic_hour/environment.py b/magic_hour/environment.py index e4e93f9..aca0a7a 100644 --- a/magic_hour/environment.py +++ b/magic_hour/environment.py @@ -6,7 +6,7 @@ class Environment(enum.Enum): """Pre-defined base URLs for the API""" ENVIRONMENT = "https://api.magichour.ai" - MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.57.0" + MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.57.1" def _get_base_url( diff --git a/magic_hour/resources/v1/ai_face_editor/README.md b/magic_hour/resources/v1/ai_face_editor/README.md index 4320e24..df0d5a0 100644 --- a/magic_hour/resources/v1/ai_face_editor/README.md +++ b/magic_hour/resources/v1/ai_face_editor/README.md @@ -94,7 +94,7 @@ res = await client.v1.ai_face_editor.generate( ### AI Face Editor -Edit facial features of an image using AI. Each edit costs 1 frame. The height/width of the output image depends on your subscription. Please refer to our [pricing](/pricing) page for more details +Edit facial features of an image using AI. Each edit costs 1 frame. The height/width of the output image depends on your subscription. Please refer to our [pricing](https://magichour.ai/pricing) page for more details **API Endpoint**: `POST /v1/ai-face-editor` diff --git a/magic_hour/resources/v1/ai_face_editor/client.py b/magic_hour/resources/v1/ai_face_editor/client.py index 53b2642..a5d5c1b 100644 --- a/magic_hour/resources/v1/ai_face_editor/client.py +++ b/magic_hour/resources/v1/ai_face_editor/client.py @@ -116,7 +116,7 @@ def create( """ AI Face Editor - Edit facial features of an image using AI. Each edit costs 1 frame. The height/width of the output image depends on your subscription. Please refer to our [pricing](/pricing) page for more details + Edit facial features of an image using AI. Each edit costs 1 frame. The height/width of the output image depends on your subscription. Please refer to our [pricing](https://magichour.ai/pricing) page for more details POST /v1/ai-face-editor @@ -268,7 +268,7 @@ async def create( """ AI Face Editor - Edit facial features of an image using AI. Each edit costs 1 frame. The height/width of the output image depends on your subscription. Please refer to our [pricing](/pricing) page for more details + Edit facial features of an image using AI. Each edit costs 1 frame. The height/width of the output image depends on your subscription. Please refer to our [pricing](https://magichour.ai/pricing) page for more details POST /v1/ai-face-editor diff --git a/magic_hour/resources/v1/ai_image_upscaler/README.md b/magic_hour/resources/v1/ai_image_upscaler/README.md index 30896ad..9439286 100644 --- a/magic_hour/resources/v1/ai_image_upscaler/README.md +++ b/magic_hour/resources/v1/ai_image_upscaler/README.md @@ -70,15 +70,15 @@ Upscale your image using AI. Each 2x upscale costs 50 credits, and 4x upscale co #### Parameters -| Parameter | Required | Description | Example | -| -------------------- | :------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- | -| `assets` | ✓ | Provide the assets for upscaling | `{"image_file_path": "api-assets/id/1234.png"}` | -| `└─ image_file_path` | ✓ | The image to upscale. This value is either - a direct URL to the video file - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls). See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details. | `"api-assets/id/1234.png"` | -| `scale_factor` | ✓ | How much to scale the image. Must be either 2 or 4. Note: 4x upscale is only available on Creator, Pro, or Business tier. | `2.0` | -| `style` | ✓ | | `{"enhancement": "Balanced"}` | -| `└─ enhancement` | ✓ | | `"Balanced"` | -| `└─ prompt` | ✗ | A prompt to guide the final image. This value is ignored if `enhancement` is not Creative | `"string"` | -| `name` | ✗ | Give your image a custom name for easy identification. | `"My Image Upscaler image"` | +| Parameter | Required | Description | Example | +| -------------------- | :------: | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- | +| `assets` | ✓ | Provide the assets for upscaling | `{"image_file_path": "api-assets/id/1234.png"}` | +| `└─ image_file_path` | ✓ | The image to upscale. This value is either - a direct URL to the video file - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls). See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details. . The maximum input image size is 4096x4096px. | `"api-assets/id/1234.png"` | +| `scale_factor` | ✓ | How much to scale the image. Must be either 2 or 4. Note: 4x upscale is only available on Creator, Pro, or Business tier. | `2.0` | +| `style` | ✓ | | `{"enhancement": "Balanced"}` | +| `└─ enhancement` | ✓ | | `"Balanced"` | +| `└─ prompt` | ✗ | A prompt to guide the final image. This value is ignored if `enhancement` is not Creative | `"string"` | +| `name` | ✗ | Give your image a custom name for easy identification. | `"My Image Upscaler image"` | #### Synchronous Client diff --git a/magic_hour/resources/v1/face_detection/README.md b/magic_hour/resources/v1/face_detection/README.md index f8bb851..35c00e6 100644 --- a/magic_hour/resources/v1/face_detection/README.md +++ b/magic_hour/resources/v1/face_detection/README.md @@ -106,7 +106,7 @@ res = await client.v1.face_detection.get(id="uuid-example") Detect faces in an image or video. -Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/face-swap-photo/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/face-swap/face-swap-video) API calls for multi-face swaps. +Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/image-projects/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/video-projects/face-swap-video) API calls for multi-face swaps. Note: Face detection is free to use for the near future. Pricing may change in the future. diff --git a/magic_hour/resources/v1/face_detection/client.py b/magic_hour/resources/v1/face_detection/client.py index 0e9c080..53a81b4 100644 --- a/magic_hour/resources/v1/face_detection/client.py +++ b/magic_hour/resources/v1/face_detection/client.py @@ -164,7 +164,7 @@ def create( Detect faces in an image or video. - Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/face-swap-photo/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/face-swap/face-swap-video) API calls for multi-face swaps. + Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/image-projects/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/video-projects/face-swap-video) API calls for multi-face swaps. Note: Face detection is free to use for the near future. Pricing may change in the future. @@ -339,7 +339,7 @@ async def create( Detect faces in an image or video. - Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/face-swap-photo/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/face-swap/face-swap-video) API calls for multi-face swaps. + Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/image-projects/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/video-projects/face-swap-video) API calls for multi-face swaps. Note: Face detection is free to use for the near future. Pricing may change in the future. diff --git a/magic_hour/types/params/v1_ai_image_upscaler_create_body_assets.py b/magic_hour/types/params/v1_ai_image_upscaler_create_body_assets.py index af47d6c..f7214a2 100644 --- a/magic_hour/types/params/v1_ai_image_upscaler_create_body_assets.py +++ b/magic_hour/types/params/v1_ai_image_upscaler_create_body_assets.py @@ -14,7 +14,7 @@ class V1AiImageUpscalerCreateBodyAssets(typing_extensions.TypedDict): - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls). See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details. - + . The maximum input image size is 4096x4096px. """ diff --git a/pyproject.toml b/pyproject.toml index 00ad950..d42d0e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "magic_hour" -version = "0.57.0" +version = "0.57.1" description = "Python SDK for Magic Hour API" readme = "README.md" authors = []