From 95b34f5aecd4cce0adbf5d4395bdcb193622fcdf Mon Sep 17 00:00:00 2001 From: "sdk-github-actions[bot]" Date: Sun, 19 Jul 2026 19:50:42 +0000 Subject: [PATCH] chore(release): auto --- .sdk.json | 2 +- package-lock.json | 4 +-- package.json | 2 +- src/environment.ts | 2 +- src/resources/v1/ai-image-editor/README.md | 26 +++++++++---------- .../v1/ai-image-editor/request-types.ts | 9 +++++++ src/resources/v1/ai-image-generator/README.md | 24 ++++++++--------- .../v1/ai-image-generator/request-types.ts | 9 +++++++ src/resources/v1/body-swap/README.md | 2 +- src/resources/v1/body-swap/resource-client.ts | 2 +- src/resources/v1/image-to-video/README.md | 4 +-- .../v1/image-to-video/request-types.ts | 2 +- src/resources/v1/text-to-video/README.md | 2 +- .../v1/text-to-video/request-types.ts | 2 +- ...-ai-image-editor-create-body-model-enum.ts | 7 ++++- ...mage-editor-create-body-resolution-enum.ts | 1 + src/types/v1-ai-image-editor-create-body.ts | 9 +++++++ ...-image-generator-create-body-model-enum.ts | 5 ++++ ...e-generator-create-body-resolution-enum.ts | 1 + .../v1-ai-image-generator-create-body.ts | 9 +++++++ .../v1-image-to-video-create-body-assets.ts | 4 +-- src/types/v1-image-to-video-create-body.ts | 2 +- src/types/v1-text-to-video-create-body.ts | 2 +- 23 files changed, 90 insertions(+), 42 deletions(-) diff --git a/.sdk.json b/.sdk.json index 73581e7..6e80b9d 100644 --- a/.sdk.json +++ b/.sdk.json @@ -1,5 +1,5 @@ { - "id": "f9ec36d6-0cad-4012-a8e7-478a6f07234f", + "id": "88b59ac0-5cb1-4f23-836d-c115911d1213", "tracked_paths": [ { "editable": true, diff --git a/package-lock.json b/package-lock.json index d6e403d..c65f421 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "magic-hour", - "version": "0.69.0", + "version": "0.70.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "magic-hour", - "version": "0.69.0", + "version": "0.70.0", "license": "MIT", "dependencies": { "make-api-request-js": "^0.2.1", diff --git a/package.json b/package.json index 82ccbad..725efc5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "magic-hour", - "version": "0.69.0", + "version": "0.70.0", "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { diff --git a/src/environment.ts b/src/environment.ts index 64920b9..82a3d9a 100644 --- a/src/environment.ts +++ b/src/environment.ts @@ -1,4 +1,4 @@ export enum Environment { Environment = "https://api.magichour.ai", - MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.70.0", + MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.71.0", } diff --git a/src/resources/v1/ai-image-editor/README.md b/src/resources/v1/ai-image-editor/README.md index 18fd6b4..7b07d75 100644 --- a/src/resources/v1/ai-image-editor/README.md +++ b/src/resources/v1/ai-image-editor/README.md @@ -54,19 +54,19 @@ Edit images with AI. #### Parameters -| Parameter | Required | Description | Example | -| ------------------- | :------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `assets` | ✓ | Provide the assets for image edit | `{"imageFilePaths": ["api-assets/id/1234.png", "api-assets/id/1235.png"]}` | -| `└─ imageFilePath` | ✗ | Deprecated: Please use `image_file_paths` instead as edits with multiple images are now supported. The image used in the 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. | `"string"` | -| `└─ imageFilePaths` | ✗ | The image(s) used in the edit, maximum of 10 images. 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", "api-assets/id/1235.png"]` | -| `style` | ✓ | | `{"prompt": "Give me sunglasses"}` | -| `└─ model` | ✗ | Deprecated: Please use `model` instead. The AI model to use for image editing. * `Nano Banana` - Precise, realistic edits with consistent results * `Seedream` - Creative, imaginative images with artistic freedom * `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. | `"Nano Banana"` | -| `└─ prompt` | ✓ | The prompt used to edit the image. | `"Give me sunglasses"` | -| `aspectRatio` | ✗ | The aspect ratio of the output image(s). If not specified, defaults to `auto`. | `"1:1"` | -| `imageCount` | ✗ | Number of images to generate. Maximum varies by model. Defaults to 1 if not specified. | `1.0` | -| `model` | ✗ | The AI model to use for image editing. 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. - `qwen-edit` - from 10 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: free, creator, pro, business - Max additional input images: 2 - `flux-2-klein` - from 5 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: free, creator, pro, business - Max additional input images: 5 - `nano-banana` - from 50 credits/image - Supported resolutions: 640px, 1k - Available for tiers: creator, pro, business - Max additional input images: 9 - `nano-banana-2` - from 100 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Max additional input images: 9 - `nano-banana-2-lite` - from 50 credits/image - Supported resolutions: 640px, 1k - Available for tiers: creator, pro, business - Max additional input images: 9 - `seedream-v4` - from 40 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Max additional input images: 9 - `nano-banana-pro` - from 150 credits/image - Supported resolutions: 1k, 2k, 4k - Available for tiers: creator, pro, business - Max additional input images: 9 - `seedream-v4.5` - from 50 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Max additional input images: 9 - `gpt-image-2` - from 50 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Max additional input images: 9 | `"default"` | -| `name` | ✗ | Give your image a custom name for easy identification. | `"My Ai Image Editor image"` | -| `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:** - `qwen-edit` - 640px, 1k, 2k - `flux-2-klein` - 640px, 1k, 2k - `nano-banana` - 640px, 1k - `nano-banana-2` - 640px, 1k, 2k, 4k - `nano-banana-2-lite` - 640px, 1k - `seedream-v4` - 640px, 1k, 2k, 4k - `nano-banana-pro` - 1k, 2k, 4k - `seedream-v4.5` - 640px, 1k, 2k, 4k - `gpt-image-2` - 640px, 1k, 2k, 4k Note: Resolution availability depends on the model and your subscription tier. | `"1k"` | +| Parameter | Required | Description | Example | +| ------------------- | :------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `assets` | ✓ | Provide the assets for image edit | `{"imageFilePaths": ["api-assets/id/1234.png", "api-assets/id/1235.png"]}` | +| `└─ imageFilePath` | ✗ | Deprecated: Please use `image_file_paths` instead as edits with multiple images are now supported. The image used in the 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. | `"string"` | +| `└─ imageFilePaths` | ✗ | The image(s) used in the edit, maximum of 10 images. 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", "api-assets/id/1235.png"]` | +| `style` | ✓ | | `{"prompt": "Give me sunglasses"}` | +| `└─ model` | ✗ | Deprecated: Please use `model` instead. The AI model to use for image editing. * `Nano Banana` - Precise, realistic edits with consistent results * `Seedream` - Creative, imaginative images with artistic freedom * `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. | `"Nano Banana"` | +| `└─ prompt` | ✓ | The prompt used to edit the image. | `"Give me sunglasses"` | +| `aspectRatio` | ✗ | The aspect ratio of the output image(s). If not specified, defaults to `auto`. | `"1:1"` | +| `imageCount` | ✗ | Number of images to generate. Maximum varies by model. Defaults to 1 if not specified. | `1.0` | +| `model` | ✗ | The AI model to use for image editing. 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. - `qwen-edit` - from 10 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: free, creator, pro, business - Max additional input images: 2 - `flux-2-klein` - from 5 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: free, creator, pro, business - Max additional input images: 5 - `nano-banana` - from 50 credits/image - Supported resolutions: 640px, 1k - Available for tiers: creator, pro, business - Max additional input images: 9 - `nano-banana-2` - from 100 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Max additional input images: 9 - `nano-banana-2-lite` - from 50 credits/image - Supported resolutions: 640px, 1k - Available for tiers: creator, pro, business - Max additional input images: 9 - `seedream-v4` - from 40 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Max additional input images: 9 - `nano-banana-pro` - from 150 credits/image - Supported resolutions: 1k, 2k, 4k - Available for tiers: creator, pro, business - Max additional input images: 9 - `seedream-v4.5` - from 50 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Max additional input images: 9 - `seedream-v5-pro` - from 75 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: creator, pro, business - Max additional input images: 9 - `gpt-image-2` - from 50 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Max additional input images: 9 | `"default"` | +| `name` | ✗ | Give your image a custom name for easy identification. | `"My Ai Image Editor image"` | +| `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:** - `qwen-edit` - 640px, 1k, 2k - `flux-2-klein` - 640px, 1k, 2k - `nano-banana` - 640px, 1k - `nano-banana-2` - 640px, 1k, 2k, 4k - `nano-banana-2-lite` - 640px, 1k - `seedream-v4` - 640px, 1k, 2k, 4k - `nano-banana-pro` - 1k, 2k, 4k - `seedream-v4.5` - 640px, 1k, 2k, 4k - `seedream-v5-pro` - 640px, 1k, 2k - `gpt-image-2` - 640px, 1k, 2k, 4k Note: Resolution availability depends on the model and your subscription tier. | `"1k"` | #### Example Snippet diff --git a/src/resources/v1/ai-image-editor/request-types.ts b/src/resources/v1/ai-image-editor/request-types.ts index 2e24f8e..b7d0edb 100644 --- a/src/resources/v1/ai-image-editor/request-types.ts +++ b/src/resources/v1/ai-image-editor/request-types.ts @@ -67,6 +67,10 @@ export type CreateRequest = { * - Supported resolutions: 640px, 1k, 2k, 4k * - Available for tiers: creator, pro, business * - Max additional input images: 9 + * - `seedream-v5-pro` - from 75 credits/image + * - Supported resolutions: 640px, 1k, 2k + * - Available for tiers: creator, pro, business + * - Max additional input images: 9 * - `gpt-image-2` - from 50 credits/image * - Supported resolutions: 640px, 1k, 2k, 4k * - Available for tiers: creator, pro, business @@ -85,6 +89,7 @@ export type CreateRequest = { | "qwen-edit" | "seedream-v4" | "seedream-v4.5" + | "seedream-v5-pro" ) | undefined; /** @@ -110,6 +115,7 @@ export type CreateRequest = { * - `seedream-v4` - 640px, 1k, 2k, 4k * - `nano-banana-pro` - 1k, 2k, 4k * - `seedream-v4.5` - 640px, 1k, 2k, 4k + * - `seedream-v5-pro` - 640px, 1k, 2k * - `gpt-image-2` - 640px, 1k, 2k, 4k * * Note: Resolution availability depends on the model and your subscription tier. @@ -141,6 +147,7 @@ export type External$CreateRequest = { | "qwen-edit" | "seedream-v4" | "seedream-v4.5" + | "seedream-v5-pro" ) | undefined; name?: string | undefined; @@ -174,6 +181,7 @@ const SchemaIn$CreateRequest: z.ZodType< "qwen-edit", "seedream-v4", "seedream-v4.5", + "seedream-v5-pro", ]) .optional(), name: z.string().optional(), @@ -219,6 +227,7 @@ const SchemaOut$CreateRequest: z.ZodType< "qwen-edit", "seedream-v4", "seedream-v4.5", + "seedream-v5-pro", ]) .optional(), name: z.string().optional(), diff --git a/src/resources/v1/ai-image-generator/README.md b/src/resources/v1/ai-image-generator/README.md index 999ac8c..ff6679a 100644 --- a/src/resources/v1/ai-image-generator/README.md +++ b/src/resources/v1/ai-image-generator/README.md @@ -57,18 +57,18 @@ Create an AI image with advanced model selection and quality controls. #### Parameters -| Parameter | Required | Deprecated | Description | Example | -| ---------------- | :------: | :--------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | -| `imageCount` | ✓ | ✗ | Number of images to generate. Maximum varies by model. | `1` | -| `style` | ✓ | ✗ | The art style to use for image generation. | `{"prompt": "Cool image", "tool": "ai-anime-generator"}` | -| `└─ prompt` | ✓ | — | The prompt used for the image(s). | `"Cool image"` | -| `└─ qualityMode` | ✗ | ✓ | DEPRECATED: Use `model` field instead for explicit model selection. Legacy quality mode mapping: - `standard` → `z-image-turbo` model - `pro` → `seedream-v4` model If model is specified, it will take precedence over the legacy quality_mode field. | `"pro"` | -| `└─ tool` | ✗ | — | The art style to use for image generation. Defaults to 'general' if not provided. | `"ai-anime-generator"` | -| `aspectRatio` | ✗ | ✗ | The aspect ratio of the output image(s). If not specified, defaults to `1:1` (square). | `"1:1"` | -| `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-schnell` - from 5 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: free, creator, pro, business - Image count allowed: 1, 2, 3, 4 - `flux-2-klein` - from 5 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: free, creator, pro, business - Image count allowed: 1 - `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 - `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 - `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-lite` - 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-pro` - from 150 credits/image - Supported resolutions: 1k, 2k, 4k - Available for tiers: creator, pro, business - Image count allowed: 1, 4, 9, 16 - `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 **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-schnell` - 640px, 1k, 2k - `flux-2-klein` - 640px, 1k, 2k - `z-image-turbo` - 640px, 1k, 2k - `seedream-v4` - 640px, 1k, 2k, 4k - `nano-banana` - 640px, 1k - `nano-banana-2-lite` - 640px, 1k - `nano-banana-2` - 640px, 1k, 2k, 4k - `nano-banana-pro` - 1k, 2k, 4k - `gpt-image-2` - 640px, 1k, 2k, 4k Note: Resolution availability depends on the model and your subscription tier. | `"auto"` | +| Parameter | Required | Deprecated | Description | Example | +| ---------------- | :------: | :--------: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | +| `imageCount` | ✓ | ✗ | Number of images to generate. Maximum varies by model. | `1` | +| `style` | ✓ | ✗ | The art style to use for image generation. | `{"prompt": "Cool image", "tool": "ai-anime-generator"}` | +| `└─ prompt` | ✓ | — | The prompt used for the image(s). | `"Cool image"` | +| `└─ qualityMode` | ✗ | ✓ | DEPRECATED: Use `model` field instead for explicit model selection. Legacy quality mode mapping: - `standard` → `z-image-turbo` model - `pro` → `seedream-v4` model If model is specified, it will take precedence over the legacy quality_mode field. | `"pro"` | +| `└─ tool` | ✗ | — | The art style to use for image generation. Defaults to 'general' if not provided. | `"ai-anime-generator"` | +| `aspectRatio` | ✗ | ✗ | The aspect ratio of the output image(s). If not specified, defaults to `1:1` (square). | `"1:1"` | +| `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-schnell` - from 5 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: free, creator, pro, business - Image count allowed: 1, 2, 3, 4 - `flux-2-klein` - from 5 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: free, creator, pro, business - Image count allowed: 1 - `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 - `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 - `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-lite` - 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-pro` - from 150 credits/image - Supported resolutions: 1k, 2k, 4k - Available for tiers: creator, pro, business - Image count allowed: 1, 4, 9, 16 - `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 **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-schnell` - 640px, 1k, 2k - `flux-2-klein` - 640px, 1k, 2k - `z-image-turbo` - 640px, 1k, 2k - `seedream-v4` - 640px, 1k, 2k, 4k - `seedream-v5-pro` - 640px, 1k, 2k - `nano-banana` - 640px, 1k - `nano-banana-2-lite` - 640px, 1k - `nano-banana-2` - 640px, 1k, 2k, 4k - `nano-banana-pro` - 1k, 2k, 4k - `gpt-image-2` - 640px, 1k, 2k, 4k Note: Resolution availability depends on the model and your subscription tier. | `"auto"` | #### Example Snippet diff --git a/src/resources/v1/ai-image-generator/request-types.ts b/src/resources/v1/ai-image-generator/request-types.ts index 36c5c7a..61faf02 100644 --- a/src/resources/v1/ai-image-generator/request-types.ts +++ b/src/resources/v1/ai-image-generator/request-types.ts @@ -40,6 +40,10 @@ export type CreateRequest = { * - 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 * - `nano-banana` - from 50 credits/image * - Supported resolutions: 640px, 1k * - Available for tiers: creator, pro, business @@ -77,6 +81,7 @@ export type CreateRequest = { | "nano-banana-pro" | "seedream" | "seedream-v4" + | "seedream-v5-pro" | "z-image-turbo" ) | undefined; @@ -105,6 +110,7 @@ export type CreateRequest = { * - `flux-2-klein` - 640px, 1k, 2k * - `z-image-turbo` - 640px, 1k, 2k * - `seedream-v4` - 640px, 1k, 2k, 4k + * - `seedream-v5-pro` - 640px, 1k, 2k * - `nano-banana` - 640px, 1k * - `nano-banana-2-lite` - 640px, 1k * - `nano-banana-2` - 640px, 1k, 2k, 4k @@ -140,6 +146,7 @@ export type External$CreateRequest = { | "nano-banana-pro" | "seedream" | "seedream-v4" + | "seedream-v5-pro" | "z-image-turbo" ) | undefined; @@ -172,6 +179,7 @@ const SchemaIn$CreateRequest: z.ZodType< "nano-banana-pro", "seedream", "seedream-v4", + "seedream-v5-pro", "z-image-turbo", ]) .optional(), @@ -216,6 +224,7 @@ const SchemaOut$CreateRequest: z.ZodType< "nano-banana-pro", "seedream", "seedream-v4", + "seedream-v5-pro", "z-image-turbo", ]) .optional(), diff --git a/src/resources/v1/body-swap/README.md b/src/resources/v1/body-swap/README.md index 30afb82..9fb1c1a 100644 --- a/src/resources/v1/body-swap/README.md +++ b/src/resources/v1/body-swap/README.md @@ -51,7 +51,7 @@ const res = await client.v1.bodySwap.generate( ### Body Swap -Swap a person into a scene image using Nano Banana 2. Credits depend on `resolution` (from 50 credits at 640px upward). +Swap a person into a scene image using Nano Banana 2 Lite (640px/1k) or Nano Banana 2 (2k/4k). Credits depend on `resolution` (from 50 credits at 640px upward). **API Endpoint**: `POST /v1/body-swap` diff --git a/src/resources/v1/body-swap/resource-client.ts b/src/resources/v1/body-swap/resource-client.ts index 3598b67..6e727d4 100644 --- a/src/resources/v1/body-swap/resource-client.ts +++ b/src/resources/v1/body-swap/resource-client.ts @@ -140,7 +140,7 @@ export class BodySwapClient extends CoreResourceClient { /** * Body Swap * - * Swap a person into a scene image using Nano Banana 2. Credits depend on `resolution` (from 50 credits at 640px upward). + * Swap a person into a scene image using Nano Banana 2 Lite (640px/1k) or Nano Banana 2 (2k/4k). Credits depend on `resolution` (from 50 credits at 640px upward). * * POST /v1/body-swap */ diff --git a/src/resources/v1/image-to-video/README.md b/src/resources/v1/image-to-video/README.md index 0ac26bb..ff07391 100644 --- a/src/resources/v1/image-to-video/README.md +++ b/src/resources/v1/image-to-video/README.md @@ -82,9 +82,9 @@ For detailed examples, see the [product page](https://magichour.ai/products/imag | Parameter | Required | Deprecated | Description | Example | | --------------------- | :------: | :--------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `assets` | ✓ | ✗ | Provide the assets for image-to-video. Sora 2 only supports images with an aspect ratio of `9:16` or `16:9`. | `{"endImageFilePath": "api-assets/id/1234.png", "imageFilePath": "api-assets/id/1234.png"}` | -| `└─ endImageFilePath` | ✗ | — | The image to use as the last frame of the video. * **`ltx-2.3`**: Supports 480p, 720p, 1080p. * **`wan-2.2`**: Not supported * **`kling-2.5`**: Supports 1080p. * **`kling-3.0`**: Supports 720p, 1080p, 4k. * **`veo3.1-lite`**: Not supported * **`veo3.1`**: Not supported * **`seedance-1.5`**: Supports 480p, 720p, 1080p. * **`seedance-2.0-mini`**: Supports 480p, 720p. * **`seedance-2.0`**: Supports 480p, 720p. * **`sora-2`**: Not supported | `"api-assets/id/1234.png"` | +| `└─ endImageFilePath` | ✗ | — | The image to use as the last frame of the video. * **`ltx-2.3`**: Supports 480p, 720p, 1080p. * **`wan-2.2`**: Not supported * **`kling-2.5`**: Supports 1080p. * **`kling-3.0`**: Supports 720p, 1080p, 4k. * **`veo3.1-lite`**: Supports 720p, 1080p. Requires a duration of 8 seconds or less. * **`veo3.1`**: Supports 720p, 1080p. Requires a duration of 8 seconds or less. * **`seedance-1.5`**: Supports 480p, 720p, 1080p. * **`seedance-2.0-mini`**: Supports 480p, 720p. * **`seedance-2.0`**: Supports 480p, 720p. * **`sora-2`**: Not supported | `"api-assets/id/1234.png"` | | `└─ imageFilePath` | ✓ | — | The path of the image file. 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"` | -| `endSeconds` | ✓ | ✗ | The total duration of the output video in seconds. Supported durations depend on the chosen model: * **`ltx-2.3`**: 1, 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 * **`kling-2.5`**: 5, 10 * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56 * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * **`seedance-1.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12 * **`seedance-2.0-mini`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60 | `5.0` | +| `endSeconds` | ✓ | ✗ | The total duration of the output video in seconds. Supported durations depend on the chosen model: * **`ltx-2.3`**: 1, 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 * **`kling-2.5`**: 5, 10 * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * **`seedance-1.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12 * **`seedance-2.0-mini`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60 | `5.0` | | `audio` | ✗ | ✗ | Whether to include audio in the video. Defaults to `false` if not specified. Audio support varies by model: * **`ltx-2.3`**: Toggle-able: no additional credits for audio * **`wan-2.2`**: Not supported * **`kling-2.5`**: Toggle-able: no additional credits for audio * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled * **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio * **`seedance-2.0`**: Toggle-able: no additional credits for audio * **`sora-2`**: Toggle-able: no additional credits for audio | `true` | | `height` | ✗ | ✓ | `height` is deprecated and no longer influences the output video's resolution. This field is retained only for backward compatibility and will be removed in a future release. | `123` | | `model` | ✗ | ✗ | The AI model to use for video generation. * `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.3`. * `ltx-2.3`: Fastest output. Best for rapid iteration. * `wan-2.2`: Strong physics, camera moves, and motion. * `kling-2.5`: Great for action, motion blur, and camera moves. * `kling-3.0`: Best overall quality for cinematic storytelling. * `veo3.1-lite`: Veo quality at a more accessible cost. * `veo3.1`: Google's model. Highest realism and detail. * `seedance-1.5`: Smooth, consistent motion with precision. * `seedance-2.0-mini`: Fast, consistent video with strong motion quality * `seedance-2.0`: Top quality with reference-to-video control. * `sora-2`: Open AI's model. Great for creativity and viral clips. If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`. | `"kling-3.0"` | diff --git a/src/resources/v1/image-to-video/request-types.ts b/src/resources/v1/image-to-video/request-types.ts index a919f59..33fd9a4 100644 --- a/src/resources/v1/image-to-video/request-types.ts +++ b/src/resources/v1/image-to-video/request-types.ts @@ -44,7 +44,7 @@ export type CreateRequest = { * * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15 * * **`kling-2.5`**: 5, 10 * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 - * * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56 + * * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * * **`seedance-1.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12 * * **`seedance-2.0-mini`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 diff --git a/src/resources/v1/text-to-video/README.md b/src/resources/v1/text-to-video/README.md index 898d2c2..51de45a 100644 --- a/src/resources/v1/text-to-video/README.md +++ b/src/resources/v1/text-to-video/README.md @@ -82,7 +82,7 @@ For detailed examples, see the [product page](https://magichour.ai/products/text | Parameter | Required | Deprecated | Description | Example | | ---------------- | :------: | :--------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- | -| `endSeconds` | ✓ | ✗ | The total duration of the output video in seconds. Supported durations depend on the chosen model: * **`ltx-2.3`**: 1, 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 * **`kling-2.5`**: 5, 10 * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56 * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * **`seedance-1.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12 * **`seedance-2.0-mini`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60 | `5.0` | +| `endSeconds` | ✓ | ✗ | The total duration of the output video in seconds. Supported durations depend on the chosen model: * **`ltx-2.3`**: 1, 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 * **`kling-2.5`**: 5, 10 * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * **`seedance-1.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12 * **`seedance-2.0-mini`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60 | `5.0` | | `style` | ✓ | ✗ | | `{"prompt": "a dog running"}` | | `└─ prompt` | ✓ | — | The prompt used for the video. | `"a dog running"` | | `└─ qualityMode` | ✗ | ✓ | DEPRECATED: Please use `resolution` field instead. For backward compatibility: * `quick` maps to 720p resolution * `studio` maps to 1080p resolution This field will be removed in a future version. Use the `resolution` field to directly to specify the resolution. | `"quick"` | diff --git a/src/resources/v1/text-to-video/request-types.ts b/src/resources/v1/text-to-video/request-types.ts index 2ca070d..aad6be9 100644 --- a/src/resources/v1/text-to-video/request-types.ts +++ b/src/resources/v1/text-to-video/request-types.ts @@ -51,7 +51,7 @@ export type CreateRequest = { * * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15 * * **`kling-2.5`**: 5, 10 * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 - * * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56 + * * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * * **`seedance-1.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12 * * **`seedance-2.0-mini`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 diff --git a/src/types/v1-ai-image-editor-create-body-model-enum.ts b/src/types/v1-ai-image-editor-create-body-model-enum.ts index 9e944cc..38a40ad 100644 --- a/src/types/v1-ai-image-editor-create-body-model-enum.ts +++ b/src/types/v1-ai-image-editor-create-body-model-enum.ts @@ -35,6 +35,10 @@ * - Supported resolutions: 640px, 1k, 2k, 4k * - Available for tiers: creator, pro, business * - Max additional input images: 9 + * - `seedream-v5-pro` - from 75 credits/image + * - Supported resolutions: 640px, 1k, 2k + * - Available for tiers: creator, pro, business + * - Max additional input images: 9 * - `gpt-image-2` - from 50 credits/image * - Supported resolutions: 640px, 1k, 2k, 4k * - Available for tiers: creator, pro, business @@ -51,4 +55,5 @@ export type V1AiImageEditorCreateBodyModelEnum = | "nano-banana-pro" | "qwen-edit" | "seedream-v4" - | "seedream-v4.5"; + | "seedream-v4.5" + | "seedream-v5-pro"; diff --git a/src/types/v1-ai-image-editor-create-body-resolution-enum.ts b/src/types/v1-ai-image-editor-create-body-resolution-enum.ts index a0249e8..cbebf11 100644 --- a/src/types/v1-ai-image-editor-create-body-resolution-enum.ts +++ b/src/types/v1-ai-image-editor-create-body-resolution-enum.ts @@ -17,6 +17,7 @@ * - `seedream-v4` - 640px, 1k, 2k, 4k * - `nano-banana-pro` - 1k, 2k, 4k * - `seedream-v4.5` - 640px, 1k, 2k, 4k + * - `seedream-v5-pro` - 640px, 1k, 2k * - `gpt-image-2` - 640px, 1k, 2k, 4k * * Note: Resolution availability depends on the model and your subscription tier. diff --git a/src/types/v1-ai-image-editor-create-body.ts b/src/types/v1-ai-image-editor-create-body.ts index d4469e5..7db0f89 100644 --- a/src/types/v1-ai-image-editor-create-body.ts +++ b/src/types/v1-ai-image-editor-create-body.ts @@ -67,6 +67,10 @@ export type V1AiImageEditorCreateBody = { * - Supported resolutions: 640px, 1k, 2k, 4k * - Available for tiers: creator, pro, business * - Max additional input images: 9 + * - `seedream-v5-pro` - from 75 credits/image + * - Supported resolutions: 640px, 1k, 2k + * - Available for tiers: creator, pro, business + * - Max additional input images: 9 * - `gpt-image-2` - from 50 credits/image * - Supported resolutions: 640px, 1k, 2k, 4k * - Available for tiers: creator, pro, business @@ -85,6 +89,7 @@ export type V1AiImageEditorCreateBody = { | "qwen-edit" | "seedream-v4" | "seedream-v4.5" + | "seedream-v5-pro" ) | undefined; /** @@ -110,6 +115,7 @@ export type V1AiImageEditorCreateBody = { * - `seedream-v4` - 640px, 1k, 2k, 4k * - `nano-banana-pro` - 1k, 2k, 4k * - `seedream-v4.5` - 640px, 1k, 2k, 4k + * - `seedream-v5-pro` - 640px, 1k, 2k * - `gpt-image-2` - 640px, 1k, 2k, 4k * * Note: Resolution availability depends on the model and your subscription tier. @@ -141,6 +147,7 @@ export type External$V1AiImageEditorCreateBody = { | "qwen-edit" | "seedream-v4" | "seedream-v4.5" + | "seedream-v5-pro" ) | undefined; name?: string | undefined; @@ -174,6 +181,7 @@ const SchemaIn$V1AiImageEditorCreateBody: z.ZodType< "qwen-edit", "seedream-v4", "seedream-v4.5", + "seedream-v5-pro", ]) .optional(), name: z.string().optional(), @@ -219,6 +227,7 @@ const SchemaOut$V1AiImageEditorCreateBody: z.ZodType< "qwen-edit", "seedream-v4", "seedream-v4.5", + "seedream-v5-pro", ]) .optional(), name: z.string().optional(), diff --git a/src/types/v1-ai-image-generator-create-body-model-enum.ts b/src/types/v1-ai-image-generator-create-body-model-enum.ts index 8c04031..6d5805d 100644 --- a/src/types/v1-ai-image-generator-create-body-model-enum.ts +++ b/src/types/v1-ai-image-generator-create-body-model-enum.ts @@ -19,6 +19,10 @@ * - 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 * - `nano-banana` - from 50 credits/image * - Supported resolutions: 640px, 1k * - Available for tiers: creator, pro, business @@ -55,4 +59,5 @@ export type V1AiImageGeneratorCreateBodyModelEnum = | "nano-banana-pro" | "seedream" | "seedream-v4" + | "seedream-v5-pro" | "z-image-turbo"; diff --git a/src/types/v1-ai-image-generator-create-body-resolution-enum.ts b/src/types/v1-ai-image-generator-create-body-resolution-enum.ts index 0d3ef6d..45c18fc 100644 --- a/src/types/v1-ai-image-generator-create-body-resolution-enum.ts +++ b/src/types/v1-ai-image-generator-create-body-resolution-enum.ts @@ -13,6 +13,7 @@ * - `flux-2-klein` - 640px, 1k, 2k * - `z-image-turbo` - 640px, 1k, 2k * - `seedream-v4` - 640px, 1k, 2k, 4k + * - `seedream-v5-pro` - 640px, 1k, 2k * - `nano-banana` - 640px, 1k * - `nano-banana-2-lite` - 640px, 1k * - `nano-banana-2` - 640px, 1k, 2k, 4k diff --git a/src/types/v1-ai-image-generator-create-body.ts b/src/types/v1-ai-image-generator-create-body.ts index 934b18e..4bc7c8c 100644 --- a/src/types/v1-ai-image-generator-create-body.ts +++ b/src/types/v1-ai-image-generator-create-body.ts @@ -40,6 +40,10 @@ export type V1AiImageGeneratorCreateBody = { * - 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 * - `nano-banana` - from 50 credits/image * - Supported resolutions: 640px, 1k * - Available for tiers: creator, pro, business @@ -77,6 +81,7 @@ export type V1AiImageGeneratorCreateBody = { | "nano-banana-pro" | "seedream" | "seedream-v4" + | "seedream-v5-pro" | "z-image-turbo" ) | undefined; @@ -105,6 +110,7 @@ export type V1AiImageGeneratorCreateBody = { * - `flux-2-klein` - 640px, 1k, 2k * - `z-image-turbo` - 640px, 1k, 2k * - `seedream-v4` - 640px, 1k, 2k, 4k + * - `seedream-v5-pro` - 640px, 1k, 2k * - `nano-banana` - 640px, 1k * - `nano-banana-2-lite` - 640px, 1k * - `nano-banana-2` - 640px, 1k, 2k, 4k @@ -140,6 +146,7 @@ export type External$V1AiImageGeneratorCreateBody = { | "nano-banana-pro" | "seedream" | "seedream-v4" + | "seedream-v5-pro" | "z-image-turbo" ) | undefined; @@ -172,6 +179,7 @@ const SchemaIn$V1AiImageGeneratorCreateBody: z.ZodType< "nano-banana-pro", "seedream", "seedream-v4", + "seedream-v5-pro", "z-image-turbo", ]) .optional(), @@ -216,6 +224,7 @@ const SchemaOut$V1AiImageGeneratorCreateBody: z.ZodType< "nano-banana-pro", "seedream", "seedream-v4", + "seedream-v5-pro", "z-image-turbo", ]) .optional(), diff --git a/src/types/v1-image-to-video-create-body-assets.ts b/src/types/v1-image-to-video-create-body-assets.ts index 1b9286f..83f89dd 100644 --- a/src/types/v1-image-to-video-create-body-assets.ts +++ b/src/types/v1-image-to-video-create-body-assets.ts @@ -12,8 +12,8 @@ export type V1ImageToVideoCreateBodyAssets = { * * **`wan-2.2`**: Not supported * * **`kling-2.5`**: Supports 1080p. * * **`kling-3.0`**: Supports 720p, 1080p, 4k. - * * **`veo3.1-lite`**: Not supported - * * **`veo3.1`**: Not supported + * * **`veo3.1-lite`**: Supports 720p, 1080p. Requires a duration of 8 seconds or less. + * * **`veo3.1`**: Supports 720p, 1080p. Requires a duration of 8 seconds or less. * * **`seedance-1.5`**: Supports 480p, 720p, 1080p. * * **`seedance-2.0-mini`**: Supports 480p, 720p. * * **`seedance-2.0`**: Supports 480p, 720p. diff --git a/src/types/v1-image-to-video-create-body.ts b/src/types/v1-image-to-video-create-body.ts index 3a140c8..13662fa 100644 --- a/src/types/v1-image-to-video-create-body.ts +++ b/src/types/v1-image-to-video-create-body.ts @@ -44,7 +44,7 @@ export type V1ImageToVideoCreateBody = { * * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15 * * **`kling-2.5`**: 5, 10 * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 - * * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56 + * * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * * **`seedance-1.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12 * * **`seedance-2.0-mini`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 diff --git a/src/types/v1-text-to-video-create-body.ts b/src/types/v1-text-to-video-create-body.ts index 14ad176..bb14f21 100644 --- a/src/types/v1-text-to-video-create-body.ts +++ b/src/types/v1-text-to-video-create-body.ts @@ -51,7 +51,7 @@ export type V1TextToVideoCreateBody = { * * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15 * * **`kling-2.5`**: 5, 10 * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 - * * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56 + * * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * * **`seedance-1.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12 * * **`seedance-2.0-mini`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15