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": "eee3cb82-29c6-4279-a54e-9a1b657400d9",
"id": "063a5d83-3d58-4579-beca-9cfebbb892bc",
"tracked_paths": [
{
"editable": true,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "magic-hour",
"version": "0.72.0",
"version": "0.73.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/environment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export enum Environment {
Environment = "https://api.magichour.ai",
MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.76.0",
MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.77.0",
}
8 changes: 4 additions & 4 deletions src/resources/v1/ai-video-editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ For detailed examples, see the [product page](https://magichour.ai/products/ai-v
| ------------------ | :------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------- |
| `assets` | ✓ | Provide the assets for video editing. | `{"videoFilePath": "api-assets/id/1234.mp4"}` |
| `└─ videoFilePath` | ✓ | 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"` |
| `endSeconds` | ✓ | End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni`: 3s, `ltx-2.3`: 0.5s. Maximum duration depends on model: `gemini-omni`: 10s, `ltx-2.3`: 45s. | `5.0` |
| `endSeconds` | ✓ | 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` |
| `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` for paid. Use `ltx-2.3` for LTX video edit. | `"gemini-omni"` |
| `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"` |
| `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. Google Omni supports 720p only; 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.3 supports 480p, 720p, and 1080p. | `"720p"` |
| `startSeconds` | ✗ | Start time of your clip (seconds). Must be ≥ 0. | `0.0` |

#### Example Snippet
Expand All @@ -101,7 +101,7 @@ const client = new Client({ token: process.env["API_TOKEN"]!! });
const res = await client.v1.aiVideoEditor.create({
assets: { videoFilePath: "api-assets/id/1234.mp4" },
endSeconds: 5.0,
model: "gemini-omni",
model: "gemini-omni-1.1",
name: "My Video Editor video",
resolution: "720p",
startSeconds: 0.0,
Expand Down
14 changes: 7 additions & 7 deletions src/resources/v1/ai-video-editor/request-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ export type CreateRequest = {
*/
assets: V1AiVideoEditorCreateBodyAssets;
/**
* End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni`: 3s, `ltx-2.3`: 0.5s. Maximum duration depends on model: `gemini-omni`: 10s, `ltx-2.3`: 45s.
* 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.
*/
endSeconds: number;
/**
* Editing model. Defaults to `ltx-2.3` for free tier and `gemini-omni` for paid. Use `ltx-2.3` for LTX video edit.
* 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?: ("gemini-omni" | "ltx-2.3") | undefined;
model?: ("gemini-omni" | "gemini-omni-1.1" | "ltx-2.3") | undefined;
/**
* Give your video a custom name for easy identification.
*/
name?: string | undefined;
/**
* Output resolution. Defaults to `480p` for free tier and `720p` for paid. Google Omni supports 720p only; LTX-2.3 supports 480p, 720p, and 1080p.
* 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?: ("1080p" | "480p" | "720p") | undefined;
/**
Expand All @@ -51,7 +51,7 @@ export type CreateRequest = {
export type External$CreateRequest = {
assets: External$V1AiVideoEditorCreateBodyAssets;
end_seconds: number;
model?: ("gemini-omni" | "ltx-2.3") | undefined;
model?: ("gemini-omni" | "gemini-omni-1.1" | "ltx-2.3") | undefined;
name?: string | undefined;
resolution?: ("1080p" | "480p" | "720p") | undefined;
start_seconds?: number | undefined;
Expand All @@ -69,7 +69,7 @@ const SchemaIn$CreateRequest: z.ZodType<
.object({
assets: Schemas$V1AiVideoEditorCreateBodyAssets.in,
end_seconds: z.number(),
model: z.enum(["gemini-omni", "ltx-2.3"]).optional(),
model: z.enum(["gemini-omni", "gemini-omni-1.1", "ltx-2.3"]).optional(),
name: z.string().optional(),
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
start_seconds: z.number().optional(),
Expand Down Expand Up @@ -99,7 +99,7 @@ const SchemaOut$CreateRequest: z.ZodType<
.object({
assets: Schemas$V1AiVideoEditorCreateBodyAssets.out,
endSeconds: z.number(),
model: z.enum(["gemini-omni", "ltx-2.3"]).optional(),
model: z.enum(["gemini-omni", "gemini-omni-1.1", "ltx-2.3"]).optional(),
name: z.string().optional(),
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
startSeconds: z.number().optional(),
Expand Down
Loading
Loading