diff --git a/.sdk.json b/.sdk.json index 66a784a..b918d86 100644 --- a/.sdk.json +++ b/.sdk.json @@ -1,5 +1,5 @@ { - "id": "88e585d6-f705-42ee-a9cf-1e80c832f4c3", + "id": "e1aa8e76-9440-4f9f-b62a-82a8a01e5fc4", "tracked_paths": [ { "editable": true, diff --git a/package-lock.json b/package-lock.json index f9d6578..73bcdc0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "magic-hour", - "version": "0.61.0", + "version": "0.62.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "magic-hour", - "version": "0.61.0", + "version": "0.62.0", "license": "MIT", "dependencies": { "make-api-request-js": "^0.2.1", diff --git a/package.json b/package.json index a4e3ce5..f41aeb9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "magic-hour", - "version": "0.61.0", + "version": "0.62.0", "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { diff --git a/src/environment.ts b/src/environment.ts index 9278f1e..ae4b51b 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.62.0", + MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.63.0", } diff --git a/src/resources/v1/ai-image-editor/README.md b/src/resources/v1/ai-image-editor/README.md index 50230ca..560b845 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 - `nano-banana` - from 50 credits/image - Supported resolutions: 640px, 1k - Available for tiers: free, creator, pro, business - Max additional input images: 9 - `nano-banana-2` - from 100 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: free, creator, pro, business - Max additional input images: 9 - `seedream-v4` - from 40 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: free, 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 | `"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 - `nano-banana` - 640px, 1k - `nano-banana-2` - 640px, 1k, 2k, 4k - `seedream-v4` - 640px, 1k, 2k, 4k - `nano-banana-pro` - 1k, 2k, 4k - `seedream-v4.5` - 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 - `nano-banana` - from 50 credits/image - Supported resolutions: 640px, 1k - Available for tiers: free, creator, pro, business - Max additional input images: 9 - `nano-banana-2` - from 100 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: free, creator, pro, business - Max additional input images: 9 - `seedream-v4` - from 40 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: free, 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 - `nano-banana` - 640px, 1k - `nano-banana-2` - 640px, 1k, 2k, 4k - `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"` | #### 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 50c5e15..195bf24 100644 --- a/src/resources/v1/ai-image-editor/request-types.ts +++ b/src/resources/v1/ai-image-editor/request-types.ts @@ -59,11 +59,16 @@ export type CreateRequest = { * - 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 * */ model?: | ( | "default" + | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" @@ -93,6 +98,7 @@ export type CreateRequest = { * - `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. */ @@ -114,6 +120,7 @@ export type External$CreateRequest = { model?: | ( | "default" + | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" @@ -144,6 +151,7 @@ const SchemaIn$CreateRequest: z.ZodType< model: z .enum([ "default", + "gpt-image-2", "nano-banana", "nano-banana-2", "nano-banana-pro", @@ -186,6 +194,7 @@ const SchemaOut$CreateRequest: z.ZodType< model: z .enum([ "default", + "gpt-image-2", "nano-banana", "nano-banana-2", "nano-banana-pro", diff --git a/src/resources/v1/ai-image-generator/README.md b/src/resources/v1/ai-image-generator/README.md index 75e36a0..81e5d23 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 - `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: free, creator, pro, business - Image count allowed: 1, 2, 3, 4 - `nano-banana` - from 50 credits/image - Supported resolutions: 640px, 1k - Available for tiers: free, 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: free, 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 **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 - `z-image-turbo` - 640px, 1k, 2k - `seedream-v4` - 640px, 1k, 2k, 4k - `nano-banana` - 640px, 1k - `nano-banana-2` - 640px, 1k, 2k, 4k - `nano-banana-pro` - 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 - `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: free, creator, pro, business - Image count allowed: 1, 2, 3, 4 - `nano-banana` - from 50 credits/image - Supported resolutions: 640px, 1k - Available for tiers: free, 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: free, 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 - `z-image-turbo` - 640px, 1k, 2k - `seedream-v4` - 640px, 1k, 2k, 4k - `nano-banana` - 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 41a80b8..8d5fc5e 100644 --- a/src/resources/v1/ai-image-generator/request-types.ts +++ b/src/resources/v1/ai-image-generator/request-types.ts @@ -48,6 +48,10 @@ export type CreateRequest = { * - 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. @@ -57,6 +61,7 @@ export type CreateRequest = { | ( | "default" | "flux-schnell" + | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" @@ -92,6 +97,7 @@ export type CreateRequest = { * - `nano-banana` - 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. */ @@ -114,6 +120,7 @@ export type External$CreateRequest = { | ( | "default" | "flux-schnell" + | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" @@ -143,6 +150,7 @@ const SchemaIn$CreateRequest: z.ZodType< .enum([ "default", "flux-schnell", + "gpt-image-2", "nano-banana", "nano-banana-2", "nano-banana-pro", @@ -184,6 +192,7 @@ const SchemaOut$CreateRequest: z.ZodType< .enum([ "default", "flux-schnell", + "gpt-image-2", "nano-banana", "nano-banana-2", "nano-banana-pro", diff --git a/src/resources/v1/body-swap/resource-client.ts b/src/resources/v1/body-swap/resource-client.ts index dcfed20..3d710da 100644 --- a/src/resources/v1/body-swap/resource-client.ts +++ b/src/resources/v1/body-swap/resource-client.ts @@ -11,9 +11,9 @@ import { GenerateRequestType, } from "magic-hour/helpers/generate-type"; import { getLogger } from "magic-hour/logger"; +import * as requests from "magic-hour/resources/v1/body-swap/request-types"; import { FilesClient } from "magic-hour/resources/v1/files"; import { ImageProjectsClient } from "magic-hour/resources/v1/image-projects"; -import * as requests from "magic-hour/resources/v1/body-swap/request-types"; import * as types from "magic-hour/types"; import { Schemas$V1BodySwapCreateBody } from "magic-hour/types/v1-body-swap-create-body"; import { Schemas$V1BodySwapCreateResponse } from "magic-hour/types/v1-body-swap-create-response"; diff --git a/src/resources/v1/files/upload-urls/README.md b/src/resources/v1/files/upload-urls/README.md index 905d164..14d9ab1 100644 --- a/src/resources/v1/files/upload-urls/README.md +++ b/src/resources/v1/files/upload-urls/README.md @@ -12,7 +12,7 @@ The response array will match the order of items in the request body. - video: mp4, m4v, mov, webm - audio: mp3, wav, aac, flac, webm, m4a -- image: png, jpg, jpeg, heic, webp, avif, jp2, tiff, bmp +- image: png, jpg, jpeg, heic, heif, webp, avif, jp2, tiff, bmp - gif: gif, webp, webm > Note: `gif` is only supported for face swap API `video_file_path` field. diff --git a/src/resources/v1/files/upload-urls/resource-client.ts b/src/resources/v1/files/upload-urls/resource-client.ts index 40f3667..01522c1 100644 --- a/src/resources/v1/files/upload-urls/resource-client.ts +++ b/src/resources/v1/files/upload-urls/resource-client.ts @@ -26,7 +26,7 @@ export class UploadUrlsClient extends CoreResourceClient { * **Valid file extensions per asset type**: * - video: mp4, m4v, mov, webm * - audio: mp3, wav, aac, flac, webm, m4a - * - image: png, jpg, jpeg, heic, webp, avif, jp2, tiff, bmp + * - image: png, jpg, jpeg, heic, heif, webp, avif, jp2, tiff, bmp * - gif: gif, webp, webm * * > Note: `gif` is only supported for face swap API `video_file_path` field. diff --git a/src/resources/v1/image-to-video/README.md b/src/resources/v1/image-to-video/README.md index f4b4922..600443c 100644 --- a/src/resources/v1/image-to-video/README.md +++ b/src/resources/v1/image-to-video/README.md @@ -79,22 +79,22 @@ For detailed examples, see the [product page](https://magichour.ai/products/imag #### Parameters -| 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`**: Not supported * **`wan-2.2`**: Not supported * **`seedance`**: Supports 480p, 720p, 1080p. * **`seedance-2.0`**: Supports 480p, 720p. * **`kling-2.5`**: Supports 1080p. * **`kling-3.0`**: Supports 1080p. * **`sora-2`**: Not supported * **`veo3.1`**: Not supported * **`veo3.1-lite`**: Not supported Legacy models: * **`kling-1.6`**: 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`**: 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 * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`kling-2.5`**: 5, 10 * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60 * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56 Legacy models: * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60 | `5.0` | -| `audio` | ✗ | ✗ | Whether to include audio in the video. Defaults to `false` if not specified. Audio support varies by model: * **`ltx-2`**: Automatically included with no extra credits * **`wan-2.2`**: Not supported * **`seedance`**: Not supported * **`seedance-2.0`**: Automatically included with no extra credits * **`kling-2.5`**: Automatically included with no extra credits * **`kling-3.0`**: Toggle-able (can enable/disable) * **`sora-2`**: Automatically included with no extra credits * **`veo3.1`**: Toggle-able (can enable/disable) * **`veo3.1-lite`**: Toggle-able (can enable/disable) Legacy models: * **`kling-1.6`**: Not supported | `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`. * `ltx-2`: Fast iteration with audio and lip-sync * `wan-2.2`: Fast, strong visuals with effects * `seedance`: Fast iteration and start/end frames * `seedance-2.0`: State-of-the-art quality and consistency * `kling-2.5`: Motion, action, and camera control * `kling-3.0`: Cinematic, multi-scene storytelling * `sora-2`: Story-first concepts and creativity * `veo3.1`: Realistic visuals and prompt adherence * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation. Legacy models: * `kling-1.6`: Reliable baseline with smooth motion 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"` | -| `name` | ✗ | ✗ | Give your video a custom name for easy identification. | `"My Image To Video video"` | -| `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. * **`seedance-2.0`**: Supports 480p, 720p. * **`kling-2.5`**: Supports 720p, 1080p. * **`kling-3.0`**: Supports 720p, 1080p. * **`sora-2`**: Supports 720p. * **`veo3.1`**: Supports 720p, 1080p. * **`veo3.1-lite`**: Supports 720p, 1080p. Legacy models: * **`kling-1.6`**: Supports 720p, 1080p. | `"720p"` | -| `style` | ✗ | ✗ | Attributed used to dictate the style of the output | `{"prompt": "a dog running"}` | -| `└─ highQuality` | ✗ | ✓ | Deprecated: Please use `resolution` instead. For backward compatibility, * `false` maps to 720p resolution * `true` maps to 1080p resolution This field will be removed in a future version. Use the `resolution` field to directly specify the resolution. | `true` | -| `└─ 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"` | -| `width` | ✗ | ✓ | `width` 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` | +| 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`**: Supports 480p, 720p, 1080p. * **`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`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 * **`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`**: Not supported * **`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`: Fast iteration with audio, lip-sync, and end frame * `wan-2.2`: Fast, strong visuals with effects * `kling-2.5`: Motion, action, and camera control * `kling-3.0`: Cinematic, multi-scene storytelling * `veo3.1-lite`: Fast, affordable, high-quality * `veo3.1`: Realistic visuals and prompt adherence * `seedance`: Fast iteration and start/end frames * `seedance-2.0`: State-of-the-art quality and consistency * `sora-2`: Story-first concepts and creativity 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"` | +| `name` | ✗ | ✗ | Give your video a custom name for easy identification. | `"My Image To Video video"` | +| `resolution` | ✗ | ✗ | Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers. * **`ltx-2.3`**: Supports 480p, 720p, 1080p. * **`wan-2.2`**: Supports 480p, 720p, 1080p. * **`kling-2.5`**: Supports 720p, 1080p. * **`kling-3.0`**: Supports 720p, 1080p, 4k. * **`veo3.1-lite`**: Supports 720p, 1080p. * **`veo3.1`**: Supports 720p, 1080p. * **`seedance`**: Supports 480p, 720p, 1080p. * **`seedance-2.0`**: Supports 480p, 720p. * **`sora-2`**: Supports 720p. | `"720p"` | +| `style` | ✗ | ✗ | Attributed used to dictate the style of the output | `{"prompt": "a dog running"}` | +| `└─ highQuality` | ✗ | ✓ | Deprecated: Please use `resolution` instead. For backward compatibility, * `false` maps to 720p resolution * `true` maps to 1080p resolution This field will be removed in a future version. Use the `resolution` field to directly specify the resolution. | `true` | +| `└─ 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"` | +| `width` | ✗ | ✓ | `width` 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` | #### Example Snippet diff --git a/src/resources/v1/image-to-video/request-types.ts b/src/resources/v1/image-to-video/request-types.ts index 492e2ae..1df7ea0 100644 --- a/src/resources/v1/image-to-video/request-types.ts +++ b/src/resources/v1/image-to-video/request-types.ts @@ -24,35 +24,31 @@ export type CreateRequest = { * Whether to include audio in the video. Defaults to `false` if not specified. * * Audio support varies by model: - * * **`ltx-2`**: Automatically included with no extra credits + * * **`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`**: Not supported - * * **`seedance-2.0`**: Automatically included with no extra credits - * * **`kling-2.5`**: Automatically included with no extra credits - * * **`kling-3.0`**: Toggle-able (can enable/disable) - * * **`sora-2`**: Automatically included with no extra credits - * * **`veo3.1`**: Toggle-able (can enable/disable) - * * **`veo3.1-lite`**: Toggle-able (can enable/disable) + * * **`seedance-2.0`**: Toggle-able: no additional credits for audio + * * **`sora-2`**: Toggle-able: no additional credits for audio * - * Legacy models: - * * **`kling-1.6`**: Not supported */ audio?: boolean | undefined; /** * The total duration of the output video in seconds. Supported durations depend on the chosen model: * - * * **`ltx-2`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30 + * * **`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 - * * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 - * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * * **`kling-2.5`**: 5, 10 * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 - * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60 - * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56 + * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 + * * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 + * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 + * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60 * - * Legacy models: - * * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60 */ endSeconds: number; /** @@ -64,19 +60,16 @@ export type CreateRequest = { /** * 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`. - * * `ltx-2`: Fast iteration with audio and lip-sync + * * `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`: Fast iteration with audio, lip-sync, and end frame * * `wan-2.2`: Fast, strong visuals with effects - * * `seedance`: Fast iteration and start/end frames - * * `seedance-2.0`: State-of-the-art quality and consistency * * `kling-2.5`: Motion, action, and camera control * * `kling-3.0`: Cinematic, multi-scene storytelling - * * `sora-2`: Story-first concepts and creativity + * * `veo3.1-lite`: Fast, affordable, high-quality * * `veo3.1`: Realistic visuals and prompt adherence - * * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation. - * - * Legacy models: - * * `kling-1.6`: Reliable baseline with smooth motion + * * `seedance`: Fast iteration and start/end frames + * * `seedance-2.0`: State-of-the-art quality and consistency + * * `sora-2`: Story-first concepts and creativity * * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`. */ @@ -88,6 +81,7 @@ export type CreateRequest = { | "kling-2.5-audio" | "kling-3.0" | "ltx-2" + | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" @@ -104,20 +98,18 @@ export type CreateRequest = { /** * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers. * - * * **`ltx-2`**: Supports 480p, 720p, 1080p. + * * **`ltx-2.3`**: Supports 480p, 720p, 1080p. * * **`wan-2.2`**: Supports 480p, 720p, 1080p. + * * **`kling-2.5`**: Supports 720p, 1080p. + * * **`kling-3.0`**: Supports 720p, 1080p, 4k. + * * **`veo3.1-lite`**: Supports 720p, 1080p. + * * **`veo3.1`**: Supports 720p, 1080p. * * **`seedance`**: Supports 480p, 720p, 1080p. * * **`seedance-2.0`**: Supports 480p, 720p. - * * **`kling-2.5`**: Supports 720p, 1080p. - * * **`kling-3.0`**: Supports 720p, 1080p. * * **`sora-2`**: Supports 720p. - * * **`veo3.1`**: Supports 720p, 1080p. - * * **`veo3.1-lite`**: Supports 720p, 1080p. * - * Legacy models: - * * **`kling-1.6`**: Supports 720p, 1080p. */ - resolution?: ("1080p" | "480p" | "720p") | undefined; + resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined; /** * Attributed used to dictate the style of the output */ @@ -148,6 +140,7 @@ export type External$CreateRequest = { | "kling-2.5-audio" | "kling-3.0" | "ltx-2" + | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" @@ -158,7 +151,7 @@ export type External$CreateRequest = { ) | undefined; name?: string | undefined; - resolution?: ("1080p" | "480p" | "720p") | undefined; + resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined; style?: External$V1ImageToVideoCreateBodyStyle | undefined; width?: number | null | undefined; }; @@ -184,6 +177,7 @@ const SchemaIn$CreateRequest: z.ZodType< "kling-2.5-audio", "kling-3.0", "ltx-2", + "ltx-2.3", "seedance", "seedance-2.0", "sora-2", @@ -194,7 +188,7 @@ const SchemaIn$CreateRequest: z.ZodType< ]) .optional(), name: z.string().optional(), - resolution: z.enum(["1080p", "480p", "720p"]).optional(), + resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(), style: Schemas$V1ImageToVideoCreateBodyStyle.in.optional(), width: z.number().int().nullable().optional(), }) @@ -234,6 +228,7 @@ const SchemaOut$CreateRequest: z.ZodType< "kling-2.5-audio", "kling-3.0", "ltx-2", + "ltx-2.3", "seedance", "seedance-2.0", "sora-2", @@ -244,7 +239,7 @@ const SchemaOut$CreateRequest: z.ZodType< ]) .optional(), name: z.string().optional(), - resolution: z.enum(["1080p", "480p", "720p"]).optional(), + resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(), style: Schemas$V1ImageToVideoCreateBodyStyle.out.optional(), width: z.number().int().nullable().optional(), }) diff --git a/src/resources/v1/text-to-video/README.md b/src/resources/v1/text-to-video/README.md index 202b2b0..89cdd8e 100644 --- a/src/resources/v1/text-to-video/README.md +++ b/src/resources/v1/text-to-video/README.md @@ -80,18 +80,18 @@ For detailed examples, see the [product page](https://magichour.ai/products/text #### Parameters -| Parameter | Required | Deprecated | Description | Example | -| ---------------- | :------: | :--------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- | -| `endSeconds` | ✓ | ✗ | The total duration of the output video in seconds. Supported durations depend on the chosen model: * **`ltx-2`**: 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 * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`kling-2.5`**: 5, 10 * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60 * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56 Legacy models: * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 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"` | -| `aspectRatio` | ✗ | ✗ | Determines the aspect ratio of the output video. * **`ltx-2`**: Supports 9:16, 16:9, 1:1. * **`wan-2.2`**: Supports 9:16, 16:9, 1:1. * **`seedance`**: Supports 9:16, 16:9, 1:1. * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1. * **`kling-2.5`**: Supports 9:16, 16:9, 1:1. * **`kling-3.0`**: Supports 9:16, 16:9, 1:1. * **`sora-2`**: Supports 9:16, 16:9. * **`veo3.1`**: Supports 9:16, 16:9. * **`veo3.1-lite`**: Supports 9:16, 16:9. Legacy models: * **`kling-1.6`**: Supports 9:16, 16:9, 1:1. | `"16:9"` | -| `audio` | ✗ | ✗ | Whether to include audio in the video. Defaults to `false` if not specified. Audio support varies by model: * **`ltx-2`**: Automatically included with no extra credits * **`wan-2.2`**: Not supported * **`seedance`**: Not supported * **`seedance-2.0`**: Automatically included with no extra credits * **`kling-2.5`**: Automatically included with no extra credits * **`kling-3.0`**: Toggle-able (can enable/disable) * **`sora-2`**: Automatically included with no extra credits * **`veo3.1`**: Toggle-able (can enable/disable) * **`veo3.1-lite`**: Toggle-able (can enable/disable) Legacy models: * **`kling-1.6`**: Not supported | `true` | -| `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`. * `ltx-2`: Fast iteration with audio and lip-sync * `wan-2.2`: Fast, strong visuals with effects * `seedance`: Fast iteration and start/end frames * `seedance-2.0`: State-of-the-art quality and consistency * `kling-2.5`: Motion, action, and camera control * `kling-3.0`: Cinematic, multi-scene storytelling * `sora-2`: Story-first concepts and creativity * `veo3.1`: Realistic visuals and prompt adherence * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation. Legacy models: * `kling-1.6`: Reliable baseline with smooth motion 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"` | -| `name` | ✗ | ✗ | Give your video a custom name for easy identification. | `"My Text To Video video"` | -| `orientation` | ✗ | ✓ | Deprecated. Use `aspect_ratio` instead. | `"landscape"` | -| `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. * **`seedance-2.0`**: Supports 480p, 720p. * **`kling-2.5`**: Supports 720p, 1080p. * **`kling-3.0`**: Supports 720p, 1080p. * **`sora-2`**: Supports 720p. * **`veo3.1`**: Supports 720p, 1080p. * **`veo3.1-lite`**: Supports 720p, 1080p. Legacy models: * **`kling-1.6`**: Supports 720p, 1080p. | `"720p"` | +| 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`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 * **`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"` | +| `aspectRatio` | ✗ | ✗ | Determines the aspect ratio of the output video. * **`ltx-2.3`**: Supports 9:16, 16:9, 1:1. * **`wan-2.2`**: Supports 9:16, 16:9, 1:1. * **`kling-2.5`**: Supports 9:16, 16:9, 1:1. * **`kling-3.0`**: Supports 9:16, 16:9, 1:1. * **`veo3.1-lite`**: Supports 9:16, 16:9. * **`veo3.1`**: Supports 9:16, 16:9. * **`seedance`**: Supports 9:16, 16:9, 1:1. * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1. * **`sora-2`**: Supports 9:16, 16:9. | `"16:9"` | +| `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`**: Not supported * **`seedance-2.0`**: Toggle-able: no additional credits for audio * **`sora-2`**: Toggle-able: no additional credits for audio | `true` | +| `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`: Fast iteration with audio, lip-sync, and end frame * `wan-2.2`: Fast, strong visuals with effects * `kling-2.5`: Motion, action, and camera control * `kling-3.0`: Cinematic, multi-scene storytelling * `veo3.1-lite`: Fast, affordable, high-quality * `veo3.1`: Realistic visuals and prompt adherence * `seedance`: Fast iteration and start/end frames * `seedance-2.0`: State-of-the-art quality and consistency * `sora-2`: Story-first concepts and creativity 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"` | +| `name` | ✗ | ✗ | Give your video a custom name for easy identification. | `"My Text To Video video"` | +| `orientation` | ✗ | ✓ | Deprecated. Use `aspect_ratio` instead. | `"landscape"` | +| `resolution` | ✗ | ✗ | Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers. * **`ltx-2.3`**: Supports 480p, 720p, 1080p. * **`wan-2.2`**: Supports 480p, 720p, 1080p. * **`kling-2.5`**: Supports 720p, 1080p. * **`kling-3.0`**: Supports 720p, 1080p, 4k. * **`veo3.1-lite`**: Supports 720p, 1080p. * **`veo3.1`**: Supports 720p, 1080p. * **`seedance`**: Supports 480p, 720p, 1080p. * **`seedance-2.0`**: Supports 480p, 720p. * **`sora-2`**: Supports 720p. | `"720p"` | #### Example Snippet diff --git a/src/resources/v1/text-to-video/request-types.ts b/src/resources/v1/text-to-video/request-types.ts index c79ca9f..3283e9f 100644 --- a/src/resources/v1/text-to-video/request-types.ts +++ b/src/resources/v1/text-to-video/request-types.ts @@ -14,71 +14,62 @@ export type CreateRequest = { /** * Determines the aspect ratio of the output video. * - * * **`ltx-2`**: Supports 9:16, 16:9, 1:1. + * * **`ltx-2.3`**: Supports 9:16, 16:9, 1:1. * * **`wan-2.2`**: Supports 9:16, 16:9, 1:1. - * * **`seedance`**: Supports 9:16, 16:9, 1:1. - * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1. * * **`kling-2.5`**: Supports 9:16, 16:9, 1:1. * * **`kling-3.0`**: Supports 9:16, 16:9, 1:1. - * * **`sora-2`**: Supports 9:16, 16:9. - * * **`veo3.1`**: Supports 9:16, 16:9. * * **`veo3.1-lite`**: Supports 9:16, 16:9. + * * **`veo3.1`**: Supports 9:16, 16:9. + * * **`seedance`**: Supports 9:16, 16:9, 1:1. + * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1. + * * **`sora-2`**: Supports 9:16, 16:9. * - * Legacy models: - * * **`kling-1.6`**: Supports 9:16, 16:9, 1:1. */ aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined; /** * Whether to include audio in the video. Defaults to `false` if not specified. * * Audio support varies by model: - * * **`ltx-2`**: Automatically included with no extra credits + * * **`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`**: Not supported - * * **`seedance-2.0`**: Automatically included with no extra credits - * * **`kling-2.5`**: Automatically included with no extra credits - * * **`kling-3.0`**: Toggle-able (can enable/disable) - * * **`sora-2`**: Automatically included with no extra credits - * * **`veo3.1`**: Toggle-able (can enable/disable) - * * **`veo3.1-lite`**: Toggle-able (can enable/disable) + * * **`seedance-2.0`**: Toggle-able: no additional credits for audio + * * **`sora-2`**: Toggle-able: no additional credits for audio * - * Legacy models: - * * **`kling-1.6`**: Not supported */ audio?: boolean | undefined; /** * The total duration of the output video in seconds. Supported durations depend on the chosen model: * - * * **`ltx-2`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30 + * * **`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 - * * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 - * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * * **`kling-2.5`**: 5, 10 * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 - * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60 - * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56 + * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 + * * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 + * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 + * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60 * - * Legacy models: - * * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60 */ endSeconds: number; /** * 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`. - * * `ltx-2`: Fast iteration with audio and lip-sync + * * `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`: Fast iteration with audio, lip-sync, and end frame * * `wan-2.2`: Fast, strong visuals with effects - * * `seedance`: Fast iteration and start/end frames - * * `seedance-2.0`: State-of-the-art quality and consistency * * `kling-2.5`: Motion, action, and camera control * * `kling-3.0`: Cinematic, multi-scene storytelling - * * `sora-2`: Story-first concepts and creativity + * * `veo3.1-lite`: Fast, affordable, high-quality * * `veo3.1`: Realistic visuals and prompt adherence - * * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation. - * - * Legacy models: - * * `kling-1.6`: Reliable baseline with smooth motion + * * `seedance`: Fast iteration and start/end frames + * * `seedance-2.0`: State-of-the-art quality and consistency + * * `sora-2`: Story-first concepts and creativity * * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`. */ @@ -90,6 +81,7 @@ export type CreateRequest = { | "kling-2.5-audio" | "kling-3.0" | "ltx-2" + | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" @@ -110,20 +102,18 @@ export type CreateRequest = { /** * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers. * - * * **`ltx-2`**: Supports 480p, 720p, 1080p. + * * **`ltx-2.3`**: Supports 480p, 720p, 1080p. * * **`wan-2.2`**: Supports 480p, 720p, 1080p. + * * **`kling-2.5`**: Supports 720p, 1080p. + * * **`kling-3.0`**: Supports 720p, 1080p, 4k. + * * **`veo3.1-lite`**: Supports 720p, 1080p. + * * **`veo3.1`**: Supports 720p, 1080p. * * **`seedance`**: Supports 480p, 720p, 1080p. * * **`seedance-2.0`**: Supports 480p, 720p. - * * **`kling-2.5`**: Supports 720p, 1080p. - * * **`kling-3.0`**: Supports 720p, 1080p. * * **`sora-2`**: Supports 720p. - * * **`veo3.1`**: Supports 720p, 1080p. - * * **`veo3.1-lite`**: Supports 720p, 1080p. * - * Legacy models: - * * **`kling-1.6`**: Supports 720p, 1080p. */ - resolution?: ("1080p" | "480p" | "720p") | undefined; + resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined; style: V1TextToVideoCreateBodyStyle; }; @@ -144,6 +134,7 @@ export type External$CreateRequest = { | "kling-2.5-audio" | "kling-3.0" | "ltx-2" + | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" @@ -155,7 +146,7 @@ export type External$CreateRequest = { | undefined; name?: string | undefined; orientation?: ("landscape" | "portrait" | "square") | undefined; - resolution?: ("1080p" | "480p" | "720p") | undefined; + resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined; style: External$V1TextToVideoCreateBodyStyle; }; @@ -179,6 +170,7 @@ const SchemaIn$CreateRequest: z.ZodType< "kling-2.5-audio", "kling-3.0", "ltx-2", + "ltx-2.3", "seedance", "seedance-2.0", "sora-2", @@ -190,7 +182,7 @@ const SchemaIn$CreateRequest: z.ZodType< .optional(), name: z.string().optional(), orientation: z.enum(["landscape", "portrait", "square"]).optional(), - resolution: z.enum(["1080p", "480p", "720p"]).optional(), + resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(), style: Schemas$V1TextToVideoCreateBodyStyle.in, }) .transform((obj) => { @@ -227,6 +219,7 @@ const SchemaOut$CreateRequest: z.ZodType< "kling-2.5-audio", "kling-3.0", "ltx-2", + "ltx-2.3", "seedance", "seedance-2.0", "sora-2", @@ -238,7 +231,7 @@ const SchemaOut$CreateRequest: z.ZodType< .optional(), name: z.string().optional(), orientation: z.enum(["landscape", "portrait", "square"]).optional(), - resolution: z.enum(["1080p", "480p", "720p"]).optional(), + resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(), style: Schemas$V1TextToVideoCreateBodyStyle.out, }) .transform((obj) => { 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 5e1406e..8233e29 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 @@ -27,10 +27,15 @@ * - 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 * */ export type V1AiImageEditorCreateBodyModelEnum = | "default" + | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-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 f88fe72..bf98040 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 @@ -15,6 +15,7 @@ * - `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. */ diff --git a/src/types/v1-ai-image-editor-create-body.ts b/src/types/v1-ai-image-editor-create-body.ts index 0bebb08..42ebbf2 100644 --- a/src/types/v1-ai-image-editor-create-body.ts +++ b/src/types/v1-ai-image-editor-create-body.ts @@ -59,11 +59,16 @@ export type V1AiImageEditorCreateBody = { * - 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 * */ model?: | ( | "default" + | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" @@ -93,6 +98,7 @@ export type V1AiImageEditorCreateBody = { * - `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. */ @@ -114,6 +120,7 @@ export type External$V1AiImageEditorCreateBody = { model?: | ( | "default" + | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" @@ -144,6 +151,7 @@ const SchemaIn$V1AiImageEditorCreateBody: z.ZodType< model: z .enum([ "default", + "gpt-image-2", "nano-banana", "nano-banana-2", "nano-banana-pro", @@ -186,6 +194,7 @@ const SchemaOut$V1AiImageEditorCreateBody: z.ZodType< model: z .enum([ "default", + "gpt-image-2", "nano-banana", "nano-banana-2", "nano-banana-pro", 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 c828f9b..86bf50e 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 @@ -27,6 +27,10 @@ * - 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. @@ -35,6 +39,7 @@ export type V1AiImageGeneratorCreateBodyModelEnum = | "default" | "flux-schnell" + | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" 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 458e1a4..9898099 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 @@ -15,6 +15,7 @@ * - `nano-banana` - 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. */ diff --git a/src/types/v1-ai-image-generator-create-body.ts b/src/types/v1-ai-image-generator-create-body.ts index 80c648a..47d9a3c 100644 --- a/src/types/v1-ai-image-generator-create-body.ts +++ b/src/types/v1-ai-image-generator-create-body.ts @@ -48,6 +48,10 @@ export type V1AiImageGeneratorCreateBody = { * - 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. @@ -57,6 +61,7 @@ export type V1AiImageGeneratorCreateBody = { | ( | "default" | "flux-schnell" + | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" @@ -92,6 +97,7 @@ export type V1AiImageGeneratorCreateBody = { * - `nano-banana` - 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. */ @@ -114,6 +120,7 @@ export type External$V1AiImageGeneratorCreateBody = { | ( | "default" | "flux-schnell" + | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" @@ -143,6 +150,7 @@ const SchemaIn$V1AiImageGeneratorCreateBody: z.ZodType< .enum([ "default", "flux-schnell", + "gpt-image-2", "nano-banana", "nano-banana-2", "nano-banana-pro", @@ -184,6 +192,7 @@ const SchemaOut$V1AiImageGeneratorCreateBody: z.ZodType< .enum([ "default", "flux-schnell", + "gpt-image-2", "nano-banana", "nano-banana-2", "nano-banana-pro", diff --git a/src/types/v1-files-upload-urls-create-body-items-item.ts b/src/types/v1-files-upload-urls-create-body-items-item.ts index 2533997..f9887f0 100644 --- a/src/types/v1-files-upload-urls-create-body-items-item.ts +++ b/src/types/v1-files-upload-urls-create-body-items-item.ts @@ -6,7 +6,7 @@ import * as z from "zod"; */ export type V1FilesUploadUrlsCreateBodyItemsItem = { /** - * The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,m4a,png,jpg,jpeg,heic,webp,avif,jp2,tiff,bmp,gif,webp,webm + * The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,m4a,png,jpg,jpeg,heic,heif,webp,avif,jp2,tiff,bmp,gif,webp,webm */ extension: string; /** 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 e047654..c369479 100644 --- a/src/types/v1-image-to-video-create-body-assets.ts +++ b/src/types/v1-image-to-video-create-body-assets.ts @@ -8,18 +8,16 @@ export type V1ImageToVideoCreateBodyAssets = { /** * The image to use as the last frame of the video. * - * * **`ltx-2`**: Not supported + * * **`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`**: Supports 480p, 720p, 1080p. * * **`seedance-2.0`**: Supports 480p, 720p. - * * **`kling-2.5`**: Supports 1080p. - * * **`kling-3.0`**: Supports 1080p. * * **`sora-2`**: Not supported - * * **`veo3.1`**: Not supported - * * **`veo3.1-lite`**: Not supported * - * Legacy models: - * * **`kling-1.6`**: Not supported */ endImageFilePath?: string | undefined; /** diff --git a/src/types/v1-image-to-video-create-body-model-enum.ts b/src/types/v1-image-to-video-create-body-model-enum.ts index 4523131..ab770aa 100644 --- a/src/types/v1-image-to-video-create-body-model-enum.ts +++ b/src/types/v1-image-to-video-create-body-model-enum.ts @@ -1,19 +1,16 @@ /** * 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`. - * * `ltx-2`: Fast iteration with audio and lip-sync + * * `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`: Fast iteration with audio, lip-sync, and end frame * * `wan-2.2`: Fast, strong visuals with effects - * * `seedance`: Fast iteration and start/end frames - * * `seedance-2.0`: State-of-the-art quality and consistency * * `kling-2.5`: Motion, action, and camera control * * `kling-3.0`: Cinematic, multi-scene storytelling - * * `sora-2`: Story-first concepts and creativity + * * `veo3.1-lite`: Fast, affordable, high-quality * * `veo3.1`: Realistic visuals and prompt adherence - * * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation. - * - * Legacy models: - * * `kling-1.6`: Reliable baseline with smooth motion + * * `seedance`: Fast iteration and start/end frames + * * `seedance-2.0`: State-of-the-art quality and consistency + * * `sora-2`: Story-first concepts and creativity * * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`. */ @@ -24,6 +21,7 @@ export type V1ImageToVideoCreateBodyModelEnum = | "kling-2.5-audio" | "kling-3.0" | "ltx-2" + | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" diff --git a/src/types/v1-image-to-video-create-body-resolution-enum.ts b/src/types/v1-image-to-video-create-body-resolution-enum.ts index 5b63dd0..e688916 100644 --- a/src/types/v1-image-to-video-create-body-resolution-enum.ts +++ b/src/types/v1-image-to-video-create-body-resolution-enum.ts @@ -1,17 +1,19 @@ /** * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers. * - * * **`ltx-2`**: Supports 480p, 720p, 1080p. + * * **`ltx-2.3`**: Supports 480p, 720p, 1080p. * * **`wan-2.2`**: Supports 480p, 720p, 1080p. + * * **`kling-2.5`**: Supports 720p, 1080p. + * * **`kling-3.0`**: Supports 720p, 1080p, 4k. + * * **`veo3.1-lite`**: Supports 720p, 1080p. + * * **`veo3.1`**: Supports 720p, 1080p. * * **`seedance`**: Supports 480p, 720p, 1080p. * * **`seedance-2.0`**: Supports 480p, 720p. - * * **`kling-2.5`**: Supports 720p, 1080p. - * * **`kling-3.0`**: Supports 720p, 1080p. * * **`sora-2`**: Supports 720p. - * * **`veo3.1`**: Supports 720p, 1080p. - * * **`veo3.1-lite`**: Supports 720p, 1080p. * - * Legacy models: - * * **`kling-1.6`**: Supports 720p, 1080p. */ -export type V1ImageToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p"; +export type V1ImageToVideoCreateBodyResolutionEnum = + | "1080p" + | "480p" + | "4k" + | "720p"; diff --git a/src/types/v1-image-to-video-create-body.ts b/src/types/v1-image-to-video-create-body.ts index a3a3a7a..6ecbb1a 100644 --- a/src/types/v1-image-to-video-create-body.ts +++ b/src/types/v1-image-to-video-create-body.ts @@ -24,35 +24,31 @@ export type V1ImageToVideoCreateBody = { * Whether to include audio in the video. Defaults to `false` if not specified. * * Audio support varies by model: - * * **`ltx-2`**: Automatically included with no extra credits + * * **`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`**: Not supported - * * **`seedance-2.0`**: Automatically included with no extra credits - * * **`kling-2.5`**: Automatically included with no extra credits - * * **`kling-3.0`**: Toggle-able (can enable/disable) - * * **`sora-2`**: Automatically included with no extra credits - * * **`veo3.1`**: Toggle-able (can enable/disable) - * * **`veo3.1-lite`**: Toggle-able (can enable/disable) + * * **`seedance-2.0`**: Toggle-able: no additional credits for audio + * * **`sora-2`**: Toggle-able: no additional credits for audio * - * Legacy models: - * * **`kling-1.6`**: Not supported */ audio?: boolean | undefined; /** * The total duration of the output video in seconds. Supported durations depend on the chosen model: * - * * **`ltx-2`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30 + * * **`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 - * * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 - * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * * **`kling-2.5`**: 5, 10 * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 - * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60 - * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56 + * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 + * * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 + * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 + * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60 * - * Legacy models: - * * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60 */ endSeconds: number; /** @@ -64,19 +60,16 @@ export type V1ImageToVideoCreateBody = { /** * 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`. - * * `ltx-2`: Fast iteration with audio and lip-sync + * * `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`: Fast iteration with audio, lip-sync, and end frame * * `wan-2.2`: Fast, strong visuals with effects - * * `seedance`: Fast iteration and start/end frames - * * `seedance-2.0`: State-of-the-art quality and consistency * * `kling-2.5`: Motion, action, and camera control * * `kling-3.0`: Cinematic, multi-scene storytelling - * * `sora-2`: Story-first concepts and creativity + * * `veo3.1-lite`: Fast, affordable, high-quality * * `veo3.1`: Realistic visuals and prompt adherence - * * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation. - * - * Legacy models: - * * `kling-1.6`: Reliable baseline with smooth motion + * * `seedance`: Fast iteration and start/end frames + * * `seedance-2.0`: State-of-the-art quality and consistency + * * `sora-2`: Story-first concepts and creativity * * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`. */ @@ -88,6 +81,7 @@ export type V1ImageToVideoCreateBody = { | "kling-2.5-audio" | "kling-3.0" | "ltx-2" + | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" @@ -104,20 +98,18 @@ export type V1ImageToVideoCreateBody = { /** * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers. * - * * **`ltx-2`**: Supports 480p, 720p, 1080p. + * * **`ltx-2.3`**: Supports 480p, 720p, 1080p. * * **`wan-2.2`**: Supports 480p, 720p, 1080p. + * * **`kling-2.5`**: Supports 720p, 1080p. + * * **`kling-3.0`**: Supports 720p, 1080p, 4k. + * * **`veo3.1-lite`**: Supports 720p, 1080p. + * * **`veo3.1`**: Supports 720p, 1080p. * * **`seedance`**: Supports 480p, 720p, 1080p. * * **`seedance-2.0`**: Supports 480p, 720p. - * * **`kling-2.5`**: Supports 720p, 1080p. - * * **`kling-3.0`**: Supports 720p, 1080p. * * **`sora-2`**: Supports 720p. - * * **`veo3.1`**: Supports 720p, 1080p. - * * **`veo3.1-lite`**: Supports 720p, 1080p. * - * Legacy models: - * * **`kling-1.6`**: Supports 720p, 1080p. */ - resolution?: ("1080p" | "480p" | "720p") | undefined; + resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined; /** * Attributed used to dictate the style of the output */ @@ -148,6 +140,7 @@ export type External$V1ImageToVideoCreateBody = { | "kling-2.5-audio" | "kling-3.0" | "ltx-2" + | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" @@ -158,7 +151,7 @@ export type External$V1ImageToVideoCreateBody = { ) | undefined; name?: string | undefined; - resolution?: ("1080p" | "480p" | "720p") | undefined; + resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined; style?: External$V1ImageToVideoCreateBodyStyle | undefined; width?: number | null | undefined; }; @@ -184,6 +177,7 @@ const SchemaIn$V1ImageToVideoCreateBody: z.ZodType< "kling-2.5-audio", "kling-3.0", "ltx-2", + "ltx-2.3", "seedance", "seedance-2.0", "sora-2", @@ -194,7 +188,7 @@ const SchemaIn$V1ImageToVideoCreateBody: z.ZodType< ]) .optional(), name: z.string().optional(), - resolution: z.enum(["1080p", "480p", "720p"]).optional(), + resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(), style: Schemas$V1ImageToVideoCreateBodyStyle.in.optional(), width: z.number().int().nullable().optional(), }) @@ -234,6 +228,7 @@ const SchemaOut$V1ImageToVideoCreateBody: z.ZodType< "kling-2.5-audio", "kling-3.0", "ltx-2", + "ltx-2.3", "seedance", "seedance-2.0", "sora-2", @@ -244,7 +239,7 @@ const SchemaOut$V1ImageToVideoCreateBody: z.ZodType< ]) .optional(), name: z.string().optional(), - resolution: z.enum(["1080p", "480p", "720p"]).optional(), + resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(), style: Schemas$V1ImageToVideoCreateBodyStyle.out.optional(), width: z.number().int().nullable().optional(), }) diff --git a/src/types/v1-text-to-video-create-body-aspect-ratio-enum.ts b/src/types/v1-text-to-video-create-body-aspect-ratio-enum.ts index 2900a50..6fc847b 100644 --- a/src/types/v1-text-to-video-create-body-aspect-ratio-enum.ts +++ b/src/types/v1-text-to-video-create-body-aspect-ratio-enum.ts @@ -1,17 +1,15 @@ /** * Determines the aspect ratio of the output video. * - * * **`ltx-2`**: Supports 9:16, 16:9, 1:1. + * * **`ltx-2.3`**: Supports 9:16, 16:9, 1:1. * * **`wan-2.2`**: Supports 9:16, 16:9, 1:1. - * * **`seedance`**: Supports 9:16, 16:9, 1:1. - * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1. * * **`kling-2.5`**: Supports 9:16, 16:9, 1:1. * * **`kling-3.0`**: Supports 9:16, 16:9, 1:1. - * * **`sora-2`**: Supports 9:16, 16:9. - * * **`veo3.1`**: Supports 9:16, 16:9. * * **`veo3.1-lite`**: Supports 9:16, 16:9. + * * **`veo3.1`**: Supports 9:16, 16:9. + * * **`seedance`**: Supports 9:16, 16:9, 1:1. + * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1. + * * **`sora-2`**: Supports 9:16, 16:9. * - * Legacy models: - * * **`kling-1.6`**: Supports 9:16, 16:9, 1:1. */ export type V1TextToVideoCreateBodyAspectRatioEnum = "16:9" | "1:1" | "9:16"; diff --git a/src/types/v1-text-to-video-create-body-model-enum.ts b/src/types/v1-text-to-video-create-body-model-enum.ts index 70703b2..059caf3 100644 --- a/src/types/v1-text-to-video-create-body-model-enum.ts +++ b/src/types/v1-text-to-video-create-body-model-enum.ts @@ -1,19 +1,16 @@ /** * 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`. - * * `ltx-2`: Fast iteration with audio and lip-sync + * * `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`: Fast iteration with audio, lip-sync, and end frame * * `wan-2.2`: Fast, strong visuals with effects - * * `seedance`: Fast iteration and start/end frames - * * `seedance-2.0`: State-of-the-art quality and consistency * * `kling-2.5`: Motion, action, and camera control * * `kling-3.0`: Cinematic, multi-scene storytelling - * * `sora-2`: Story-first concepts and creativity + * * `veo3.1-lite`: Fast, affordable, high-quality * * `veo3.1`: Realistic visuals and prompt adherence - * * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation. - * - * Legacy models: - * * `kling-1.6`: Reliable baseline with smooth motion + * * `seedance`: Fast iteration and start/end frames + * * `seedance-2.0`: State-of-the-art quality and consistency + * * `sora-2`: Story-first concepts and creativity * * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`. */ @@ -24,6 +21,7 @@ export type V1TextToVideoCreateBodyModelEnum = | "kling-2.5-audio" | "kling-3.0" | "ltx-2" + | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" diff --git a/src/types/v1-text-to-video-create-body-resolution-enum.ts b/src/types/v1-text-to-video-create-body-resolution-enum.ts index 00a8ec7..304b079 100644 --- a/src/types/v1-text-to-video-create-body-resolution-enum.ts +++ b/src/types/v1-text-to-video-create-body-resolution-enum.ts @@ -1,17 +1,19 @@ /** * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers. * - * * **`ltx-2`**: Supports 480p, 720p, 1080p. + * * **`ltx-2.3`**: Supports 480p, 720p, 1080p. * * **`wan-2.2`**: Supports 480p, 720p, 1080p. + * * **`kling-2.5`**: Supports 720p, 1080p. + * * **`kling-3.0`**: Supports 720p, 1080p, 4k. + * * **`veo3.1-lite`**: Supports 720p, 1080p. + * * **`veo3.1`**: Supports 720p, 1080p. * * **`seedance`**: Supports 480p, 720p, 1080p. * * **`seedance-2.0`**: Supports 480p, 720p. - * * **`kling-2.5`**: Supports 720p, 1080p. - * * **`kling-3.0`**: Supports 720p, 1080p. * * **`sora-2`**: Supports 720p. - * * **`veo3.1`**: Supports 720p, 1080p. - * * **`veo3.1-lite`**: Supports 720p, 1080p. * - * Legacy models: - * * **`kling-1.6`**: Supports 720p, 1080p. */ -export type V1TextToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p"; +export type V1TextToVideoCreateBodyResolutionEnum = + | "1080p" + | "480p" + | "4k" + | "720p"; diff --git a/src/types/v1-text-to-video-create-body.ts b/src/types/v1-text-to-video-create-body.ts index 54e692f..1ef3ef6 100644 --- a/src/types/v1-text-to-video-create-body.ts +++ b/src/types/v1-text-to-video-create-body.ts @@ -14,71 +14,62 @@ export type V1TextToVideoCreateBody = { /** * Determines the aspect ratio of the output video. * - * * **`ltx-2`**: Supports 9:16, 16:9, 1:1. + * * **`ltx-2.3`**: Supports 9:16, 16:9, 1:1. * * **`wan-2.2`**: Supports 9:16, 16:9, 1:1. - * * **`seedance`**: Supports 9:16, 16:9, 1:1. - * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1. * * **`kling-2.5`**: Supports 9:16, 16:9, 1:1. * * **`kling-3.0`**: Supports 9:16, 16:9, 1:1. - * * **`sora-2`**: Supports 9:16, 16:9. - * * **`veo3.1`**: Supports 9:16, 16:9. * * **`veo3.1-lite`**: Supports 9:16, 16:9. + * * **`veo3.1`**: Supports 9:16, 16:9. + * * **`seedance`**: Supports 9:16, 16:9, 1:1. + * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1. + * * **`sora-2`**: Supports 9:16, 16:9. * - * Legacy models: - * * **`kling-1.6`**: Supports 9:16, 16:9, 1:1. */ aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined; /** * Whether to include audio in the video. Defaults to `false` if not specified. * * Audio support varies by model: - * * **`ltx-2`**: Automatically included with no extra credits + * * **`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`**: Not supported - * * **`seedance-2.0`**: Automatically included with no extra credits - * * **`kling-2.5`**: Automatically included with no extra credits - * * **`kling-3.0`**: Toggle-able (can enable/disable) - * * **`sora-2`**: Automatically included with no extra credits - * * **`veo3.1`**: Toggle-able (can enable/disable) - * * **`veo3.1-lite`**: Toggle-able (can enable/disable) + * * **`seedance-2.0`**: Toggle-able: no additional credits for audio + * * **`sora-2`**: Toggle-able: no additional credits for audio * - * Legacy models: - * * **`kling-1.6`**: Not supported */ audio?: boolean | undefined; /** * The total duration of the output video in seconds. Supported durations depend on the chosen model: * - * * **`ltx-2`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30 + * * **`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 - * * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 - * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 * * **`kling-2.5`**: 5, 10 * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 - * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60 - * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 * * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56 + * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56 + * * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 + * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 + * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60 * - * Legacy models: - * * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60 */ endSeconds: number; /** * 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`. - * * `ltx-2`: Fast iteration with audio and lip-sync + * * `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`: Fast iteration with audio, lip-sync, and end frame * * `wan-2.2`: Fast, strong visuals with effects - * * `seedance`: Fast iteration and start/end frames - * * `seedance-2.0`: State-of-the-art quality and consistency * * `kling-2.5`: Motion, action, and camera control * * `kling-3.0`: Cinematic, multi-scene storytelling - * * `sora-2`: Story-first concepts and creativity + * * `veo3.1-lite`: Fast, affordable, high-quality * * `veo3.1`: Realistic visuals and prompt adherence - * * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation. - * - * Legacy models: - * * `kling-1.6`: Reliable baseline with smooth motion + * * `seedance`: Fast iteration and start/end frames + * * `seedance-2.0`: State-of-the-art quality and consistency + * * `sora-2`: Story-first concepts and creativity * * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`. */ @@ -90,6 +81,7 @@ export type V1TextToVideoCreateBody = { | "kling-2.5-audio" | "kling-3.0" | "ltx-2" + | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" @@ -110,20 +102,18 @@ export type V1TextToVideoCreateBody = { /** * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers. * - * * **`ltx-2`**: Supports 480p, 720p, 1080p. + * * **`ltx-2.3`**: Supports 480p, 720p, 1080p. * * **`wan-2.2`**: Supports 480p, 720p, 1080p. + * * **`kling-2.5`**: Supports 720p, 1080p. + * * **`kling-3.0`**: Supports 720p, 1080p, 4k. + * * **`veo3.1-lite`**: Supports 720p, 1080p. + * * **`veo3.1`**: Supports 720p, 1080p. * * **`seedance`**: Supports 480p, 720p, 1080p. * * **`seedance-2.0`**: Supports 480p, 720p. - * * **`kling-2.5`**: Supports 720p, 1080p. - * * **`kling-3.0`**: Supports 720p, 1080p. * * **`sora-2`**: Supports 720p. - * * **`veo3.1`**: Supports 720p, 1080p. - * * **`veo3.1-lite`**: Supports 720p, 1080p. * - * Legacy models: - * * **`kling-1.6`**: Supports 720p, 1080p. */ - resolution?: ("1080p" | "480p" | "720p") | undefined; + resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined; style: V1TextToVideoCreateBodyStyle; }; @@ -144,6 +134,7 @@ export type External$V1TextToVideoCreateBody = { | "kling-2.5-audio" | "kling-3.0" | "ltx-2" + | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" @@ -155,7 +146,7 @@ export type External$V1TextToVideoCreateBody = { | undefined; name?: string | undefined; orientation?: ("landscape" | "portrait" | "square") | undefined; - resolution?: ("1080p" | "480p" | "720p") | undefined; + resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined; style: External$V1TextToVideoCreateBodyStyle; }; @@ -179,6 +170,7 @@ const SchemaIn$V1TextToVideoCreateBody: z.ZodType< "kling-2.5-audio", "kling-3.0", "ltx-2", + "ltx-2.3", "seedance", "seedance-2.0", "sora-2", @@ -190,7 +182,7 @@ const SchemaIn$V1TextToVideoCreateBody: z.ZodType< .optional(), name: z.string().optional(), orientation: z.enum(["landscape", "portrait", "square"]).optional(), - resolution: z.enum(["1080p", "480p", "720p"]).optional(), + resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(), style: Schemas$V1TextToVideoCreateBodyStyle.in, }) .transform((obj) => { @@ -227,6 +219,7 @@ const SchemaOut$V1TextToVideoCreateBody: z.ZodType< "kling-2.5-audio", "kling-3.0", "ltx-2", + "ltx-2.3", "seedance", "seedance-2.0", "sora-2", @@ -238,7 +231,7 @@ const SchemaOut$V1TextToVideoCreateBody: z.ZodType< .optional(), name: z.string().optional(), orientation: z.enum(["landscape", "portrait", "square"]).optional(), - resolution: z.enum(["1080p", "480p", "720p"]).optional(), + resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(), style: Schemas$V1TextToVideoCreateBodyStyle.out, }) .transform((obj) => { diff --git a/src/types/v1-video-projects-get-response.ts b/src/types/v1-video-projects-get-response.ts index 7f61602..18cf5a3 100644 --- a/src/types/v1-video-projects-get-response.ts +++ b/src/types/v1-video-projects-get-response.ts @@ -76,7 +76,7 @@ export type V1VideoProjectsGetResponse = { */ totalFrameCost: number; /** - * The type of the video project. Possible values are ANIMATION, AUTO_SUBTITLE, VIDEO_TO_VIDEO, FACE_SWAP, TEXT_TO_VIDEO, IMAGE_TO_VIDEO, LIP_SYNC, TALKING_PHOTO, VIDEO_UPSCALER, EXTEND, AUDIO_TO_VIDEO, UGC_AD + * The type of the video project. Possible values are ANIMATION, AUTO_SUBTITLE, VIDEO_TO_VIDEO, FACE_SWAP, TEXT_TO_VIDEO, IMAGE_TO_VIDEO, LIP_SYNC, TALKING_PHOTO, VIDEO_UPSCALER, EXTEND, AUDIO_TO_VIDEO, VIDEO_EXPANDER, UGC_AD */ type: string; /**