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
2 changes: 1 addition & 1 deletion .sdk.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "6b61dfff-c839-4c96-affc-fe4f3f004aff",
"id": "01c627ac-ebeb-4e1d-8067-9836f219afd9",
"tracked_paths": [
{
"editable": true,
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.58.0"
MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.59.0"


def _get_base_url(
Expand Down
12 changes: 6 additions & 6 deletions magic_hour/resources/v1/ai_voice_generator/README.md

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions magic_hour/resources/v1/image_to_video/README.md

Large diffs are not rendered by default.

18 changes: 14 additions & 4 deletions magic_hour/resources/v1/image_to_video/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def create(
"sora-2",
"veo3.1",
"veo3.1-audio",
"wan-2.2",
]
],
type_utils.NotGiven,
Expand Down Expand Up @@ -208,6 +209,7 @@ def create(

Audio support varies by model:
* **`ltx-2`**: Automatically included with no extra credits
* **`wan-2.2`**: Not supported
* **`seedance`**: Not supported
* **`kling-2.5`**: Automatically included with no extra credits
* **`kling-3.0`**: Toggle-able (can enable/disable)
Expand All @@ -221,8 +223,9 @@ def create(
This field is retained only for backward compatibility and will be removed in a future release.
model: The AI model to use for video generation.

* `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-2.5`. For free tiers, it defaults to `ltx-2`.
* `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2`.
* `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
* `wan-2.2`: Fast, medium-quality model with strong visuals and effect support.
* `seedance`: Great for fast iteration and start/end frame
* `kling-2.5`: Great for motion, action, and camera control
* `kling-3.0`: Great for cinematic, multi-scene storytelling with control
Expand All @@ -237,6 +240,7 @@ def create(
resolution: Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.

* **`ltx-2`**: Supports 480p, 720p, 1080p.
* **`wan-2.2`**: Supports 480p, 720p, 1080p.
* **`seedance`**: Supports 480p, 720p, 1080p.
* **`kling-2.5`**: Supports 720p, 1080p.
* **`kling-3.0`**: Supports 720p, 1080p.
Expand All @@ -253,6 +257,7 @@ def create(
end_seconds: The total duration of the output video in seconds. Supported durations depend on the chosen model:

* **`ltx-2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
* **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
* **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
* **`kling-2.5`**: 5, 10
* **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
Expand All @@ -279,7 +284,7 @@ def create(
},
end_seconds=5.0,
audio=True,
model="kling-2.5-audio",
model="kling-3.0",
name="My Image To Video video",
resolution="720p",
)
Expand Down Expand Up @@ -444,6 +449,7 @@ async def create(
"sora-2",
"veo3.1",
"veo3.1-audio",
"wan-2.2",
]
],
type_utils.NotGiven,
Expand Down Expand Up @@ -496,6 +502,7 @@ async def create(

Audio support varies by model:
* **`ltx-2`**: Automatically included with no extra credits
* **`wan-2.2`**: Not supported
* **`seedance`**: Not supported
* **`kling-2.5`**: Automatically included with no extra credits
* **`kling-3.0`**: Toggle-able (can enable/disable)
Expand All @@ -509,8 +516,9 @@ async def create(
This field is retained only for backward compatibility and will be removed in a future release.
model: The AI model to use for video generation.

* `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-2.5`. For free tiers, it defaults to `ltx-2`.
* `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2`.
* `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
* `wan-2.2`: Fast, medium-quality model with strong visuals and effect support.
* `seedance`: Great for fast iteration and start/end frame
* `kling-2.5`: Great for motion, action, and camera control
* `kling-3.0`: Great for cinematic, multi-scene storytelling with control
Expand All @@ -525,6 +533,7 @@ async def create(
resolution: Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.

* **`ltx-2`**: Supports 480p, 720p, 1080p.
* **`wan-2.2`**: Supports 480p, 720p, 1080p.
* **`seedance`**: Supports 480p, 720p, 1080p.
* **`kling-2.5`**: Supports 720p, 1080p.
* **`kling-3.0`**: Supports 720p, 1080p.
Expand All @@ -541,6 +550,7 @@ async def create(
end_seconds: The total duration of the output video in seconds. Supported durations depend on the chosen model:

* **`ltx-2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
* **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
* **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
* **`kling-2.5`**: 5, 10
* **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
Expand All @@ -567,7 +577,7 @@ async def create(
},
end_seconds=5.0,
audio=True,
model="kling-2.5-audio",
model="kling-3.0",
name="My Image To Video video",
resolution="720p",
)
Expand Down
Loading
Loading