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
6 changes: 5 additions & 1 deletion .sdk.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "4cb2c833-ef6d-45d1-949f-40dea5e812de",
"id": "de9029f9-c66c-4ce9-b593-ff39bda797e9",
"tracked_paths": [
{
"editable": true,
Expand Down Expand Up @@ -949,6 +949,10 @@
"editable": false,
"path": "magic_hour/types/params/v1_text_to_video_create_body.py"
},
{
"editable": false,
"path": "magic_hour/types/params/v1_text_to_video_create_body_references_item.py"
},
{
"editable": false,
"path": "magic_hour/types/params/v1_text_to_video_create_body_style.py"
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.82.0"
MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.83.0"


def _get_base_url(
Expand Down
6 changes: 3 additions & 3 deletions magic_hour/resources/v1/ai_video_editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ For detailed examples, see the [product page](https://magichour.ai/products/ai-v
| -------------------- | :------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------- |
| `assets` | ✓ | Provide the assets for video editing. | `{"video_file_path": "api-assets/id/1234.mp4"}` |
| `└─ video_file_path` | ✓ | The video to edit. 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.mp4"` |
| `end_seconds` | ✓ | End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni-1.1`: 3s, `ltx-2.3`: 0.5s. Maximum duration depends on model: `gemini-omni-1.1`: 10s, `ltx-2.3`: 45s. | `5.0` |
| `end_seconds` | ✓ | End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni-1.1`: 3s, LTX 2.5: 0.5s. Maximum duration depends on model: `gemini-omni-1.1`: 10s, LTX 2.5: 45s. | `5.0` |
| `style` | ✓ | | `{"prompt": "Change the car color to blue"}` |
| `└─ prompt` | ✓ | The prompt used to edit the video. | `"Change the car color to blue"` |
| `model` | ✗ | Editing model. Defaults to `ltx-2.3` for free tier and `gemini-omni-1.1` for paid. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead. | `"gemini-omni-1.1"` |
| `model` | ✗ | Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead. | `"gemini-omni-1.1"` |
| `name` | ✗ | Give your video a custom name for easy identification. | `"My Video Editor video"` |
| `resolution` | ✗ | Output resolution. Defaults to `480p` for free tier and `720p` for paid. `gemini-omni-1.1` and deprecated `gemini-omni` support 720p and 1080p; LTX-2.3 supports 480p, 720p, and 1080p. | `"720p"` |
| `resolution` | ✗ | Output resolution. Defaults to `480p` for free tier and `720p` for paid. `gemini-omni-1.1` and deprecated `gemini-omni` support 720p and 1080p; LTX 2.5 supports 480p, 720p, and 1080p. | `"720p"` |
| `start_seconds` | ✗ | Start time of your clip (seconds). Must be ≥ 0. | `0.0` |

#### Synchronous Client
Expand Down
32 changes: 22 additions & 10 deletions magic_hour/resources/v1/ai_video_editor/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ def generate(
style: params.V1AiVideoEditorCreateBodyStyle,
model: typing.Union[
typing.Optional[
typing_extensions.Literal["gemini-omni", "gemini-omni-1.1", "ltx-2.3"]
typing_extensions.Literal[
"gemini-omni", "gemini-omni-1.1", "ltx-2.3", "ltx-2.5"
]
],
type_utils.NotGiven,
] = type_utils.NOT_GIVEN,
Expand Down Expand Up @@ -95,7 +97,9 @@ def generate(
assets=assets,
end_seconds=end_seconds,
style=style,
model=model,
name=name,
resolution=resolution,
start_seconds=start_seconds,
request_options=request_options,
)
Expand All @@ -119,7 +123,9 @@ def create(
style: params.V1AiVideoEditorCreateBodyStyle,
model: typing.Union[
typing.Optional[
typing_extensions.Literal["gemini-omni", "gemini-omni-1.1", "ltx-2.3"]
typing_extensions.Literal[
"gemini-omni", "gemini-omni-1.1", "ltx-2.3", "ltx-2.5"
]
],
type_utils.NotGiven,
] = type_utils.NOT_GIVEN,
Expand Down Expand Up @@ -164,12 +170,12 @@ def create(
POST /v1/ai-video-editor

Args:
model: Editing model. Defaults to `ltx-2.3` for free tier and `gemini-omni-1.1` for paid. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.
model: Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.
name: Give your video a custom name for easy identification.
resolution: Output resolution. Defaults to `480p` for free tier and `720p` for paid. `gemini-omni-1.1` and deprecated `gemini-omni` support 720p and 1080p; LTX-2.3 supports 480p, 720p, and 1080p.
resolution: Output resolution. Defaults to `480p` for free tier and `720p` for paid. `gemini-omni-1.1` and deprecated `gemini-omni` support 720p and 1080p; LTX 2.5 supports 480p, 720p, and 1080p.
start_seconds: Start time of your clip (seconds). Must be ≥ 0.
assets: Provide the assets for video editing.
end_seconds: End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni-1.1`: 3s, `ltx-2.3`: 0.5s. Maximum duration depends on model: `gemini-omni-1.1`: 10s, `ltx-2.3`: 45s.
end_seconds: End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni-1.1`: 3s, LTX 2.5: 0.5s. Maximum duration depends on model: `gemini-omni-1.1`: 10s, LTX 2.5: 45s.
style: V1AiVideoEditorCreateBodyStyle
request_options: Additional options to customize the HTTP request

Expand Down Expand Up @@ -227,7 +233,9 @@ async def generate(
style: params.V1AiVideoEditorCreateBodyStyle,
model: typing.Union[
typing.Optional[
typing_extensions.Literal["gemini-omni", "gemini-omni-1.1", "ltx-2.3"]
typing_extensions.Literal[
"gemini-omni", "gemini-omni-1.1", "ltx-2.3", "ltx-2.5"
]
],
type_utils.NotGiven,
] = type_utils.NOT_GIVEN,
Expand Down Expand Up @@ -289,7 +297,9 @@ async def generate(
assets=assets,
end_seconds=end_seconds,
style=style,
model=model,
name=name,
resolution=resolution,
start_seconds=start_seconds,
request_options=request_options,
)
Expand All @@ -313,7 +323,9 @@ async def create(
style: params.V1AiVideoEditorCreateBodyStyle,
model: typing.Union[
typing.Optional[
typing_extensions.Literal["gemini-omni", "gemini-omni-1.1", "ltx-2.3"]
typing_extensions.Literal[
"gemini-omni", "gemini-omni-1.1", "ltx-2.3", "ltx-2.5"
]
],
type_utils.NotGiven,
] = type_utils.NOT_GIVEN,
Expand Down Expand Up @@ -358,12 +370,12 @@ async def create(
POST /v1/ai-video-editor

Args:
model: Editing model. Defaults to `ltx-2.3` for free tier and `gemini-omni-1.1` for paid. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.
model: Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.
name: Give your video a custom name for easy identification.
resolution: Output resolution. Defaults to `480p` for free tier and `720p` for paid. `gemini-omni-1.1` and deprecated `gemini-omni` support 720p and 1080p; LTX-2.3 supports 480p, 720p, and 1080p.
resolution: Output resolution. Defaults to `480p` for free tier and `720p` for paid. `gemini-omni-1.1` and deprecated `gemini-omni` support 720p and 1080p; LTX 2.5 supports 480p, 720p, and 1080p.
start_seconds: Start time of your clip (seconds). Must be ≥ 0.
assets: Provide the assets for video editing.
end_seconds: End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni-1.1`: 3s, `ltx-2.3`: 0.5s. Maximum duration depends on model: `gemini-omni-1.1`: 10s, `ltx-2.3`: 45s.
end_seconds: End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni-1.1`: 3s, LTX 2.5: 0.5s. Maximum duration depends on model: `gemini-omni-1.1`: 10s, LTX 2.5: 45s.
style: V1AiVideoEditorCreateBodyStyle
request_options: Additional options to customize the HTTP request

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

Large diffs are not rendered by default.

Loading
Loading