Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion .sdk.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "de9029f9-c66c-4ce9-b593-ff39bda797e9",
"id": "824c8e76-3377-4969-99f1-7054db429172",
"tracked_paths": [
{
"editable": true,
Expand Down Expand Up @@ -173,6 +173,18 @@
"editable": true,
"path": "magic_hour/resources/v1/ai_video_editor/client.py"
},
{
"editable": true,
"path": "magic_hour/resources/v1/ai_video_translator/README.md"
},
{
"editable": true,
"path": "magic_hour/resources/v1/ai_video_translator/__init__.py"
},
{
"editable": true,
"path": "magic_hour/resources/v1/ai_video_translator/client.py"
},
{
"editable": true,
"path": "magic_hour/resources/v1/ai_voice_cloner/README.md"
Expand Down Expand Up @@ -517,6 +529,10 @@
"editable": false,
"path": "magic_hour/types/models/v1_ai_video_editor_create_response.py"
},
{
"editable": false,
"path": "magic_hour/types/models/v1_ai_video_translator_create_response.py"
},
{
"editable": false,
"path": "magic_hour/types/models/v1_ai_voice_cloner_create_response.py"
Expand Down Expand Up @@ -769,6 +785,14 @@
"editable": false,
"path": "magic_hour/types/params/v1_ai_video_editor_create_body_style.py"
},
{
"editable": false,
"path": "magic_hour/types/params/v1_ai_video_translator_create_body.py"
},
{
"editable": false,
"path": "magic_hour/types/params/v1_ai_video_translator_create_body_assets.py"
},
{
"editable": false,
"path": "magic_hour/types/params/v1_ai_voice_cloner_create_body.py"
Expand Down Expand Up @@ -1021,6 +1045,10 @@
"editable": false,
"path": "tests/test_v1_ai_video_editor_client.py"
},
{
"editable": false,
"path": "tests/test_v1_ai_video_translator_client.py"
},
{
"editable": false,
"path": "tests/test_v1_ai_voice_cloner_client.py"
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ download_urls = result.downloads
- [create](magic_hour/resources/v1/ai_video_editor/README.md#create) - AI Video Editor
- [generate](magic_hour/resources/v1/ai_video_editor/README.md#generate) - AI Video Editor Generate Workflow

### [v1.ai_video_translator](magic_hour/resources/v1/ai_video_translator/README.md)

- [create](magic_hour/resources/v1/ai_video_translator/README.md#create) - AI Video Translator

### [v1.ai_voice_cloner](magic_hour/resources/v1/ai_voice_cloner/README.md)

- [create](magic_hour/resources/v1/ai_voice_cloner/README.md#create) - AI Voice Cloner
Expand Down
1 change: 1 addition & 0 deletions magic_hour/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- [ai_qr_code_generator](resources/v1/ai_qr_code_generator/README.md) - ai_qr_code_generator
- [ai_talking_photo](resources/v1/ai_talking_photo/README.md) - ai_talking_photo
- [ai_video_editor](resources/v1/ai_video_editor/README.md) - ai_video_editor
- [ai_video_translator](resources/v1/ai_video_translator/README.md) - ai_video_translator
- [ai_voice_cloner](resources/v1/ai_voice_cloner/README.md) - ai_voice_cloner
- [ai_voice_generator](resources/v1/ai_voice_generator/README.md) - ai_voice_generator
- [animation](resources/v1/animation/README.md) - animation
Expand Down
2 changes: 1 addition & 1 deletion magic_hour/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.83.0"
MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.84.0"


def _get_base_url(
Expand Down
1 change: 1 addition & 0 deletions magic_hour/resources/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- [ai_qr_code_generator](ai_qr_code_generator/README.md) - ai_qr_code_generator
- [ai_talking_photo](ai_talking_photo/README.md) - ai_talking_photo
- [ai_video_editor](ai_video_editor/README.md) - ai_video_editor
- [ai_video_translator](ai_video_translator/README.md) - ai_video_translator
- [ai_voice_cloner](ai_voice_cloner/README.md) - ai_voice_cloner
- [ai_voice_generator](ai_voice_generator/README.md) - ai_voice_generator
- [animation](animation/README.md) - animation
Expand Down
6 changes: 3 additions & 3 deletions magic_hour/resources/v1/ai_image_generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Create an AI image with advanced model selection and quality controls.
| `model` | ✗ | ✗ | The AI model to use for image generation. Each model has different capabilities and costs. **Models:** - `default` - Use the model we recommend, which will change over time. This is recommended unless you need a specific model. This is the default behavior. - `flux-2-klein` - from 5 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: free, creator, pro, business - Image count allowed: 1 - `flux-schnell` - from 5 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: free, creator, pro, business - Image count allowed: 1, 2, 3, 4 - `gpt-image-2` - from 50 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Image count allowed: 1, 2, 3, 4 - `gpt-image-2.5-flare` - from 100 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Image count allowed: 1, 2, 3, 4 - `krea-2` - from 10 credits/image - Supported resolutions: 640px, 1k - Available for tiers: free, creator, pro, business - Image count allowed: 1 - `nano-banana` - from 50 credits/image - Supported resolutions: 640px, 1k - Available for tiers: creator, pro, business - Image count allowed: 1, 2, 3, 4 - `nano-banana-2` - from 100 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Image count allowed: 1, 4, 9, 16 - `nano-banana-2-lite` - from 50 credits/image - Supported resolutions: 640px, 1k - Available for tiers: creator, pro, business - Image count allowed: 1, 2, 3, 4 - `nano-banana-pro` - from 150 credits/image - Supported resolutions: 1k, 2k, 4k - Available for tiers: creator, pro, business - Image count allowed: 1, 4, 9, 16 - `seedream-v4` - from 40 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Image count allowed: 1, 2, 3, 4 - `seedream-v5-pro` - from 75 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: creator, pro, business - Image count allowed: 1, 2, 3, 4 - `z-image-turbo` - from 5 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: free, creator, pro, business - Image count allowed: 1, 2, 3, 4 **Deprecated Enum Values:** - `seedream` - Use `seedream-v4` instead. | `"default"` |
| `name` | ✗ | ✗ | Give your image a custom name for easy identification. | `"My Ai Image image"` |
| `orientation` | ✗ | ✓ | DEPRECATED: Use `aspect_ratio` instead. The orientation of the output image(s). `aspect_ratio` takes precedence when `orientation` if both are provided. | `"landscape"` |
| `resolution` | ✗ | ✗ | Maximum resolution (longest edge) for the output image. **Options:** - `640px` — up to 640px - `1k` — up to 1024px - `2k` — up to 2048px - `4k` — up to 4096px - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports **Per-model support:** - `flux-2-klein` - 640px, 1k, 2k - `flux-schnell` - 640px, 1k, 2k - `gpt-image-2` - 640px, 1k, 2k, 4k - `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k - `krea-2` - 640px, 1k - `nano-banana` - 640px, 1k - `nano-banana-2` - 640px, 1k, 2k, 4k - `nano-banana-2-lite` - 640px, 1k - `nano-banana-pro` - 1k, 2k, 4k - `seedream-v4` - 640px, 1k, 2k, 4k - `seedream-v5-pro` - 640px, 1k, 2k - `z-image-turbo` - 640px, 1k, 2k Note: Resolution availability depends on the model and your subscription tier. | `"auto"` |
| `resolution` | ✗ | ✗ | Maximum resolution (longest edge) for the output image. **Options:** - `640px` — up to 640px - `1k` — up to 1024px - `2k` — up to 2048px - `4k` — up to 4096px - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports **Per-model support:** - `flux-2-klein` - 640px, 1k, 2k - `flux-schnell` - 640px, 1k, 2k - `gpt-image-2` - 640px, 1k, 2k, 4k - `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k - `krea-2` - 640px, 1k - `nano-banana` - 640px, 1k - `nano-banana-2` - 640px, 1k, 2k, 4k - `nano-banana-2-lite` - 640px, 1k - `nano-banana-pro` - 1k, 2k, 4k - `seedream-v4` - 640px, 1k, 2k, 4k - `seedream-v5-pro` - 640px, 1k, 2k - `z-image-turbo` - 640px, 1k, 2k Note: Resolution availability depends on the model and your subscription tier. | `"1k"` |

#### Synchronous Client

Expand All @@ -101,7 +101,7 @@ res = client.v1.ai_image_generator.create(
aspect_ratio="1:1",
model="default",
name="My Ai Image image",
resolution="auto",
resolution="1k",
)
```

Expand All @@ -118,7 +118,7 @@ res = await client.v1.ai_image_generator.create(
aspect_ratio="1:1",
model="default",
name="My Ai Image image",
resolution="auto",
resolution="1k",
)
```

Expand Down
4 changes: 2 additions & 2 deletions magic_hour/resources/v1/ai_image_generator/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def create(
aspect_ratio="1:1",
model="default",
name="My Ai Image image",
resolution="auto",
resolution="1k",
)
```
"""
Expand Down Expand Up @@ -581,7 +581,7 @@ async def create(
aspect_ratio="1:1",
model="default",
name="My Ai Image image",
resolution="auto",
resolution="1k",
)
```
"""
Expand Down
Loading
Loading