From 0ec5d9ee9aa61888334db46c4d9b3ea2100ff755 Mon Sep 17 00:00:00 2001 From: "sdk-github-actions[bot]" Date: Wed, 27 May 2026 17:19:08 +0000 Subject: [PATCH 1/2] chore(release): auto --- .sdk.json | 42 +- README.md | 4 + package-lock.json | 4 +- package.json | 2 +- src/README.md | 1 + src/environment.ts | 2 +- src/resources/v1/README.md | 1 + src/resources/v1/ai-image-editor/README.md | 26 +- .../v1/ai-image-editor/request-types.ts | 6 +- src/resources/v1/ai-image-generator/README.md | 24 +- .../v1/ai-image-generator/request-types.ts | 6 +- src/resources/v1/ai-voice-generator/README.md | 12 +- src/resources/v1/audio-to-video/README.md | 77 ++ src/resources/v1/audio-to-video/index.ts | 2 + .../v1/audio-to-video/request-types.ts | 117 ++ .../v1/audio-to-video/resource-client.ts | 61 + src/resources/v1/image-to-video/README.md | 32 +- .../v1/image-to-video/request-types.ts | 4 +- src/resources/v1/index.ts | 1 + src/resources/v1/resource-client.ts | 14 + src/resources/v1/text-to-video/README.md | 24 +- .../v1/text-to-video/request-types.ts | 4 +- src/types/index.ts | 5 + ...-ai-image-editor-create-body-model-enum.ts | 6 +- src/types/v1-ai-image-editor-create-body.ts | 6 +- ...-image-generator-create-body-model-enum.ts | 6 +- .../v1-ai-image-generator-create-body.ts | 6 +- ...rator-create-body-style-voice-name-enum.ts | 299 ++++- ...v1-ai-voice-generator-create-body-style.ts | 1186 ++++++++++++++++- src/types/v1-audio-projects-get-response.ts | 2 +- .../v1-audio-to-video-create-body-assets.ts | 80 ++ ...io-to-video-create-body-resolution-enum.ts | 4 + .../v1-audio-to-video-create-body-style.ts | 61 + src/types/v1-audio-to-video-create-body.ts | 117 ++ .../v1-audio-to-video-create-response.ts | 83 ++ src/types/v1-image-projects-get-response.ts | 2 +- ...1-image-to-video-create-body-model-enum.ts | 2 +- src/types/v1-image-to-video-create-body.ts | 4 +- ...v1-text-to-video-create-body-model-enum.ts | 2 +- src/types/v1-text-to-video-create-body.ts | 4 +- test/v1-audio-to-video.test.ts | 43 + 41 files changed, 2285 insertions(+), 99 deletions(-) create mode 100644 src/resources/v1/audio-to-video/README.md create mode 100644 src/resources/v1/audio-to-video/index.ts create mode 100644 src/resources/v1/audio-to-video/request-types.ts create mode 100644 src/resources/v1/audio-to-video/resource-client.ts create mode 100644 src/types/v1-audio-to-video-create-body-assets.ts create mode 100644 src/types/v1-audio-to-video-create-body-resolution-enum.ts create mode 100644 src/types/v1-audio-to-video-create-body-style.ts create mode 100644 src/types/v1-audio-to-video-create-body.ts create mode 100644 src/types/v1-audio-to-video-create-response.ts create mode 100644 test/v1-audio-to-video.test.ts diff --git a/.sdk.json b/.sdk.json index b918d86..fa3468c 100644 --- a/.sdk.json +++ b/.sdk.json @@ -1,5 +1,5 @@ { - "id": "e1aa8e76-9440-4f9f-b62a-82a8a01e5fc4", + "id": "280cd948-5610-418c-8e67-805c2f1ecd3f", "tracked_paths": [ { "editable": true, @@ -273,6 +273,22 @@ "editable": true, "path": "src/resources/v1/audio-projects/resource-client.ts" }, + { + "editable": true, + "path": "src/resources/v1/audio-to-video/README.md" + }, + { + "editable": true, + "path": "src/resources/v1/audio-to-video/index.ts" + }, + { + "editable": false, + "path": "src/resources/v1/audio-to-video/request-types.ts" + }, + { + "editable": true, + "path": "src/resources/v1/audio-to-video/resource-client.ts" + }, { "editable": true, "path": "src/resources/v1/auto-subtitle-generator/README.md" @@ -825,6 +841,26 @@ "editable": false, "path": "src/types/v1-audio-projects-get-response.ts" }, + { + "editable": false, + "path": "src/types/v1-audio-to-video-create-body-assets.ts" + }, + { + "editable": false, + "path": "src/types/v1-audio-to-video-create-body-resolution-enum.ts" + }, + { + "editable": false, + "path": "src/types/v1-audio-to-video-create-body-style.ts" + }, + { + "editable": false, + "path": "src/types/v1-audio-to-video-create-body.ts" + }, + { + "editable": false, + "path": "src/types/v1-audio-to-video-create-response.ts" + }, { "editable": false, "path": "src/types/v1-auto-subtitle-generator-create-body-assets.ts" @@ -1213,6 +1249,10 @@ "editable": false, "path": "test/v1-audio-projects.test.ts" }, + { + "editable": false, + "path": "test/v1-audio-to-video.test.ts" + }, { "editable": false, "path": "test/v1-auto-subtitle-generator.test.ts" diff --git a/README.md b/README.md index e1bb4b1..3a0bd59 100644 --- a/README.md +++ b/README.md @@ -272,6 +272,10 @@ Valid values are: `none`, `error`, `warn`, `info`, `debug` (case insensitive). I - [delete](src/resources/v1/audio-projects/README.md#delete) - Delete audio - [get](src/resources/v1/audio-projects/README.md#get) - Get audio details +### [v1.audioToVideo](src/resources/v1/audio-to-video/README.md) + +- [create](src/resources/v1/audio-to-video/README.md#create) - Audio-to-Video + ### [v1.autoSubtitleGenerator](src/resources/v1/auto-subtitle-generator/README.md) - [create](src/resources/v1/auto-subtitle-generator/README.md#create) - Auto Subtitle Generator diff --git a/package-lock.json b/package-lock.json index 73bcdc0..6758847 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "magic-hour", - "version": "0.62.0", + "version": "0.63.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "magic-hour", - "version": "0.62.0", + "version": "0.63.0", "license": "MIT", "dependencies": { "make-api-request-js": "^0.2.1", diff --git a/package.json b/package.json index f41aeb9..022579c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "magic-hour", - "version": "0.62.0", + "version": "0.63.0", "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { diff --git a/src/README.md b/src/README.md index 031c9f2..6a8b85e 100644 --- a/src/README.md +++ b/src/README.md @@ -16,6 +16,7 @@ - [ai-voice-generator](resources/v1/ai-voice-generator/README.md) - ai-voice-generator - [animation](resources/v1/animation/README.md) - animation - [audio-projects](resources/v1/audio-projects/README.md) - audio-projects +- [audio-to-video](resources/v1/audio-to-video/README.md) - audio-to-video - [auto-subtitle-generator](resources/v1/auto-subtitle-generator/README.md) - auto-subtitle-generator - [body-swap](resources/v1/body-swap/README.md) - body-swap - [face-detection](resources/v1/face-detection/README.md) - face-detection diff --git a/src/environment.ts b/src/environment.ts index ae4b51b..33d0d42 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.63.0", + MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.64.0", } diff --git a/src/resources/v1/README.md b/src/resources/v1/README.md index 8bac326..3da9c60 100644 --- a/src/resources/v1/README.md +++ b/src/resources/v1/README.md @@ -16,6 +16,7 @@ - [ai-voice-generator](ai-voice-generator/README.md) - ai-voice-generator - [animation](animation/README.md) - animation - [audio-projects](audio-projects/README.md) - audio-projects +- [audio-to-video](audio-to-video/README.md) - audio-to-video - [auto-subtitle-generator](auto-subtitle-generator/README.md) - auto-subtitle-generator - [body-swap](body-swap/README.md) - body-swap - [face-detection](face-detection/README.md) - face-detection diff --git a/src/resources/v1/ai-image-editor/README.md b/src/resources/v1/ai-image-editor/README.md index 560b845..c1811aa 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 - `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"` | +| 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: creator, pro, business - Max additional input images: 9 - `nano-banana-2` - from 100 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Max additional input images: 9 - `seedream-v4` - from 40 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Max additional input images: 9 - `nano-banana-pro` - from 150 credits/image - Supported resolutions: 1k, 2k, 4k - Available for tiers: creator, pro, business - Max additional input images: 9 - `seedream-v4.5` - from 50 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Max additional input images: 9 - `gpt-image-2` - from 50 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Max additional input images: 9 | `"default"` | +| `name` | ✗ | Give your image a custom name for easy identification. | `"My Ai Image Editor image"` | +| `resolution` | ✗ | Maximum resolution (longest edge) for the output image. **Options:** - `640px` — up to 640px - `1k` — up to 1024px - `2k` — up to 2048px - `4k` — up to 4096px - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports **Per-model support:** - `qwen-edit` - 640px, 1k, 2k - `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 195bf24..b5de1b6 100644 --- a/src/resources/v1/ai-image-editor/request-types.ts +++ b/src/resources/v1/ai-image-editor/request-types.ts @@ -41,15 +41,15 @@ export type CreateRequest = { * - Max additional input images: 2 * - `nano-banana` - from 50 credits/image * - Supported resolutions: 640px, 1k - * - Available for tiers: free, creator, pro, business + * - Available for tiers: creator, pro, business * - Max additional input images: 9 * - `nano-banana-2` - from 100 credits/image * - Supported resolutions: 640px, 1k, 2k, 4k - * - Available for tiers: free, creator, pro, business + * - Available for tiers: creator, pro, business * - Max additional input images: 9 * - `seedream-v4` - from 40 credits/image * - Supported resolutions: 640px, 1k, 2k, 4k - * - Available for tiers: free, creator, pro, business + * - Available for tiers: creator, pro, business * - Max additional input images: 9 * - `nano-banana-pro` - from 150 credits/image * - Supported resolutions: 1k, 2k, 4k diff --git a/src/resources/v1/ai-image-generator/README.md b/src/resources/v1/ai-image-generator/README.md index 81e5d23..49fd32e 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 - `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"` | +| 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: creator, pro, business - Image count allowed: 1, 2, 3, 4 - `nano-banana` - from 50 credits/image - Supported resolutions: 640px, 1k - Available for tiers: creator, pro, business - Image count allowed: 1, 2, 3, 4 - `nano-banana-2` - from 100 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Image count allowed: 1, 4, 9, 16 - `nano-banana-pro` - from 150 credits/image - Supported resolutions: 1k, 2k, 4k - Available for tiers: creator, pro, business - Image count allowed: 1, 4, 9, 16 - `gpt-image-2` - from 50 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Image count allowed: 1, 2, 3, 4 **Deprecated Enum Values:** - `seedream` - Use `seedream-v4` instead. | `"default"` | +| `name` | ✗ | ✗ | Give your image a custom name for easy identification. | `"My Ai Image image"` | +| `orientation` | ✗ | ✓ | DEPRECATED: Use `aspect_ratio` instead. The orientation of the output image(s). `aspect_ratio` takes precedence when `orientation` if both are provided. | `"landscape"` | +| `resolution` | ✗ | ✗ | Maximum resolution (longest edge) for the output image. **Options:** - `640px` — up to 640px - `1k` — up to 1024px - `2k` — up to 2048px - `4k` — up to 4096px - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports **Per-model support:** - `flux-schnell` - 640px, 1k, 2k - `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 8d5fc5e..93bbfb5 100644 --- a/src/resources/v1/ai-image-generator/request-types.ts +++ b/src/resources/v1/ai-image-generator/request-types.ts @@ -34,15 +34,15 @@ export type CreateRequest = { * - 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 + * - Available for tiers: creator, pro, business * - Image count allowed: 1, 2, 3, 4 * - `nano-banana` - from 50 credits/image * - Supported resolutions: 640px, 1k - * - Available for tiers: free, creator, pro, business + * - Available for tiers: creator, pro, business * - Image count allowed: 1, 2, 3, 4 * - `nano-banana-2` - from 100 credits/image * - Supported resolutions: 640px, 1k, 2k, 4k - * - Available for tiers: free, creator, pro, business + * - Available for tiers: creator, pro, business * - Image count allowed: 1, 4, 9, 16 * - `nano-banana-pro` - from 150 credits/image * - Supported resolutions: 1k, 2k, 4k diff --git a/src/resources/v1/ai-voice-generator/README.md b/src/resources/v1/ai-voice-generator/README.md index 46a71f8..aea62bc 100644 --- a/src/resources/v1/ai-voice-generator/README.md +++ b/src/resources/v1/ai-voice-generator/README.md @@ -53,12 +53,12 @@ Generate speech from text. Each character costs 0.05 credits. The cost is rounde #### Parameters -| Parameter | Required | Description | Example | -| -------------- | :------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | -| `style` | ✓ | The content used to generate speech. | `{"prompt": "Hello, how are you?", "voiceName": "Elon Musk"}` | -| `└─ prompt` | ✓ | Text used to generate speech. The character limit is 1000 characters. | `"Hello, how are you?"` | -| `└─ voiceName` | ✓ | The voice to use for the speech. Available voices: Elon Musk, Mark Zuckerberg, Joe Rogan, Barack Obama, Morgan Freeman, Kanye West, Donald Trump, Joe Biden, Kim Kardashian, Taylor Swift, James Earl Jones, Samuel L. Jackson, Jeff Goldblum, David Attenborough, Sean Connery, Cillian Murphy, Anne Hathaway, Julia Roberts, Natalie Portman, Steve Carell, Amy Poehler, Stephen Colbert, Jimmy Fallon, David Letterman, Alex Trebek, Katy Perry, Prince, Kevin Bacon, Tom Hiddleston, Adam Driver, Alan Rickman, Alexz Johnson, Ana Gasteyer, Andrew Rannells, Arden Cho, Bear Grylls, Ben McKenzie, Ben Stiller, Ben Whishaw, Billie Joe Armstrong, Bingbing Li, Booboo Stewart, Bradley Steven Perry, Bruno Mars, Caity Lotz, Cameron Boyce, Candice Accola, Carrie Underwood, Casey Affleck, Caterina Scorsone, Cedric the Entertainer, Chace Crawford, Chadwick Boseman, Charlie Day, Chris Hemsworth, Chris Martin, Christopher Mintz-Plasse, Dan Fogler, Dan Stevens, Daniel Dae Kim, Danielle Panabaker, Dave Bautista, David Schwimmer, Denis Leary, Derek Mears, Diego Luna, Donald Glover, Donnie Yen, Doutzen Kroes, Dove Cameron, Dr. Dre, Drake Bell, Elle Fanning, Ernie Hudson, Fergie, Forest Whitaker, Francia Raisa, Freddie Highmore, Gillian Jacobs, Gina Carano, Ginnifer Goodwin, Gordon Ramsay, Guy Pearce, Gwendoline Christie, Hailee Steinfeld, Howie Mandel, Hugh Jackman, Hugh Laurie, J. K. Simmons, Jack Black, Jared Leto, Jennifer Carpenter, Kesha, Kris Jenner, Kristen Bell, Lorde, Matt Smith, Marilyn Monroe, Charlie Chaplin, Albert Einstein, Abraham Lincoln, John F. Kennedy, Lucille Ball, A.R. Rahman, Aamir Khan, Ajay Devgn, Akshay Kumar, Alain Delon, Alan Alda, Alan Cumming, Amitabh Bachchan, Ang Lee, Ansel Elgort, Anthony Anderson, Anthony Mackie, Armie Hammer, Asa Butterfield, B.J. Novak, Barbara Eden, Betty White, Bill Nighy, Bill Pullman, Blake Shelton, Bonnie Wright, Brad Paisley, Brendan Gleeson, Brian Cox, Bruno Ganz, Burt Reynolds, Carrie Fisher, Charles Dance, Chiwetel Ejiofor, Chris Pine, Christina Hendricks, Christina Ricci, Cyndi Lauper, Dakota Fanning, Damian Lewis, Dan Aykroyd, Daniel Craig, David Oyelowo, David Tennant, Diane Keaton, Diane Kruger, Dick Van Dyke, Domhnall Gleeson, Dominic Cooper, Donald Sutherland, Drew Carey, Eartha Kitt, Eddie Izzard, Edward Asner, Eli Roth, Elisabeth Moss, Ellen Burstyn, Emile Hirsch, Ezra Miller, Felicity Jones, Fiona Shaw, Florence Henderson, Freida Pinto, Geena Davis, Gemma Arterton, Geri Halliwell, Glenn Close, Gloria Steinem, Greta Gerwig, Gugu Mbatha-Raw, Hans Zimmer, Harry Connick Jr., Harvey Keitel, Helena Bonham Carter, Henry Cavill, Hilary Swank, Hugh Bonneville, Idina Menzel, Imelda Staunton, Ingrid Bergman, Irrfan Khan, Isla Fisher, Iwan Rheon, Jack Lemmon, Janet Jackson, Jason Bateman, Jason Segel, Jennifer Coolidge, Johnny Galecki, Jon Favreau, Joseph Gordon-Levitt, Josh Brolin, Josh Gad, Josh Groban, Julia Louis-Dreyfus, Kristen Stewart, Kristen Wiig, Rooney Mara, Caitriona Balfe, J.J. Abrams, Zoe Saldana | `"Elon Musk"` | -| `name` | ✗ | Give your audio a custom name for easy identification. | `"My Voice Generator audio"` | +| Parameter | Required | Description | Example | +| -------------- | :------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | +| `style` | ✓ | The content used to generate speech. | `{"prompt": "Hello, how are you?", "voiceName": "Elon Musk"}` | +| `└─ prompt` | ✓ | Text used to generate speech. The character limit is 1000 characters. | `"Hello, how are you?"` | +| `└─ voiceName` | ✓ | The voice to use for the speech. Available voices: Elon Musk, Mark Zuckerberg, Joe Rogan, Barack Obama, Morgan Freeman, Kanye West, Donald Trump, Joe Biden, Kim Kardashian, Taylor Swift, James Earl Jones, Samuel L. Jackson, Jeff Goldblum, David Attenborough, Sean Connery, Cillian Murphy, Anne Hathaway, Julia Roberts, Natalie Portman, Steve Carell, Amy Poehler, Stephen Colbert, Jimmy Fallon, David Letterman, Alex Trebek, Katy Perry, Prince, Kevin Bacon, Tom Hiddleston, Adam Driver, Alan Rickman, Alexz Johnson, Ana Gasteyer, Andrew Rannells, Arden Cho, Bear Grylls, Ben McKenzie, Ben Stiller, Ben Whishaw, Billie Joe Armstrong, Bingbing Li, Booboo Stewart, Bradley Steven Perry, Bruno Mars, Caity Lotz, Cameron Boyce, Candice Accola, Carrie Underwood, Casey Affleck, Caterina Scorsone, Cedric the Entertainer, Chace Crawford, Chadwick Boseman, Charlie Day, Chris Hemsworth, Chris Martin, Christopher Mintz-Plasse, Dan Fogler, Dan Stevens, Daniel Dae Kim, Danielle Panabaker, Dave Bautista, David Schwimmer, Denis Leary, Derek Mears, Diego Luna, Donald Glover, Donnie Yen, Doutzen Kroes, Dove Cameron, Dr. Dre, Drake Bell, Elle Fanning, Ernie Hudson, Fergie, Forest Whitaker, Francia Raisa, Freddie Highmore, Gillian Jacobs, Gina Carano, Ginnifer Goodwin, Gordon Ramsay, Guy Pearce, Gwendoline Christie, Hailee Steinfeld, Howie Mandel, Hugh Jackman, Hugh Laurie, J. K. Simmons, Jack Black, Jared Leto, Jennifer Carpenter, Kesha, Kris Jenner, Kristen Bell, Lorde, Matt Smith, Marilyn Monroe, Charlie Chaplin, Albert Einstein, Abraham Lincoln, John F. Kennedy, Lucille Ball, A.R. Rahman, Aamir Khan, Ajay Devgn, Akshay Kumar, Alain Delon, Alan Alda, Alan Cumming, Amitabh Bachchan, Ang Lee, Ansel Elgort, Anthony Anderson, Anthony Mackie, Armie Hammer, Asa Butterfield, B.J. Novak, Barbara Eden, Betty White, Bill Nighy, Bill Pullman, Blake Shelton, Bonnie Wright, Brad Paisley, Brendan Gleeson, Brian Cox, Bruno Ganz, Burt Reynolds, Carrie Fisher, Charles Dance, Chiwetel Ejiofor, Chris Pine, Christina Hendricks, Christina Ricci, Cyndi Lauper, Dakota Fanning, Damian Lewis, Dan Aykroyd, Daniel Craig, David Oyelowo, David Tennant, Diane Keaton, Diane Kruger, Dick Van Dyke, Domhnall Gleeson, Dominic Cooper, Donald Sutherland, Drew Carey, Eartha Kitt, Eddie Izzard, Edward Asner, Eli Roth, Elisabeth Moss, Ellen Burstyn, Emile Hirsch, Ezra Miller, Felicity Jones, Fiona Shaw, Florence Henderson, Freida Pinto, Geena Davis, Gemma Arterton, Geri Halliwell, Glenn Close, Gloria Steinem, Greta Gerwig, Gugu Mbatha-Raw, Hans Zimmer, Harry Connick Jr., Harvey Keitel, Helena Bonham Carter, Henry Cavill, Hilary Swank, Hugh Bonneville, Idina Menzel, Imelda Staunton, Ingrid Bergman, Irrfan Khan, Isla Fisher, Iwan Rheon, Jack Lemmon, Janet Jackson, Jason Bateman, Jason Segel, Jennifer Coolidge, Johnny Galecki, Jon Favreau, Joseph Gordon-Levitt, Josh Brolin, Josh Gad, Josh Groban, Julia Louis-Dreyfus, Kristen Stewart, Kristen Wiig, Rooney Mara, Caitriona Balfe, J.J. Abrams, Zoe Saldana, SpongeBob SquarePants, Patrick Star, Squidward Tentacles, Homer Simpson, Bart Simpson, Peter Griffin, Stewie Griffin, Eric Cartman, Rick Sanchez, Bugs Bunny, Mickey Mouse, Donald Duck, Shrek, Donkey (Shrek), Elsa (Frozen), Woody (Toy Story), Buzz Lightyear, Scooby-Doo, Shaggy Rogers, Bender (Futurama), Optimus Prime, Batman (Animated), The Joker (Animated), Darth Vader, Yoda, Gollum Smeagol, Gandalf, Winnie the Pooh, Kermit the Frog, Elmo, SpiderMan (Tom Holland ver.), Mario, Luigi, Sonic the Hedgehog, Naruto Uzumaki, Goku, Vegeta, Light Yagami, Luffy (One Piece), Edward Elric, Eren Jaeger, Levi Ackerman, Tanjiro Kamado, All Might, GLaDOS, Master Chief, Kratos, Arthur Morgan, Geralt of Rivia, Dwayne 'The Rock' Johnson, LeBron James, Shaquille O'Neal, Conor McGregor, Mike Tyson, Kobe Bryant, Floyd Mayweather, Cristiano Ronaldo, Lionel Messi, Serena Williams, Tom Brady, Stephen Curry, John Cena, Hulk Hogan, Stone Cold Steve Austin, The Undertaker, Nate Diaz, Charles Barkley, Shannon Sharpe, Drake, Beyonce, Rihanna, Eminem, Snoop Dogg, Jay-Z, Ed Sheeran, Billie Eilish, Ariana Grande, Adele, Post Malone, Travis Scott, Nicki Minaj, Cardi B, Doja Cat, Bad Bunny, Shakira, Justin Bieber, Sabrina Carpenter, Chappell Roan, Dua Lipa, The Weeknd, Miley Cyrus, Lady Gaga, Kendrick Lamar, Ozzy Osbourne, Freddie Mercury, Elvis Presley, Bob Marley, Frank Sinatra, MrBeast, PewDiePie, Kai Cenat, IShowSpeed, Markiplier, Jacksepticeye, KSI, Logan Paul, Jake Paul, Dream (Minecraft), Corpse Husband, xQc, Pokimane, Valkyrae, Ninja, Joe Scott, Linus (LTT), Ryan Reynolds, Tom Hanks, Robert Downey Jr., Will Smith, Denzel Washington, Leonardo DiCaprio, Brad Pitt, Keanu Reeves, Nicolas Cage, Al Pacino, Robert De Niro, Arnold Schwarzenegger, Sylvester Stallone, Vin Diesel, Jason Statham, Tom Cruise, Johnny Depp, Scarlett Johansson, Angelina Jolie, Jennifer Aniston, Emma Watson, Margot Robbie, Sydney Sweeney, Zendaya, Timothee Chalamet, Pedro Pascal, Oscar Isaac, Benedict Cumberbatch, Ian McKellen, Patrick Stewart, Christopher Walken, Matthew McConaughey, Harrison Ford, Mark Wahlberg, Owen Wilson, Seth Rogen, Kevin Hart, Adam Sandler, Jim Carrey, Eddie Murphy, Robin Williams, Will Ferrell, Melissa McCarthy, Awkwafina, Jason Momoa, Idris Elba, Tom Hardy, Michael B. Jordan, Austin Butler, Glen Powell, Paul Giamatti, Bryan Cranston, Bob Odenkirk, Vladimir Putin, Queen Elizabeth II, Winston Churchill, Martin Luther King Jr., Kamala Harris, Bernie Sanders, Alexandria Ocasio-Cortez, Narendra Modi, Oprah Winfrey, Ellen DeGeneres, Dr. Phil, Steve Harvey, Trevor Noah, John Oliver, James Corden, Ryan Seacrest, Howard Stern, Conan O'Brien, Seth Meyers, Bill Nye, Neil deGrasse Tyson, Guy Fieri, Dave Chappelle, Chris Rock, Jerry Seinfeld, Ali Wong, John Mulaney, Hasan Minhaj, Nikki Glaser, Matt Rife, Gabriel Iglesias, Bo Burnham, Jeff Bezos, Bill Gates, Steve Jobs, Tim Cook, Sam Altman, Jensen Huang, Gilbert Gottfried, James May, Jeremy Clarkson, Richard Hammond, Bob Ross, Anthony Bourdain, David Goggins, Jordan Peterson, Joe Pesci, Danny DeVito, Seth MacFarlane, Patrick Warburton, Keith David, Mark Hamill, Liam Neeson, Antonio Banderas, Sofia Vergara, Penelope Cruz, Gal Gadot, Cate Blanchett, Viola Davis, Meryl Streep, Sandra Bullock, Reese Witherspoon, Salma Hayek, Lupita Nyong'o, Florence Pugh, Jenna Ortega, Ana de Armas, Jacob Elordi, Barry White, Dolly Parton, Willie Nelson, Lil Wayne, 50 Cent, Ice Cube, Tupac Shakur, Notorious B.I.G., Bob Dylan, David Bowie, Michael Jackson, Whitney Houston, Amy Winehouse, SZA, Tyler, The Creator, Thanos, Tony Stark, Captain Jack Sparrow, Walter White, Tommy Shelby, Michael Scott, Dwight Schrute, Bowser, Usain Bolt, Tyson Fury, Dana White, Pat McAfee, Giannis Antetokounmpo, Lex Fridman, Ben Shapiro, Tucker Carlson, Martha Stewart, Gordon Lightfoot, Lizzo, Megan Thee Stallion, Ice Spice, 21 Savage, Metro Boomin, Jack Harlow, Peso Pluma, BTS Jungkook, Quentin Tarantino, Werner Herzog, Anderson Cooper, Rachel Maddow, Mahatma Gandhi, Muhammad Ali, Princess Diana, Nelson Mandela, Steve Irwin, Morty Smith, Andrew Huberman, Willem Dafoe, Mike Rowe, Terminator, Deadpool, Plankton, Mr. Krabs, Picard | `"Elon Musk"` | +| `name` | ✗ | Give your audio a custom name for easy identification. | `"My Voice Generator audio"` | #### Example Snippet diff --git a/src/resources/v1/audio-to-video/README.md b/src/resources/v1/audio-to-video/README.md new file mode 100644 index 0000000..f0c6cf9 --- /dev/null +++ b/src/resources/v1/audio-to-video/README.md @@ -0,0 +1,77 @@ +# v1.audio-to-video + +## Module Functions + +### Audio-to-Video + +**What this API does** + +Create the same Audio To Video you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow. + +**Good for** + +- Automation and batch processing +- Adding audio to video into apps, pipelines, or tools + +**How it works (3 steps)** + +1. Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`. +2. Send a request to create a audio to video job with the basic fields. +3. Check the job status until it's `complete`, then download the result from `downloads`. + +**Key options** + +- Inputs: usually a file, sometimes a YouTube link, depending on project type +- Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes +- Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt + +**Cost**\ +Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done. + +For detailed examples, see the [product page](https://magichour.ai/products/audio-to-video). + +**API Endpoint**: `POST /v1/audio-to-video` + +#### Parameters + +| Parameter | Required | Description | Example | +| ------------------ | :------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `assets` | ✓ | Provide the audio file and an optional reference image. | `{"audioFilePath": "api-assets/id/1234.mp3", "imageFilePath": "api-assets/id/1234.png"}` | +| `└─ audioFilePath` | ✓ | The path of the audio 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.mp3"` | +| `└─ imageFilePath` | ✗ | Reference image for the initial frame of the video. 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` | ✓ | End time of your clip (seconds). Must be greater than start_seconds. | `15.0` | +| `name` | ✗ | Give your video a custom name for easy identification. | `"My Audio To Video video"` | +| `resolution` | ✗ | Output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers. | `"720p"` | +| `startSeconds` | ✗ | Start time of your clip (seconds). Must be ≥ 0. | `0.0` | +| `style` | ✗ | Attributes used to dictate the style of the output | `{"prompt": "Car driving through a city"}` | +| `└─ prompt` | ✗ | Prompt to guide the visual style of the video. | `"Car driving through a city"` | + +#### Example Snippet + +```typescript +import { Client } from "magic-hour"; + +const client = new Client({ token: process.env["API_TOKEN"]!! }); +const res = await client.v1.audioToVideo.create({ + assets: { + audioFilePath: "api-assets/id/1234.mp3", + imageFilePath: "api-assets/id/1234.png", + }, + endSeconds: 15.0, + name: "My Audio To Video video", + resolution: "720p", + startSeconds: 0.0, +}); +``` + +#### Response + +##### Type + +[V1AudioToVideoCreateResponse](/src/types/v1-audio-to-video-create-response.ts) + +##### Example + +```typescript +{"creditsCharged": 450, "estimatedFrameCost": 450, "id": "cuid-example"} +``` diff --git a/src/resources/v1/audio-to-video/index.ts b/src/resources/v1/audio-to-video/index.ts new file mode 100644 index 0000000..c6d4853 --- /dev/null +++ b/src/resources/v1/audio-to-video/index.ts @@ -0,0 +1,2 @@ +export { CreateRequest } from "./request-types"; +export { AudioToVideoClient } from "./resource-client"; diff --git a/src/resources/v1/audio-to-video/request-types.ts b/src/resources/v1/audio-to-video/request-types.ts new file mode 100644 index 0000000..f4963b5 --- /dev/null +++ b/src/resources/v1/audio-to-video/request-types.ts @@ -0,0 +1,117 @@ +import { zodTransform } from "make-api-request-js"; +import * as z from "zod"; + +import { + External$V1AudioToVideoCreateBodyAssets, + Schemas$V1AudioToVideoCreateBodyAssets, + V1AudioToVideoCreateBodyAssets, +} from "magic-hour/types/v1-audio-to-video-create-body-assets"; +import { + External$V1AudioToVideoCreateBodyStyle, + Schemas$V1AudioToVideoCreateBodyStyle, + V1AudioToVideoCreateBodyStyle, +} from "magic-hour/types/v1-audio-to-video-create-body-style"; + +/** + * CreateRequest + */ +export type CreateRequest = { + /** + * Provide the audio file and an optional reference image. + */ + assets: V1AudioToVideoCreateBodyAssets; + /** + * End time of your clip (seconds). Must be greater than start_seconds. + */ + endSeconds: number; + /** + * Give your video a custom name for easy identification. + */ + name?: string | undefined; + /** + * Output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers. + */ + resolution?: ("1080p" | "480p" | "720p") | undefined; + /** + * Start time of your clip (seconds). Must be ≥ 0. + */ + startSeconds?: number | undefined; + /** + * Attributes used to dictate the style of the output + */ + style?: V1AudioToVideoCreateBodyStyle | undefined; +}; + +/** + * @internal + * CreateRequest without any key transformation, this is what + * we expect to come in as network data + */ +export type External$CreateRequest = { + assets: External$V1AudioToVideoCreateBodyAssets; + end_seconds: number; + name?: string | undefined; + resolution?: ("1080p" | "480p" | "720p") | undefined; + start_seconds?: number | undefined; + style?: External$V1AudioToVideoCreateBodyStyle | undefined; +}; + +/** + * Takes network data, validates it, and transforms keys to match typescript object CreateRequest + */ +const SchemaIn$CreateRequest: z.ZodType< + CreateRequest, // output type of this zod object + z.ZodTypeDef, + unknown +> = z + .object({ + assets: Schemas$V1AudioToVideoCreateBodyAssets.in, + end_seconds: z.number(), + name: z.string().optional(), + resolution: z.enum(["1080p", "480p", "720p"]).optional(), + start_seconds: z.number().optional(), + style: Schemas$V1AudioToVideoCreateBodyStyle.in.optional(), + }) + .transform((obj) => { + return zodTransform(obj, { + assets: "assets", + end_seconds: "endSeconds", + name: "name", + resolution: "resolution", + start_seconds: "startSeconds", + style: "style", + }); + }); + +/** + * @internal + * Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest + */ +const SchemaOut$CreateRequest: z.ZodType< + External$CreateRequest, // output type of this zod object + z.ZodTypeDef, + CreateRequest // the object to be transformed +> = z + .object({ + assets: Schemas$V1AudioToVideoCreateBodyAssets.out, + endSeconds: z.number(), + name: z.string().optional(), + resolution: z.enum(["1080p", "480p", "720p"]).optional(), + startSeconds: z.number().optional(), + style: Schemas$V1AudioToVideoCreateBodyStyle.out.optional(), + }) + .transform((obj) => { + return zodTransform(obj, { + assets: "assets", + endSeconds: "end_seconds", + name: "name", + resolution: "resolution", + startSeconds: "start_seconds", + style: "style", + }); + }); + +export const Schemas$CreateRequest = { + in: SchemaIn$CreateRequest, + out: SchemaOut$CreateRequest, +}; diff --git a/src/resources/v1/audio-to-video/resource-client.ts b/src/resources/v1/audio-to-video/resource-client.ts new file mode 100644 index 0000000..d7a1109 --- /dev/null +++ b/src/resources/v1/audio-to-video/resource-client.ts @@ -0,0 +1,61 @@ +import { + ApiPromise, + CoreClient, + CoreResourceClient, + RequestOptions, + ResourceClientOptions, +} from "make-api-request-js"; + +import * as requests from "magic-hour/resources/v1/audio-to-video/request-types"; +import * as types from "magic-hour/types"; +import { Schemas$V1AudioToVideoCreateBody } from "magic-hour/types/v1-audio-to-video-create-body"; +import { Schemas$V1AudioToVideoCreateResponse } from "magic-hour/types/v1-audio-to-video-create-response"; + +export class AudioToVideoClient extends CoreResourceClient { + constructor(coreClient: CoreClient, opts: ResourceClientOptions) { + super(coreClient, opts); + } + + /** + * Audio-to-Video + * + * **What this API does** + * + * Create the same Audio To Video you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow. + * + * **Good for** + * - Automation and batch processing + * - Adding audio to video into apps, pipelines, or tools + * + * **How it works (3 steps)** + * 1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`. + * 2) Send a request to create a audio to video job with the basic fields. + * 3) Check the job status until it's `complete`, then download the result from `downloads`. + * + * **Key options** + * - Inputs: usually a file, sometimes a YouTube link, depending on project type + * - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes + * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt + * + * **Cost** + * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done. + * + * For detailed examples, see the [product page](https://magichour.ai/products/audio-to-video). + * + * POST /v1/audio-to-video + */ + create( + request: requests.CreateRequest, + opts?: RequestOptions, + ): ApiPromise { + return this._client.makeRequest({ + method: "post", + path: "/v1/audio-to-video", + auth: ["bearerAuth"], + contentType: "application/json", + body: Schemas$V1AudioToVideoCreateBody.out.parse(request), + responseSchema: Schemas$V1AudioToVideoCreateResponse.in, + opts, + }); + } +} diff --git a/src/resources/v1/image-to-video/README.md b/src/resources/v1/image-to-video/README.md index 600443c..5abb48a 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.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` | +| 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`**: 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 lip-sync & 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 1df7ea0..56f000c 100644 --- a/src/resources/v1/image-to-video/request-types.ts +++ b/src/resources/v1/image-to-video/request-types.ts @@ -45,7 +45,7 @@ export type CreateRequest = { * * **`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`**: 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 * @@ -61,7 +61,7 @@ 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.3`. - * * `ltx-2.3`: Fast iteration with audio, lip-sync, and end frame + * * `ltx-2.3`: Fast iteration with lip-sync & 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 diff --git a/src/resources/v1/index.ts b/src/resources/v1/index.ts index 39ad6dd..8ab8be0 100644 --- a/src/resources/v1/index.ts +++ b/src/resources/v1/index.ts @@ -12,6 +12,7 @@ export * as aiVoiceCloner from "./ai-voice-cloner"; export * as aiVoiceGenerator from "./ai-voice-generator"; export * as animation from "./animation"; export * as audioProjects from "./audio-projects"; +export * as audioToVideo from "./audio-to-video"; export * as autoSubtitleGenerator from "./auto-subtitle-generator"; export * as bodySwap from "./body-swap"; export * as faceDetection from "./face-detection"; diff --git a/src/resources/v1/resource-client.ts b/src/resources/v1/resource-client.ts index 7403bc2..10ba16a 100644 --- a/src/resources/v1/resource-client.ts +++ b/src/resources/v1/resource-client.ts @@ -18,6 +18,7 @@ import { AiVoiceClonerClient } from "magic-hour/resources/v1/ai-voice-cloner"; import { AiVoiceGeneratorClient } from "magic-hour/resources/v1/ai-voice-generator"; import { AnimationClient } from "magic-hour/resources/v1/animation"; import { AudioProjectsClient } from "magic-hour/resources/v1/audio-projects"; +import { AudioToVideoClient } from "magic-hour/resources/v1/audio-to-video"; import { AutoSubtitleGeneratorClient } from "magic-hour/resources/v1/auto-subtitle-generator"; import { BodySwapClient } from "magic-hour/resources/v1/body-swap"; import { FaceDetectionClient } from "magic-hour/resources/v1/face-detection"; @@ -35,6 +36,7 @@ import { VideoProjectsClient } from "magic-hour/resources/v1/video-projects"; import { VideoToVideoClient } from "magic-hour/resources/v1/video-to-video"; export class V1Client extends CoreResourceClient { + private _audioToVideoLazy?: AudioToVideoClient; // lazy-loading cache private _bodySwapLazy?: BodySwapClient; // lazy-loading cache private _headSwapLazy?: HeadSwapClient; // lazy-loading cache private _aiVoiceClonerLazy?: AiVoiceClonerClient; // lazy-loading cache @@ -83,6 +85,7 @@ export class V1Client extends CoreResourceClient { this.aiVoiceGenerator; this.animation; this.audioProjects; + this.audioToVideo; this.autoSubtitleGenerator; this.bodySwap; this.faceDetection; @@ -413,4 +416,15 @@ export class V1Client extends CoreResourceClient { )) ); } + + get audioToVideo(): AudioToVideoClient { + return ( + this._audioToVideoLazy ?? + (this._audioToVideoLazy = + new (require("./audio-to-video").AudioToVideoClient)( + this._client, + this._opts, + )) + ); + } } diff --git a/src/resources/v1/text-to-video/README.md b/src/resources/v1/text-to-video/README.md index 89cdd8e..7e928b5 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.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"` | +| 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`**: 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 lip-sync & 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 3283e9f..b5f4b14 100644 --- a/src/resources/v1/text-to-video/request-types.ts +++ b/src/resources/v1/text-to-video/request-types.ts @@ -51,7 +51,7 @@ export type CreateRequest = { * * **`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`**: 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 * @@ -61,7 +61,7 @@ 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.3`. - * * `ltx-2.3`: Fast iteration with audio, lip-sync, and end frame + * * `ltx-2.3`: Fast iteration with lip-sync & 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 diff --git a/src/types/index.ts b/src/types/index.ts index cee8407..3e53de7 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -68,6 +68,11 @@ export { V1AudioProjectsGetResponse } from "./v1-audio-projects-get-response"; export { V1AudioProjectsGetResponseDownloadsItem } from "./v1-audio-projects-get-response-downloads-item"; export { V1AudioProjectsGetResponseError } from "./v1-audio-projects-get-response-error"; export { V1AudioProjectsGetResponseStatusEnum } from "./v1-audio-projects-get-response-status-enum"; +export { V1AudioToVideoCreateBody } from "./v1-audio-to-video-create-body"; +export { V1AudioToVideoCreateBodyAssets } from "./v1-audio-to-video-create-body-assets"; +export { V1AudioToVideoCreateBodyResolutionEnum } from "./v1-audio-to-video-create-body-resolution-enum"; +export { V1AudioToVideoCreateBodyStyle } from "./v1-audio-to-video-create-body-style"; +export { V1AudioToVideoCreateResponse } from "./v1-audio-to-video-create-response"; export { V1AutoSubtitleGeneratorCreateBody } from "./v1-auto-subtitle-generator-create-body"; export { V1AutoSubtitleGeneratorCreateBodyAssets } from "./v1-auto-subtitle-generator-create-body-assets"; export { V1AutoSubtitleGeneratorCreateBodyStyle } from "./v1-auto-subtitle-generator-create-body-style"; 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 8233e29..1472644 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 @@ -9,15 +9,15 @@ * - Max additional input images: 2 * - `nano-banana` - from 50 credits/image * - Supported resolutions: 640px, 1k - * - Available for tiers: free, creator, pro, business + * - Available for tiers: creator, pro, business * - Max additional input images: 9 * - `nano-banana-2` - from 100 credits/image * - Supported resolutions: 640px, 1k, 2k, 4k - * - Available for tiers: free, creator, pro, business + * - Available for tiers: creator, pro, business * - Max additional input images: 9 * - `seedream-v4` - from 40 credits/image * - Supported resolutions: 640px, 1k, 2k, 4k - * - Available for tiers: free, creator, pro, business + * - Available for tiers: creator, pro, business * - Max additional input images: 9 * - `nano-banana-pro` - from 150 credits/image * - Supported resolutions: 1k, 2k, 4k diff --git a/src/types/v1-ai-image-editor-create-body.ts b/src/types/v1-ai-image-editor-create-body.ts index 42ebbf2..5018897 100644 --- a/src/types/v1-ai-image-editor-create-body.ts +++ b/src/types/v1-ai-image-editor-create-body.ts @@ -41,15 +41,15 @@ export type V1AiImageEditorCreateBody = { * - Max additional input images: 2 * - `nano-banana` - from 50 credits/image * - Supported resolutions: 640px, 1k - * - Available for tiers: free, creator, pro, business + * - Available for tiers: creator, pro, business * - Max additional input images: 9 * - `nano-banana-2` - from 100 credits/image * - Supported resolutions: 640px, 1k, 2k, 4k - * - Available for tiers: free, creator, pro, business + * - Available for tiers: creator, pro, business * - Max additional input images: 9 * - `seedream-v4` - from 40 credits/image * - Supported resolutions: 640px, 1k, 2k, 4k - * - Available for tiers: free, creator, pro, business + * - Available for tiers: creator, pro, business * - Max additional input images: 9 * - `nano-banana-pro` - from 150 credits/image * - Supported resolutions: 1k, 2k, 4k 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 86bf50e..5712365 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 @@ -13,15 +13,15 @@ * - 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 + * - Available for tiers: creator, pro, business * - Image count allowed: 1, 2, 3, 4 * - `nano-banana` - from 50 credits/image * - Supported resolutions: 640px, 1k - * - Available for tiers: free, creator, pro, business + * - Available for tiers: creator, pro, business * - Image count allowed: 1, 2, 3, 4 * - `nano-banana-2` - from 100 credits/image * - Supported resolutions: 640px, 1k, 2k, 4k - * - Available for tiers: free, creator, pro, business + * - Available for tiers: creator, pro, business * - Image count allowed: 1, 4, 9, 16 * - `nano-banana-pro` - from 150 credits/image * - Supported resolutions: 1k, 2k, 4k diff --git a/src/types/v1-ai-image-generator-create-body.ts b/src/types/v1-ai-image-generator-create-body.ts index 47d9a3c..078ceaa 100644 --- a/src/types/v1-ai-image-generator-create-body.ts +++ b/src/types/v1-ai-image-generator-create-body.ts @@ -34,15 +34,15 @@ export type V1AiImageGeneratorCreateBody = { * - 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 + * - Available for tiers: creator, pro, business * - Image count allowed: 1, 2, 3, 4 * - `nano-banana` - from 50 credits/image * - Supported resolutions: 640px, 1k - * - Available for tiers: free, creator, pro, business + * - Available for tiers: creator, pro, business * - Image count allowed: 1, 2, 3, 4 * - `nano-banana-2` - from 100 credits/image * - Supported resolutions: 640px, 1k, 2k, 4k - * - Available for tiers: free, creator, pro, business + * - Available for tiers: creator, pro, business * - Image count allowed: 1, 4, 9, 16 * - `nano-banana-pro` - from 150 credits/image * - Supported resolutions: 1k, 2k, 4k diff --git a/src/types/v1-ai-voice-generator-create-body-style-voice-name-enum.ts b/src/types/v1-ai-voice-generator-create-body-style-voice-name-enum.ts index e86f357..260bdbd 100644 --- a/src/types/v1-ai-voice-generator-create-body-style-voice-name-enum.ts +++ b/src/types/v1-ai-voice-generator-create-body-style-voice-name-enum.ts @@ -1,65 +1,113 @@ /** - * The voice to use for the speech. Available voices: Elon Musk, Mark Zuckerberg, Joe Rogan, Barack Obama, Morgan Freeman, Kanye West, Donald Trump, Joe Biden, Kim Kardashian, Taylor Swift, James Earl Jones, Samuel L. Jackson, Jeff Goldblum, David Attenborough, Sean Connery, Cillian Murphy, Anne Hathaway, Julia Roberts, Natalie Portman, Steve Carell, Amy Poehler, Stephen Colbert, Jimmy Fallon, David Letterman, Alex Trebek, Katy Perry, Prince, Kevin Bacon, Tom Hiddleston, Adam Driver, Alan Rickman, Alexz Johnson, Ana Gasteyer, Andrew Rannells, Arden Cho, Bear Grylls, Ben McKenzie, Ben Stiller, Ben Whishaw, Billie Joe Armstrong, Bingbing Li, Booboo Stewart, Bradley Steven Perry, Bruno Mars, Caity Lotz, Cameron Boyce, Candice Accola, Carrie Underwood, Casey Affleck, Caterina Scorsone, Cedric the Entertainer, Chace Crawford, Chadwick Boseman, Charlie Day, Chris Hemsworth, Chris Martin, Christopher Mintz-Plasse, Dan Fogler, Dan Stevens, Daniel Dae Kim, Danielle Panabaker, Dave Bautista, David Schwimmer, Denis Leary, Derek Mears, Diego Luna, Donald Glover, Donnie Yen, Doutzen Kroes, Dove Cameron, Dr. Dre, Drake Bell, Elle Fanning, Ernie Hudson, Fergie, Forest Whitaker, Francia Raisa, Freddie Highmore, Gillian Jacobs, Gina Carano, Ginnifer Goodwin, Gordon Ramsay, Guy Pearce, Gwendoline Christie, Hailee Steinfeld, Howie Mandel, Hugh Jackman, Hugh Laurie, J. K. Simmons, Jack Black, Jared Leto, Jennifer Carpenter, Kesha, Kris Jenner, Kristen Bell, Lorde, Matt Smith, Marilyn Monroe, Charlie Chaplin, Albert Einstein, Abraham Lincoln, John F. Kennedy, Lucille Ball, A.R. Rahman, Aamir Khan, Ajay Devgn, Akshay Kumar, Alain Delon, Alan Alda, Alan Cumming, Amitabh Bachchan, Ang Lee, Ansel Elgort, Anthony Anderson, Anthony Mackie, Armie Hammer, Asa Butterfield, B.J. Novak, Barbara Eden, Betty White, Bill Nighy, Bill Pullman, Blake Shelton, Bonnie Wright, Brad Paisley, Brendan Gleeson, Brian Cox, Bruno Ganz, Burt Reynolds, Carrie Fisher, Charles Dance, Chiwetel Ejiofor, Chris Pine, Christina Hendricks, Christina Ricci, Cyndi Lauper, Dakota Fanning, Damian Lewis, Dan Aykroyd, Daniel Craig, David Oyelowo, David Tennant, Diane Keaton, Diane Kruger, Dick Van Dyke, Domhnall Gleeson, Dominic Cooper, Donald Sutherland, Drew Carey, Eartha Kitt, Eddie Izzard, Edward Asner, Eli Roth, Elisabeth Moss, Ellen Burstyn, Emile Hirsch, Ezra Miller, Felicity Jones, Fiona Shaw, Florence Henderson, Freida Pinto, Geena Davis, Gemma Arterton, Geri Halliwell, Glenn Close, Gloria Steinem, Greta Gerwig, Gugu Mbatha-Raw, Hans Zimmer, Harry Connick Jr., Harvey Keitel, Helena Bonham Carter, Henry Cavill, Hilary Swank, Hugh Bonneville, Idina Menzel, Imelda Staunton, Ingrid Bergman, Irrfan Khan, Isla Fisher, Iwan Rheon, Jack Lemmon, Janet Jackson, Jason Bateman, Jason Segel, Jennifer Coolidge, Johnny Galecki, Jon Favreau, Joseph Gordon-Levitt, Josh Brolin, Josh Gad, Josh Groban, Julia Louis-Dreyfus, Kristen Stewart, Kristen Wiig, Rooney Mara, Caitriona Balfe, J.J. Abrams, Zoe Saldana + * The voice to use for the speech. Available voices: Elon Musk, Mark Zuckerberg, Joe Rogan, Barack Obama, Morgan Freeman, Kanye West, Donald Trump, Joe Biden, Kim Kardashian, Taylor Swift, James Earl Jones, Samuel L. Jackson, Jeff Goldblum, David Attenborough, Sean Connery, Cillian Murphy, Anne Hathaway, Julia Roberts, Natalie Portman, Steve Carell, Amy Poehler, Stephen Colbert, Jimmy Fallon, David Letterman, Alex Trebek, Katy Perry, Prince, Kevin Bacon, Tom Hiddleston, Adam Driver, Alan Rickman, Alexz Johnson, Ana Gasteyer, Andrew Rannells, Arden Cho, Bear Grylls, Ben McKenzie, Ben Stiller, Ben Whishaw, Billie Joe Armstrong, Bingbing Li, Booboo Stewart, Bradley Steven Perry, Bruno Mars, Caity Lotz, Cameron Boyce, Candice Accola, Carrie Underwood, Casey Affleck, Caterina Scorsone, Cedric the Entertainer, Chace Crawford, Chadwick Boseman, Charlie Day, Chris Hemsworth, Chris Martin, Christopher Mintz-Plasse, Dan Fogler, Dan Stevens, Daniel Dae Kim, Danielle Panabaker, Dave Bautista, David Schwimmer, Denis Leary, Derek Mears, Diego Luna, Donald Glover, Donnie Yen, Doutzen Kroes, Dove Cameron, Dr. Dre, Drake Bell, Elle Fanning, Ernie Hudson, Fergie, Forest Whitaker, Francia Raisa, Freddie Highmore, Gillian Jacobs, Gina Carano, Ginnifer Goodwin, Gordon Ramsay, Guy Pearce, Gwendoline Christie, Hailee Steinfeld, Howie Mandel, Hugh Jackman, Hugh Laurie, J. K. Simmons, Jack Black, Jared Leto, Jennifer Carpenter, Kesha, Kris Jenner, Kristen Bell, Lorde, Matt Smith, Marilyn Monroe, Charlie Chaplin, Albert Einstein, Abraham Lincoln, John F. Kennedy, Lucille Ball, A.R. Rahman, Aamir Khan, Ajay Devgn, Akshay Kumar, Alain Delon, Alan Alda, Alan Cumming, Amitabh Bachchan, Ang Lee, Ansel Elgort, Anthony Anderson, Anthony Mackie, Armie Hammer, Asa Butterfield, B.J. Novak, Barbara Eden, Betty White, Bill Nighy, Bill Pullman, Blake Shelton, Bonnie Wright, Brad Paisley, Brendan Gleeson, Brian Cox, Bruno Ganz, Burt Reynolds, Carrie Fisher, Charles Dance, Chiwetel Ejiofor, Chris Pine, Christina Hendricks, Christina Ricci, Cyndi Lauper, Dakota Fanning, Damian Lewis, Dan Aykroyd, Daniel Craig, David Oyelowo, David Tennant, Diane Keaton, Diane Kruger, Dick Van Dyke, Domhnall Gleeson, Dominic Cooper, Donald Sutherland, Drew Carey, Eartha Kitt, Eddie Izzard, Edward Asner, Eli Roth, Elisabeth Moss, Ellen Burstyn, Emile Hirsch, Ezra Miller, Felicity Jones, Fiona Shaw, Florence Henderson, Freida Pinto, Geena Davis, Gemma Arterton, Geri Halliwell, Glenn Close, Gloria Steinem, Greta Gerwig, Gugu Mbatha-Raw, Hans Zimmer, Harry Connick Jr., Harvey Keitel, Helena Bonham Carter, Henry Cavill, Hilary Swank, Hugh Bonneville, Idina Menzel, Imelda Staunton, Ingrid Bergman, Irrfan Khan, Isla Fisher, Iwan Rheon, Jack Lemmon, Janet Jackson, Jason Bateman, Jason Segel, Jennifer Coolidge, Johnny Galecki, Jon Favreau, Joseph Gordon-Levitt, Josh Brolin, Josh Gad, Josh Groban, Julia Louis-Dreyfus, Kristen Stewart, Kristen Wiig, Rooney Mara, Caitriona Balfe, J.J. Abrams, Zoe Saldana, SpongeBob SquarePants, Patrick Star, Squidward Tentacles, Homer Simpson, Bart Simpson, Peter Griffin, Stewie Griffin, Eric Cartman, Rick Sanchez, Bugs Bunny, Mickey Mouse, Donald Duck, Shrek, Donkey (Shrek), Elsa (Frozen), Woody (Toy Story), Buzz Lightyear, Scooby-Doo, Shaggy Rogers, Bender (Futurama), Optimus Prime, Batman (Animated), The Joker (Animated), Darth Vader, Yoda, Gollum Smeagol, Gandalf, Winnie the Pooh, Kermit the Frog, Elmo, SpiderMan (Tom Holland ver.), Mario, Luigi, Sonic the Hedgehog, Naruto Uzumaki, Goku, Vegeta, Light Yagami, Luffy (One Piece), Edward Elric, Eren Jaeger, Levi Ackerman, Tanjiro Kamado, All Might, GLaDOS, Master Chief, Kratos, Arthur Morgan, Geralt of Rivia, Dwayne 'The Rock' Johnson, LeBron James, Shaquille O'Neal, Conor McGregor, Mike Tyson, Kobe Bryant, Floyd Mayweather, Cristiano Ronaldo, Lionel Messi, Serena Williams, Tom Brady, Stephen Curry, John Cena, Hulk Hogan, Stone Cold Steve Austin, The Undertaker, Nate Diaz, Charles Barkley, Shannon Sharpe, Drake, Beyonce, Rihanna, Eminem, Snoop Dogg, Jay-Z, Ed Sheeran, Billie Eilish, Ariana Grande, Adele, Post Malone, Travis Scott, Nicki Minaj, Cardi B, Doja Cat, Bad Bunny, Shakira, Justin Bieber, Sabrina Carpenter, Chappell Roan, Dua Lipa, The Weeknd, Miley Cyrus, Lady Gaga, Kendrick Lamar, Ozzy Osbourne, Freddie Mercury, Elvis Presley, Bob Marley, Frank Sinatra, MrBeast, PewDiePie, Kai Cenat, IShowSpeed, Markiplier, Jacksepticeye, KSI, Logan Paul, Jake Paul, Dream (Minecraft), Corpse Husband, xQc, Pokimane, Valkyrae, Ninja, Joe Scott, Linus (LTT), Ryan Reynolds, Tom Hanks, Robert Downey Jr., Will Smith, Denzel Washington, Leonardo DiCaprio, Brad Pitt, Keanu Reeves, Nicolas Cage, Al Pacino, Robert De Niro, Arnold Schwarzenegger, Sylvester Stallone, Vin Diesel, Jason Statham, Tom Cruise, Johnny Depp, Scarlett Johansson, Angelina Jolie, Jennifer Aniston, Emma Watson, Margot Robbie, Sydney Sweeney, Zendaya, Timothee Chalamet, Pedro Pascal, Oscar Isaac, Benedict Cumberbatch, Ian McKellen, Patrick Stewart, Christopher Walken, Matthew McConaughey, Harrison Ford, Mark Wahlberg, Owen Wilson, Seth Rogen, Kevin Hart, Adam Sandler, Jim Carrey, Eddie Murphy, Robin Williams, Will Ferrell, Melissa McCarthy, Awkwafina, Jason Momoa, Idris Elba, Tom Hardy, Michael B. Jordan, Austin Butler, Glen Powell, Paul Giamatti, Bryan Cranston, Bob Odenkirk, Vladimir Putin, Queen Elizabeth II, Winston Churchill, Martin Luther King Jr., Kamala Harris, Bernie Sanders, Alexandria Ocasio-Cortez, Narendra Modi, Oprah Winfrey, Ellen DeGeneres, Dr. Phil, Steve Harvey, Trevor Noah, John Oliver, James Corden, Ryan Seacrest, Howard Stern, Conan O'Brien, Seth Meyers, Bill Nye, Neil deGrasse Tyson, Guy Fieri, Dave Chappelle, Chris Rock, Jerry Seinfeld, Ali Wong, John Mulaney, Hasan Minhaj, Nikki Glaser, Matt Rife, Gabriel Iglesias, Bo Burnham, Jeff Bezos, Bill Gates, Steve Jobs, Tim Cook, Sam Altman, Jensen Huang, Gilbert Gottfried, James May, Jeremy Clarkson, Richard Hammond, Bob Ross, Anthony Bourdain, David Goggins, Jordan Peterson, Joe Pesci, Danny DeVito, Seth MacFarlane, Patrick Warburton, Keith David, Mark Hamill, Liam Neeson, Antonio Banderas, Sofia Vergara, Penelope Cruz, Gal Gadot, Cate Blanchett, Viola Davis, Meryl Streep, Sandra Bullock, Reese Witherspoon, Salma Hayek, Lupita Nyong'o, Florence Pugh, Jenna Ortega, Ana de Armas, Jacob Elordi, Barry White, Dolly Parton, Willie Nelson, Lil Wayne, 50 Cent, Ice Cube, Tupac Shakur, Notorious B.I.G., Bob Dylan, David Bowie, Michael Jackson, Whitney Houston, Amy Winehouse, SZA, Tyler, The Creator, Thanos, Tony Stark, Captain Jack Sparrow, Walter White, Tommy Shelby, Michael Scott, Dwight Schrute, Bowser, Usain Bolt, Tyson Fury, Dana White, Pat McAfee, Giannis Antetokounmpo, Lex Fridman, Ben Shapiro, Tucker Carlson, Martha Stewart, Gordon Lightfoot, Lizzo, Megan Thee Stallion, Ice Spice, 21 Savage, Metro Boomin, Jack Harlow, Peso Pluma, BTS Jungkook, Quentin Tarantino, Werner Herzog, Anderson Cooper, Rachel Maddow, Mahatma Gandhi, Muhammad Ali, Princess Diana, Nelson Mandela, Steve Irwin, Morty Smith, Andrew Huberman, Willem Dafoe, Mike Rowe, Terminator, Deadpool, Plankton, Mr. Krabs, Picard */ export type V1AiVoiceGeneratorCreateBodyStyleVoiceNameEnum = + | "21 Savage" + | "50 Cent" | "A.R. Rahman" | "Aamir Khan" | "Abraham Lincoln" | "Adam Driver" + | "Adam Sandler" + | "Adele" | "Ajay Devgn" | "Akshay Kumar" + | "Al Pacino" | "Alain Delon" | "Alan Alda" | "Alan Cumming" | "Alan Rickman" | "Albert Einstein" | "Alex Trebek" + | "Alexandria Ocasio-Cortez" | "Alexz Johnson" + | "Ali Wong" + | "All Might" | "Amitabh Bachchan" | "Amy Poehler" + | "Amy Winehouse" | "Ana Gasteyer" + | "Ana de Armas" + | "Anderson Cooper" + | "Andrew Huberman" | "Andrew Rannells" | "Ang Lee" + | "Angelina Jolie" | "Anne Hathaway" | "Ansel Elgort" | "Anthony Anderson" + | "Anthony Bourdain" | "Anthony Mackie" + | "Antonio Banderas" | "Arden Cho" + | "Ariana Grande" | "Armie Hammer" + | "Arnold Schwarzenegger" + | "Arthur Morgan" | "Asa Butterfield" + | "Austin Butler" + | "Awkwafina" | "B.J. Novak" + | "BTS Jungkook" + | "Bad Bunny" | "Barack Obama" | "Barbara Eden" + | "Barry White" + | "Bart Simpson" + | "Batman (Animated)" | "Bear Grylls" | "Ben McKenzie" + | "Ben Shapiro" | "Ben Stiller" | "Ben Whishaw" + | "Bender (Futurama)" + | "Benedict Cumberbatch" + | "Bernie Sanders" | "Betty White" + | "Beyonce" + | "Bill Gates" | "Bill Nighy" + | "Bill Nye" | "Bill Pullman" + | "Billie Eilish" | "Billie Joe Armstrong" | "Bingbing Li" | "Blake Shelton" + | "Bo Burnham" + | "Bob Dylan" + | "Bob Marley" + | "Bob Odenkirk" + | "Bob Ross" | "Bonnie Wright" | "Booboo Stewart" + | "Bowser" | "Brad Paisley" + | "Brad Pitt" | "Bradley Steven Perry" | "Brendan Gleeson" | "Brian Cox" | "Bruno Ganz" | "Bruno Mars" + | "Bryan Cranston" + | "Bugs Bunny" | "Burt Reynolds" + | "Buzz Lightyear" | "Caitriona Balfe" | "Caity Lotz" | "Cameron Boyce" | "Candice Accola" + | "Captain Jack Sparrow" + | "Cardi B" | "Carrie Fisher" | "Carrie Underwood" | "Casey Affleck" + | "Cate Blanchett" | "Caterina Scorsone" | "Cedric the Entertainer" | "Chace Crawford" | "Chadwick Boseman" + | "Chappell Roan" + | "Charles Barkley" | "Charles Dance" | "Charlie Chaplin" | "Charlie Day" @@ -67,86 +115,147 @@ export type V1AiVoiceGeneratorCreateBodyStyleVoiceNameEnum = | "Chris Hemsworth" | "Chris Martin" | "Chris Pine" + | "Chris Rock" | "Christina Hendricks" | "Christina Ricci" | "Christopher Mintz-Plasse" + | "Christopher Walken" | "Cillian Murphy" + | "Conan O'Brien" + | "Conor McGregor" + | "Corpse Husband" + | "Cristiano Ronaldo" | "Cyndi Lauper" | "Dakota Fanning" | "Damian Lewis" | "Dan Aykroyd" | "Dan Fogler" | "Dan Stevens" + | "Dana White" | "Daniel Craig" | "Daniel Dae Kim" | "Danielle Panabaker" + | "Danny DeVito" + | "Darth Vader" | "Dave Bautista" + | "Dave Chappelle" | "David Attenborough" + | "David Bowie" + | "David Goggins" | "David Letterman" | "David Oyelowo" | "David Schwimmer" | "David Tennant" + | "Deadpool" | "Denis Leary" + | "Denzel Washington" | "Derek Mears" | "Diane Keaton" | "Diane Kruger" | "Dick Van Dyke" | "Diego Luna" + | "Doja Cat" + | "Dolly Parton" | "Domhnall Gleeson" | "Dominic Cooper" + | "Donald Duck" | "Donald Glover" | "Donald Sutherland" | "Donald Trump" + | "Donkey (Shrek)" | "Donnie Yen" | "Doutzen Kroes" | "Dove Cameron" | "Dr. Dre" + | "Dr. Phil" + | "Drake" | "Drake Bell" + | "Dream (Minecraft)" | "Drew Carey" + | "Dua Lipa" + | "Dwayne 'The Rock' Johnson" + | "Dwight Schrute" | "Eartha Kitt" + | "Ed Sheeran" | "Eddie Izzard" + | "Eddie Murphy" | "Edward Asner" + | "Edward Elric" | "Eli Roth" | "Elisabeth Moss" | "Elle Fanning" | "Ellen Burstyn" + | "Ellen DeGeneres" + | "Elmo" | "Elon Musk" + | "Elsa (Frozen)" + | "Elvis Presley" | "Emile Hirsch" + | "Eminem" + | "Emma Watson" + | "Eren Jaeger" + | "Eric Cartman" | "Ernie Hudson" | "Ezra Miller" | "Felicity Jones" | "Fergie" | "Fiona Shaw" | "Florence Henderson" + | "Florence Pugh" + | "Floyd Mayweather" | "Forest Whitaker" | "Francia Raisa" + | "Frank Sinatra" | "Freddie Highmore" + | "Freddie Mercury" | "Freida Pinto" + | "GLaDOS" + | "Gabriel Iglesias" + | "Gal Gadot" + | "Gandalf" | "Geena Davis" | "Gemma Arterton" + | "Geralt of Rivia" | "Geri Halliwell" + | "Giannis Antetokounmpo" + | "Gilbert Gottfried" | "Gillian Jacobs" | "Gina Carano" | "Ginnifer Goodwin" + | "Glen Powell" | "Glenn Close" | "Gloria Steinem" + | "Goku" + | "Gollum Smeagol" + | "Gordon Lightfoot" | "Gordon Ramsay" | "Greta Gerwig" | "Gugu Mbatha-Raw" + | "Guy Fieri" | "Guy Pearce" | "Gwendoline Christie" | "Hailee Steinfeld" | "Hans Zimmer" + | "Harrison Ford" | "Harry Connick Jr." | "Harvey Keitel" + | "Hasan Minhaj" | "Helena Bonham Carter" | "Henry Cavill" | "Hilary Swank" + | "Homer Simpson" + | "Howard Stern" | "Howie Mandel" | "Hugh Bonneville" | "Hugh Jackman" | "Hugh Laurie" + | "Hulk Hogan" + | "IShowSpeed" + | "Ian McKellen" + | "Ice Cube" + | "Ice Spice" | "Idina Menzel" + | "Idris Elba" | "Imelda Staunton" | "Ingrid Bergman" | "Irrfan Khan" @@ -155,49 +264,235 @@ export type V1AiVoiceGeneratorCreateBodyStyleVoiceNameEnum = | "J. K. Simmons" | "J.J. Abrams" | "Jack Black" + | "Jack Harlow" | "Jack Lemmon" + | "Jacksepticeye" + | "Jacob Elordi" + | "Jake Paul" + | "James Corden" | "James Earl Jones" + | "James May" | "Janet Jackson" | "Jared Leto" | "Jason Bateman" + | "Jason Momoa" | "Jason Segel" + | "Jason Statham" + | "Jay-Z" + | "Jeff Bezos" | "Jeff Goldblum" + | "Jenna Ortega" + | "Jennifer Aniston" | "Jennifer Carpenter" | "Jennifer Coolidge" + | "Jensen Huang" + | "Jeremy Clarkson" + | "Jerry Seinfeld" + | "Jim Carrey" | "Jimmy Fallon" | "Joe Biden" + | "Joe Pesci" | "Joe Rogan" + | "Joe Scott" + | "John Cena" | "John F. Kennedy" + | "John Mulaney" + | "John Oliver" + | "Johnny Depp" | "Johnny Galecki" | "Jon Favreau" + | "Jordan Peterson" | "Joseph Gordon-Levitt" | "Josh Brolin" | "Josh Gad" | "Josh Groban" | "Julia Louis-Dreyfus" | "Julia Roberts" + | "Justin Bieber" + | "KSI" + | "Kai Cenat" + | "Kamala Harris" | "Kanye West" | "Katy Perry" + | "Keanu Reeves" + | "Keith David" + | "Kendrick Lamar" + | "Kermit the Frog" | "Kesha" | "Kevin Bacon" + | "Kevin Hart" | "Kim Kardashian" + | "Kobe Bryant" + | "Kratos" | "Kris Jenner" | "Kristen Bell" | "Kristen Stewart" | "Kristen Wiig" + | "Lady Gaga" + | "LeBron James" + | "Leonardo DiCaprio" + | "Levi Ackerman" + | "Lex Fridman" + | "Liam Neeson" + | "Light Yagami" + | "Lil Wayne" + | "Linus (LTT)" + | "Lionel Messi" + | "Lizzo" + | "Logan Paul" | "Lorde" | "Lucille Ball" + | "Luffy (One Piece)" + | "Luigi" + | "Lupita Nyong'o" + | "Mahatma Gandhi" + | "Margot Robbie" | "Marilyn Monroe" + | "Mario" + | "Mark Hamill" + | "Mark Wahlberg" | "Mark Zuckerberg" + | "Markiplier" + | "Martha Stewart" + | "Martin Luther King Jr." + | "Master Chief" + | "Matt Rife" | "Matt Smith" + | "Matthew McConaughey" + | "Megan Thee Stallion" + | "Melissa McCarthy" + | "Meryl Streep" + | "Metro Boomin" + | "Michael B. Jordan" + | "Michael Jackson" + | "Michael Scott" + | "Mickey Mouse" + | "Mike Rowe" + | "Mike Tyson" + | "Miley Cyrus" | "Morgan Freeman" + | "Morty Smith" + | "Mr. Krabs" + | "MrBeast" + | "Muhammad Ali" + | "Narendra Modi" + | "Naruto Uzumaki" | "Natalie Portman" + | "Nate Diaz" + | "Neil deGrasse Tyson" + | "Nelson Mandela" + | "Nicki Minaj" + | "Nicolas Cage" + | "Nikki Glaser" + | "Ninja" + | "Notorious B.I.G." + | "Oprah Winfrey" + | "Optimus Prime" + | "Oscar Isaac" + | "Owen Wilson" + | "Ozzy Osbourne" + | "Pat McAfee" + | "Patrick Star" + | "Patrick Stewart" + | "Patrick Warburton" + | "Paul Giamatti" + | "Pedro Pascal" + | "Penelope Cruz" + | "Peso Pluma" + | "Peter Griffin" + | "PewDiePie" + | "Picard" + | "Plankton" + | "Pokimane" + | "Post Malone" | "Prince" + | "Princess Diana" + | "Queen Elizabeth II" + | "Quentin Tarantino" + | "Rachel Maddow" + | "Reese Witherspoon" + | "Richard Hammond" + | "Rick Sanchez" + | "Rihanna" + | "Robert De Niro" + | "Robert Downey Jr." + | "Robin Williams" | "Rooney Mara" + | "Ryan Reynolds" + | "Ryan Seacrest" + | "SZA" + | "Sabrina Carpenter" + | "Salma Hayek" + | "Sam Altman" | "Samuel L. Jackson" + | "Sandra Bullock" + | "Scarlett Johansson" + | "Scooby-Doo" | "Sean Connery" + | "Serena Williams" + | "Seth MacFarlane" + | "Seth Meyers" + | "Seth Rogen" + | "Shaggy Rogers" + | "Shakira" + | "Shannon Sharpe" + | "Shaquille O'Neal" + | "Shrek" + | "Snoop Dogg" + | "Sofia Vergara" + | "Sonic the Hedgehog" + | "SpiderMan (Tom Holland ver.)" + | "SpongeBob SquarePants" + | "Squidward Tentacles" | "Stephen Colbert" + | "Stephen Curry" | "Steve Carell" + | "Steve Harvey" + | "Steve Irwin" + | "Steve Jobs" + | "Stewie Griffin" + | "Stone Cold Steve Austin" + | "Sydney Sweeney" + | "Sylvester Stallone" + | "Tanjiro Kamado" | "Taylor Swift" + | "Terminator" + | "Thanos" + | "The Joker (Animated)" + | "The Undertaker" + | "The Weeknd" + | "Tim Cook" + | "Timothee Chalamet" + | "Tom Brady" + | "Tom Cruise" + | "Tom Hanks" + | "Tom Hardy" | "Tom Hiddleston" - | "Zoe Saldana"; + | "Tommy Shelby" + | "Tony Stark" + | "Travis Scott" + | "Trevor Noah" + | "Tucker Carlson" + | "Tupac Shakur" + | "Tyler, The Creator" + | "Tyson Fury" + | "Usain Bolt" + | "Valkyrae" + | "Vegeta" + | "Vin Diesel" + | "Viola Davis" + | "Vladimir Putin" + | "Walter White" + | "Werner Herzog" + | "Whitney Houston" + | "Will Ferrell" + | "Will Smith" + | "Willem Dafoe" + | "Willie Nelson" + | "Winnie the Pooh" + | "Winston Churchill" + | "Woody (Toy Story)" + | "Yoda" + | "Zendaya" + | "Zoe Saldana" + | "xQc"; diff --git a/src/types/v1-ai-voice-generator-create-body-style.ts b/src/types/v1-ai-voice-generator-create-body-style.ts index b195a0b..db3eff7 100644 --- a/src/types/v1-ai-voice-generator-create-body-style.ts +++ b/src/types/v1-ai-voice-generator-create-body-style.ts @@ -10,67 +10,115 @@ export type V1AiVoiceGeneratorCreateBodyStyle = { */ prompt: string; /** - * The voice to use for the speech. Available voices: Elon Musk, Mark Zuckerberg, Joe Rogan, Barack Obama, Morgan Freeman, Kanye West, Donald Trump, Joe Biden, Kim Kardashian, Taylor Swift, James Earl Jones, Samuel L. Jackson, Jeff Goldblum, David Attenborough, Sean Connery, Cillian Murphy, Anne Hathaway, Julia Roberts, Natalie Portman, Steve Carell, Amy Poehler, Stephen Colbert, Jimmy Fallon, David Letterman, Alex Trebek, Katy Perry, Prince, Kevin Bacon, Tom Hiddleston, Adam Driver, Alan Rickman, Alexz Johnson, Ana Gasteyer, Andrew Rannells, Arden Cho, Bear Grylls, Ben McKenzie, Ben Stiller, Ben Whishaw, Billie Joe Armstrong, Bingbing Li, Booboo Stewart, Bradley Steven Perry, Bruno Mars, Caity Lotz, Cameron Boyce, Candice Accola, Carrie Underwood, Casey Affleck, Caterina Scorsone, Cedric the Entertainer, Chace Crawford, Chadwick Boseman, Charlie Day, Chris Hemsworth, Chris Martin, Christopher Mintz-Plasse, Dan Fogler, Dan Stevens, Daniel Dae Kim, Danielle Panabaker, Dave Bautista, David Schwimmer, Denis Leary, Derek Mears, Diego Luna, Donald Glover, Donnie Yen, Doutzen Kroes, Dove Cameron, Dr. Dre, Drake Bell, Elle Fanning, Ernie Hudson, Fergie, Forest Whitaker, Francia Raisa, Freddie Highmore, Gillian Jacobs, Gina Carano, Ginnifer Goodwin, Gordon Ramsay, Guy Pearce, Gwendoline Christie, Hailee Steinfeld, Howie Mandel, Hugh Jackman, Hugh Laurie, J. K. Simmons, Jack Black, Jared Leto, Jennifer Carpenter, Kesha, Kris Jenner, Kristen Bell, Lorde, Matt Smith, Marilyn Monroe, Charlie Chaplin, Albert Einstein, Abraham Lincoln, John F. Kennedy, Lucille Ball, A.R. Rahman, Aamir Khan, Ajay Devgn, Akshay Kumar, Alain Delon, Alan Alda, Alan Cumming, Amitabh Bachchan, Ang Lee, Ansel Elgort, Anthony Anderson, Anthony Mackie, Armie Hammer, Asa Butterfield, B.J. Novak, Barbara Eden, Betty White, Bill Nighy, Bill Pullman, Blake Shelton, Bonnie Wright, Brad Paisley, Brendan Gleeson, Brian Cox, Bruno Ganz, Burt Reynolds, Carrie Fisher, Charles Dance, Chiwetel Ejiofor, Chris Pine, Christina Hendricks, Christina Ricci, Cyndi Lauper, Dakota Fanning, Damian Lewis, Dan Aykroyd, Daniel Craig, David Oyelowo, David Tennant, Diane Keaton, Diane Kruger, Dick Van Dyke, Domhnall Gleeson, Dominic Cooper, Donald Sutherland, Drew Carey, Eartha Kitt, Eddie Izzard, Edward Asner, Eli Roth, Elisabeth Moss, Ellen Burstyn, Emile Hirsch, Ezra Miller, Felicity Jones, Fiona Shaw, Florence Henderson, Freida Pinto, Geena Davis, Gemma Arterton, Geri Halliwell, Glenn Close, Gloria Steinem, Greta Gerwig, Gugu Mbatha-Raw, Hans Zimmer, Harry Connick Jr., Harvey Keitel, Helena Bonham Carter, Henry Cavill, Hilary Swank, Hugh Bonneville, Idina Menzel, Imelda Staunton, Ingrid Bergman, Irrfan Khan, Isla Fisher, Iwan Rheon, Jack Lemmon, Janet Jackson, Jason Bateman, Jason Segel, Jennifer Coolidge, Johnny Galecki, Jon Favreau, Joseph Gordon-Levitt, Josh Brolin, Josh Gad, Josh Groban, Julia Louis-Dreyfus, Kristen Stewart, Kristen Wiig, Rooney Mara, Caitriona Balfe, J.J. Abrams, Zoe Saldana + * The voice to use for the speech. Available voices: Elon Musk, Mark Zuckerberg, Joe Rogan, Barack Obama, Morgan Freeman, Kanye West, Donald Trump, Joe Biden, Kim Kardashian, Taylor Swift, James Earl Jones, Samuel L. Jackson, Jeff Goldblum, David Attenborough, Sean Connery, Cillian Murphy, Anne Hathaway, Julia Roberts, Natalie Portman, Steve Carell, Amy Poehler, Stephen Colbert, Jimmy Fallon, David Letterman, Alex Trebek, Katy Perry, Prince, Kevin Bacon, Tom Hiddleston, Adam Driver, Alan Rickman, Alexz Johnson, Ana Gasteyer, Andrew Rannells, Arden Cho, Bear Grylls, Ben McKenzie, Ben Stiller, Ben Whishaw, Billie Joe Armstrong, Bingbing Li, Booboo Stewart, Bradley Steven Perry, Bruno Mars, Caity Lotz, Cameron Boyce, Candice Accola, Carrie Underwood, Casey Affleck, Caterina Scorsone, Cedric the Entertainer, Chace Crawford, Chadwick Boseman, Charlie Day, Chris Hemsworth, Chris Martin, Christopher Mintz-Plasse, Dan Fogler, Dan Stevens, Daniel Dae Kim, Danielle Panabaker, Dave Bautista, David Schwimmer, Denis Leary, Derek Mears, Diego Luna, Donald Glover, Donnie Yen, Doutzen Kroes, Dove Cameron, Dr. Dre, Drake Bell, Elle Fanning, Ernie Hudson, Fergie, Forest Whitaker, Francia Raisa, Freddie Highmore, Gillian Jacobs, Gina Carano, Ginnifer Goodwin, Gordon Ramsay, Guy Pearce, Gwendoline Christie, Hailee Steinfeld, Howie Mandel, Hugh Jackman, Hugh Laurie, J. K. Simmons, Jack Black, Jared Leto, Jennifer Carpenter, Kesha, Kris Jenner, Kristen Bell, Lorde, Matt Smith, Marilyn Monroe, Charlie Chaplin, Albert Einstein, Abraham Lincoln, John F. Kennedy, Lucille Ball, A.R. Rahman, Aamir Khan, Ajay Devgn, Akshay Kumar, Alain Delon, Alan Alda, Alan Cumming, Amitabh Bachchan, Ang Lee, Ansel Elgort, Anthony Anderson, Anthony Mackie, Armie Hammer, Asa Butterfield, B.J. Novak, Barbara Eden, Betty White, Bill Nighy, Bill Pullman, Blake Shelton, Bonnie Wright, Brad Paisley, Brendan Gleeson, Brian Cox, Bruno Ganz, Burt Reynolds, Carrie Fisher, Charles Dance, Chiwetel Ejiofor, Chris Pine, Christina Hendricks, Christina Ricci, Cyndi Lauper, Dakota Fanning, Damian Lewis, Dan Aykroyd, Daniel Craig, David Oyelowo, David Tennant, Diane Keaton, Diane Kruger, Dick Van Dyke, Domhnall Gleeson, Dominic Cooper, Donald Sutherland, Drew Carey, Eartha Kitt, Eddie Izzard, Edward Asner, Eli Roth, Elisabeth Moss, Ellen Burstyn, Emile Hirsch, Ezra Miller, Felicity Jones, Fiona Shaw, Florence Henderson, Freida Pinto, Geena Davis, Gemma Arterton, Geri Halliwell, Glenn Close, Gloria Steinem, Greta Gerwig, Gugu Mbatha-Raw, Hans Zimmer, Harry Connick Jr., Harvey Keitel, Helena Bonham Carter, Henry Cavill, Hilary Swank, Hugh Bonneville, Idina Menzel, Imelda Staunton, Ingrid Bergman, Irrfan Khan, Isla Fisher, Iwan Rheon, Jack Lemmon, Janet Jackson, Jason Bateman, Jason Segel, Jennifer Coolidge, Johnny Galecki, Jon Favreau, Joseph Gordon-Levitt, Josh Brolin, Josh Gad, Josh Groban, Julia Louis-Dreyfus, Kristen Stewart, Kristen Wiig, Rooney Mara, Caitriona Balfe, J.J. Abrams, Zoe Saldana, SpongeBob SquarePants, Patrick Star, Squidward Tentacles, Homer Simpson, Bart Simpson, Peter Griffin, Stewie Griffin, Eric Cartman, Rick Sanchez, Bugs Bunny, Mickey Mouse, Donald Duck, Shrek, Donkey (Shrek), Elsa (Frozen), Woody (Toy Story), Buzz Lightyear, Scooby-Doo, Shaggy Rogers, Bender (Futurama), Optimus Prime, Batman (Animated), The Joker (Animated), Darth Vader, Yoda, Gollum Smeagol, Gandalf, Winnie the Pooh, Kermit the Frog, Elmo, SpiderMan (Tom Holland ver.), Mario, Luigi, Sonic the Hedgehog, Naruto Uzumaki, Goku, Vegeta, Light Yagami, Luffy (One Piece), Edward Elric, Eren Jaeger, Levi Ackerman, Tanjiro Kamado, All Might, GLaDOS, Master Chief, Kratos, Arthur Morgan, Geralt of Rivia, Dwayne 'The Rock' Johnson, LeBron James, Shaquille O'Neal, Conor McGregor, Mike Tyson, Kobe Bryant, Floyd Mayweather, Cristiano Ronaldo, Lionel Messi, Serena Williams, Tom Brady, Stephen Curry, John Cena, Hulk Hogan, Stone Cold Steve Austin, The Undertaker, Nate Diaz, Charles Barkley, Shannon Sharpe, Drake, Beyonce, Rihanna, Eminem, Snoop Dogg, Jay-Z, Ed Sheeran, Billie Eilish, Ariana Grande, Adele, Post Malone, Travis Scott, Nicki Minaj, Cardi B, Doja Cat, Bad Bunny, Shakira, Justin Bieber, Sabrina Carpenter, Chappell Roan, Dua Lipa, The Weeknd, Miley Cyrus, Lady Gaga, Kendrick Lamar, Ozzy Osbourne, Freddie Mercury, Elvis Presley, Bob Marley, Frank Sinatra, MrBeast, PewDiePie, Kai Cenat, IShowSpeed, Markiplier, Jacksepticeye, KSI, Logan Paul, Jake Paul, Dream (Minecraft), Corpse Husband, xQc, Pokimane, Valkyrae, Ninja, Joe Scott, Linus (LTT), Ryan Reynolds, Tom Hanks, Robert Downey Jr., Will Smith, Denzel Washington, Leonardo DiCaprio, Brad Pitt, Keanu Reeves, Nicolas Cage, Al Pacino, Robert De Niro, Arnold Schwarzenegger, Sylvester Stallone, Vin Diesel, Jason Statham, Tom Cruise, Johnny Depp, Scarlett Johansson, Angelina Jolie, Jennifer Aniston, Emma Watson, Margot Robbie, Sydney Sweeney, Zendaya, Timothee Chalamet, Pedro Pascal, Oscar Isaac, Benedict Cumberbatch, Ian McKellen, Patrick Stewart, Christopher Walken, Matthew McConaughey, Harrison Ford, Mark Wahlberg, Owen Wilson, Seth Rogen, Kevin Hart, Adam Sandler, Jim Carrey, Eddie Murphy, Robin Williams, Will Ferrell, Melissa McCarthy, Awkwafina, Jason Momoa, Idris Elba, Tom Hardy, Michael B. Jordan, Austin Butler, Glen Powell, Paul Giamatti, Bryan Cranston, Bob Odenkirk, Vladimir Putin, Queen Elizabeth II, Winston Churchill, Martin Luther King Jr., Kamala Harris, Bernie Sanders, Alexandria Ocasio-Cortez, Narendra Modi, Oprah Winfrey, Ellen DeGeneres, Dr. Phil, Steve Harvey, Trevor Noah, John Oliver, James Corden, Ryan Seacrest, Howard Stern, Conan O'Brien, Seth Meyers, Bill Nye, Neil deGrasse Tyson, Guy Fieri, Dave Chappelle, Chris Rock, Jerry Seinfeld, Ali Wong, John Mulaney, Hasan Minhaj, Nikki Glaser, Matt Rife, Gabriel Iglesias, Bo Burnham, Jeff Bezos, Bill Gates, Steve Jobs, Tim Cook, Sam Altman, Jensen Huang, Gilbert Gottfried, James May, Jeremy Clarkson, Richard Hammond, Bob Ross, Anthony Bourdain, David Goggins, Jordan Peterson, Joe Pesci, Danny DeVito, Seth MacFarlane, Patrick Warburton, Keith David, Mark Hamill, Liam Neeson, Antonio Banderas, Sofia Vergara, Penelope Cruz, Gal Gadot, Cate Blanchett, Viola Davis, Meryl Streep, Sandra Bullock, Reese Witherspoon, Salma Hayek, Lupita Nyong'o, Florence Pugh, Jenna Ortega, Ana de Armas, Jacob Elordi, Barry White, Dolly Parton, Willie Nelson, Lil Wayne, 50 Cent, Ice Cube, Tupac Shakur, Notorious B.I.G., Bob Dylan, David Bowie, Michael Jackson, Whitney Houston, Amy Winehouse, SZA, Tyler, The Creator, Thanos, Tony Stark, Captain Jack Sparrow, Walter White, Tommy Shelby, Michael Scott, Dwight Schrute, Bowser, Usain Bolt, Tyson Fury, Dana White, Pat McAfee, Giannis Antetokounmpo, Lex Fridman, Ben Shapiro, Tucker Carlson, Martha Stewart, Gordon Lightfoot, Lizzo, Megan Thee Stallion, Ice Spice, 21 Savage, Metro Boomin, Jack Harlow, Peso Pluma, BTS Jungkook, Quentin Tarantino, Werner Herzog, Anderson Cooper, Rachel Maddow, Mahatma Gandhi, Muhammad Ali, Princess Diana, Nelson Mandela, Steve Irwin, Morty Smith, Andrew Huberman, Willem Dafoe, Mike Rowe, Terminator, Deadpool, Plankton, Mr. Krabs, Picard */ voiceName: + | "21 Savage" + | "50 Cent" | "A.R. Rahman" | "Aamir Khan" | "Abraham Lincoln" | "Adam Driver" + | "Adam Sandler" + | "Adele" | "Ajay Devgn" | "Akshay Kumar" + | "Al Pacino" | "Alain Delon" | "Alan Alda" | "Alan Cumming" | "Alan Rickman" | "Albert Einstein" | "Alex Trebek" + | "Alexandria Ocasio-Cortez" | "Alexz Johnson" + | "Ali Wong" + | "All Might" | "Amitabh Bachchan" | "Amy Poehler" + | "Amy Winehouse" | "Ana Gasteyer" + | "Ana de Armas" + | "Anderson Cooper" + | "Andrew Huberman" | "Andrew Rannells" | "Ang Lee" + | "Angelina Jolie" | "Anne Hathaway" | "Ansel Elgort" | "Anthony Anderson" + | "Anthony Bourdain" | "Anthony Mackie" + | "Antonio Banderas" | "Arden Cho" + | "Ariana Grande" | "Armie Hammer" + | "Arnold Schwarzenegger" + | "Arthur Morgan" | "Asa Butterfield" + | "Austin Butler" + | "Awkwafina" | "B.J. Novak" + | "BTS Jungkook" + | "Bad Bunny" | "Barack Obama" | "Barbara Eden" + | "Barry White" + | "Bart Simpson" + | "Batman (Animated)" | "Bear Grylls" | "Ben McKenzie" + | "Ben Shapiro" | "Ben Stiller" | "Ben Whishaw" + | "Bender (Futurama)" + | "Benedict Cumberbatch" + | "Bernie Sanders" | "Betty White" + | "Beyonce" + | "Bill Gates" | "Bill Nighy" + | "Bill Nye" | "Bill Pullman" + | "Billie Eilish" | "Billie Joe Armstrong" | "Bingbing Li" | "Blake Shelton" + | "Bo Burnham" + | "Bob Dylan" + | "Bob Marley" + | "Bob Odenkirk" + | "Bob Ross" | "Bonnie Wright" | "Booboo Stewart" + | "Bowser" | "Brad Paisley" + | "Brad Pitt" | "Bradley Steven Perry" | "Brendan Gleeson" | "Brian Cox" | "Bruno Ganz" | "Bruno Mars" + | "Bryan Cranston" + | "Bugs Bunny" | "Burt Reynolds" + | "Buzz Lightyear" | "Caitriona Balfe" | "Caity Lotz" | "Cameron Boyce" | "Candice Accola" + | "Captain Jack Sparrow" + | "Cardi B" | "Carrie Fisher" | "Carrie Underwood" | "Casey Affleck" + | "Cate Blanchett" | "Caterina Scorsone" | "Cedric the Entertainer" | "Chace Crawford" | "Chadwick Boseman" + | "Chappell Roan" + | "Charles Barkley" | "Charles Dance" | "Charlie Chaplin" | "Charlie Day" @@ -78,86 +126,147 @@ export type V1AiVoiceGeneratorCreateBodyStyle = { | "Chris Hemsworth" | "Chris Martin" | "Chris Pine" + | "Chris Rock" | "Christina Hendricks" | "Christina Ricci" | "Christopher Mintz-Plasse" + | "Christopher Walken" | "Cillian Murphy" + | "Conan O'Brien" + | "Conor McGregor" + | "Corpse Husband" + | "Cristiano Ronaldo" | "Cyndi Lauper" | "Dakota Fanning" | "Damian Lewis" | "Dan Aykroyd" | "Dan Fogler" | "Dan Stevens" + | "Dana White" | "Daniel Craig" | "Daniel Dae Kim" | "Danielle Panabaker" + | "Danny DeVito" + | "Darth Vader" | "Dave Bautista" + | "Dave Chappelle" | "David Attenborough" + | "David Bowie" + | "David Goggins" | "David Letterman" | "David Oyelowo" | "David Schwimmer" | "David Tennant" + | "Deadpool" | "Denis Leary" + | "Denzel Washington" | "Derek Mears" | "Diane Keaton" | "Diane Kruger" | "Dick Van Dyke" | "Diego Luna" + | "Doja Cat" + | "Dolly Parton" | "Domhnall Gleeson" | "Dominic Cooper" + | "Donald Duck" | "Donald Glover" | "Donald Sutherland" | "Donald Trump" + | "Donkey (Shrek)" | "Donnie Yen" | "Doutzen Kroes" | "Dove Cameron" | "Dr. Dre" + | "Dr. Phil" + | "Drake" | "Drake Bell" + | "Dream (Minecraft)" | "Drew Carey" + | "Dua Lipa" + | "Dwayne 'The Rock' Johnson" + | "Dwight Schrute" | "Eartha Kitt" + | "Ed Sheeran" | "Eddie Izzard" + | "Eddie Murphy" | "Edward Asner" + | "Edward Elric" | "Eli Roth" | "Elisabeth Moss" | "Elle Fanning" | "Ellen Burstyn" + | "Ellen DeGeneres" + | "Elmo" | "Elon Musk" + | "Elsa (Frozen)" + | "Elvis Presley" | "Emile Hirsch" + | "Eminem" + | "Emma Watson" + | "Eren Jaeger" + | "Eric Cartman" | "Ernie Hudson" | "Ezra Miller" | "Felicity Jones" | "Fergie" | "Fiona Shaw" | "Florence Henderson" + | "Florence Pugh" + | "Floyd Mayweather" | "Forest Whitaker" | "Francia Raisa" + | "Frank Sinatra" | "Freddie Highmore" + | "Freddie Mercury" | "Freida Pinto" + | "GLaDOS" + | "Gabriel Iglesias" + | "Gal Gadot" + | "Gandalf" | "Geena Davis" | "Gemma Arterton" + | "Geralt of Rivia" | "Geri Halliwell" + | "Giannis Antetokounmpo" + | "Gilbert Gottfried" | "Gillian Jacobs" | "Gina Carano" | "Ginnifer Goodwin" + | "Glen Powell" | "Glenn Close" | "Gloria Steinem" + | "Goku" + | "Gollum Smeagol" + | "Gordon Lightfoot" | "Gordon Ramsay" | "Greta Gerwig" | "Gugu Mbatha-Raw" + | "Guy Fieri" | "Guy Pearce" | "Gwendoline Christie" | "Hailee Steinfeld" | "Hans Zimmer" + | "Harrison Ford" | "Harry Connick Jr." | "Harvey Keitel" + | "Hasan Minhaj" | "Helena Bonham Carter" | "Henry Cavill" | "Hilary Swank" + | "Homer Simpson" + | "Howard Stern" | "Howie Mandel" | "Hugh Bonneville" | "Hugh Jackman" | "Hugh Laurie" + | "Hulk Hogan" + | "IShowSpeed" + | "Ian McKellen" + | "Ice Cube" + | "Ice Spice" | "Idina Menzel" + | "Idris Elba" | "Imelda Staunton" | "Ingrid Bergman" | "Irrfan Khan" @@ -166,52 +275,238 @@ export type V1AiVoiceGeneratorCreateBodyStyle = { | "J. K. Simmons" | "J.J. Abrams" | "Jack Black" + | "Jack Harlow" | "Jack Lemmon" + | "Jacksepticeye" + | "Jacob Elordi" + | "Jake Paul" + | "James Corden" | "James Earl Jones" + | "James May" | "Janet Jackson" | "Jared Leto" | "Jason Bateman" + | "Jason Momoa" | "Jason Segel" + | "Jason Statham" + | "Jay-Z" + | "Jeff Bezos" | "Jeff Goldblum" + | "Jenna Ortega" + | "Jennifer Aniston" | "Jennifer Carpenter" | "Jennifer Coolidge" + | "Jensen Huang" + | "Jeremy Clarkson" + | "Jerry Seinfeld" + | "Jim Carrey" | "Jimmy Fallon" | "Joe Biden" + | "Joe Pesci" | "Joe Rogan" + | "Joe Scott" + | "John Cena" | "John F. Kennedy" + | "John Mulaney" + | "John Oliver" + | "Johnny Depp" | "Johnny Galecki" | "Jon Favreau" + | "Jordan Peterson" | "Joseph Gordon-Levitt" | "Josh Brolin" | "Josh Gad" | "Josh Groban" | "Julia Louis-Dreyfus" | "Julia Roberts" + | "Justin Bieber" + | "KSI" + | "Kai Cenat" + | "Kamala Harris" | "Kanye West" | "Katy Perry" + | "Keanu Reeves" + | "Keith David" + | "Kendrick Lamar" + | "Kermit the Frog" | "Kesha" | "Kevin Bacon" + | "Kevin Hart" | "Kim Kardashian" + | "Kobe Bryant" + | "Kratos" | "Kris Jenner" | "Kristen Bell" | "Kristen Stewart" | "Kristen Wiig" + | "Lady Gaga" + | "LeBron James" + | "Leonardo DiCaprio" + | "Levi Ackerman" + | "Lex Fridman" + | "Liam Neeson" + | "Light Yagami" + | "Lil Wayne" + | "Linus (LTT)" + | "Lionel Messi" + | "Lizzo" + | "Logan Paul" | "Lorde" | "Lucille Ball" + | "Luffy (One Piece)" + | "Luigi" + | "Lupita Nyong'o" + | "Mahatma Gandhi" + | "Margot Robbie" | "Marilyn Monroe" + | "Mario" + | "Mark Hamill" + | "Mark Wahlberg" | "Mark Zuckerberg" + | "Markiplier" + | "Martha Stewart" + | "Martin Luther King Jr." + | "Master Chief" + | "Matt Rife" | "Matt Smith" + | "Matthew McConaughey" + | "Megan Thee Stallion" + | "Melissa McCarthy" + | "Meryl Streep" + | "Metro Boomin" + | "Michael B. Jordan" + | "Michael Jackson" + | "Michael Scott" + | "Mickey Mouse" + | "Mike Rowe" + | "Mike Tyson" + | "Miley Cyrus" | "Morgan Freeman" + | "Morty Smith" + | "Mr. Krabs" + | "MrBeast" + | "Muhammad Ali" + | "Narendra Modi" + | "Naruto Uzumaki" | "Natalie Portman" + | "Nate Diaz" + | "Neil deGrasse Tyson" + | "Nelson Mandela" + | "Nicki Minaj" + | "Nicolas Cage" + | "Nikki Glaser" + | "Ninja" + | "Notorious B.I.G." + | "Oprah Winfrey" + | "Optimus Prime" + | "Oscar Isaac" + | "Owen Wilson" + | "Ozzy Osbourne" + | "Pat McAfee" + | "Patrick Star" + | "Patrick Stewart" + | "Patrick Warburton" + | "Paul Giamatti" + | "Pedro Pascal" + | "Penelope Cruz" + | "Peso Pluma" + | "Peter Griffin" + | "PewDiePie" + | "Picard" + | "Plankton" + | "Pokimane" + | "Post Malone" | "Prince" + | "Princess Diana" + | "Queen Elizabeth II" + | "Quentin Tarantino" + | "Rachel Maddow" + | "Reese Witherspoon" + | "Richard Hammond" + | "Rick Sanchez" + | "Rihanna" + | "Robert De Niro" + | "Robert Downey Jr." + | "Robin Williams" | "Rooney Mara" + | "Ryan Reynolds" + | "Ryan Seacrest" + | "SZA" + | "Sabrina Carpenter" + | "Salma Hayek" + | "Sam Altman" | "Samuel L. Jackson" + | "Sandra Bullock" + | "Scarlett Johansson" + | "Scooby-Doo" | "Sean Connery" + | "Serena Williams" + | "Seth MacFarlane" + | "Seth Meyers" + | "Seth Rogen" + | "Shaggy Rogers" + | "Shakira" + | "Shannon Sharpe" + | "Shaquille O'Neal" + | "Shrek" + | "Snoop Dogg" + | "Sofia Vergara" + | "Sonic the Hedgehog" + | "SpiderMan (Tom Holland ver.)" + | "SpongeBob SquarePants" + | "Squidward Tentacles" | "Stephen Colbert" + | "Stephen Curry" | "Steve Carell" + | "Steve Harvey" + | "Steve Irwin" + | "Steve Jobs" + | "Stewie Griffin" + | "Stone Cold Steve Austin" + | "Sydney Sweeney" + | "Sylvester Stallone" + | "Tanjiro Kamado" | "Taylor Swift" + | "Terminator" + | "Thanos" + | "The Joker (Animated)" + | "The Undertaker" + | "The Weeknd" + | "Tim Cook" + | "Timothee Chalamet" + | "Tom Brady" + | "Tom Cruise" + | "Tom Hanks" + | "Tom Hardy" | "Tom Hiddleston" - | "Zoe Saldana"; + | "Tommy Shelby" + | "Tony Stark" + | "Travis Scott" + | "Trevor Noah" + | "Tucker Carlson" + | "Tupac Shakur" + | "Tyler, The Creator" + | "Tyson Fury" + | "Usain Bolt" + | "Valkyrae" + | "Vegeta" + | "Vin Diesel" + | "Viola Davis" + | "Vladimir Putin" + | "Walter White" + | "Werner Herzog" + | "Whitney Houston" + | "Will Ferrell" + | "Will Smith" + | "Willem Dafoe" + | "Willie Nelson" + | "Winnie the Pooh" + | "Winston Churchill" + | "Woody (Toy Story)" + | "Yoda" + | "Zendaya" + | "Zoe Saldana" + | "xQc"; }; /** @@ -222,64 +517,112 @@ export type V1AiVoiceGeneratorCreateBodyStyle = { export type External$V1AiVoiceGeneratorCreateBodyStyle = { prompt: string; voice_name: + | "21 Savage" + | "50 Cent" | "A.R. Rahman" | "Aamir Khan" | "Abraham Lincoln" | "Adam Driver" + | "Adam Sandler" + | "Adele" | "Ajay Devgn" | "Akshay Kumar" + | "Al Pacino" | "Alain Delon" | "Alan Alda" | "Alan Cumming" | "Alan Rickman" | "Albert Einstein" | "Alex Trebek" + | "Alexandria Ocasio-Cortez" | "Alexz Johnson" + | "Ali Wong" + | "All Might" | "Amitabh Bachchan" | "Amy Poehler" + | "Amy Winehouse" | "Ana Gasteyer" + | "Ana de Armas" + | "Anderson Cooper" + | "Andrew Huberman" | "Andrew Rannells" | "Ang Lee" + | "Angelina Jolie" | "Anne Hathaway" | "Ansel Elgort" | "Anthony Anderson" + | "Anthony Bourdain" | "Anthony Mackie" + | "Antonio Banderas" | "Arden Cho" + | "Ariana Grande" | "Armie Hammer" + | "Arnold Schwarzenegger" + | "Arthur Morgan" | "Asa Butterfield" + | "Austin Butler" + | "Awkwafina" | "B.J. Novak" + | "BTS Jungkook" + | "Bad Bunny" | "Barack Obama" | "Barbara Eden" + | "Barry White" + | "Bart Simpson" + | "Batman (Animated)" | "Bear Grylls" | "Ben McKenzie" + | "Ben Shapiro" | "Ben Stiller" | "Ben Whishaw" + | "Bender (Futurama)" + | "Benedict Cumberbatch" + | "Bernie Sanders" | "Betty White" + | "Beyonce" + | "Bill Gates" | "Bill Nighy" + | "Bill Nye" | "Bill Pullman" + | "Billie Eilish" | "Billie Joe Armstrong" | "Bingbing Li" | "Blake Shelton" + | "Bo Burnham" + | "Bob Dylan" + | "Bob Marley" + | "Bob Odenkirk" + | "Bob Ross" | "Bonnie Wright" | "Booboo Stewart" + | "Bowser" | "Brad Paisley" + | "Brad Pitt" | "Bradley Steven Perry" | "Brendan Gleeson" | "Brian Cox" | "Bruno Ganz" | "Bruno Mars" + | "Bryan Cranston" + | "Bugs Bunny" | "Burt Reynolds" + | "Buzz Lightyear" | "Caitriona Balfe" | "Caity Lotz" | "Cameron Boyce" | "Candice Accola" + | "Captain Jack Sparrow" + | "Cardi B" | "Carrie Fisher" | "Carrie Underwood" | "Casey Affleck" + | "Cate Blanchett" | "Caterina Scorsone" | "Cedric the Entertainer" | "Chace Crawford" | "Chadwick Boseman" + | "Chappell Roan" + | "Charles Barkley" | "Charles Dance" | "Charlie Chaplin" | "Charlie Day" @@ -287,86 +630,147 @@ export type External$V1AiVoiceGeneratorCreateBodyStyle = { | "Chris Hemsworth" | "Chris Martin" | "Chris Pine" + | "Chris Rock" | "Christina Hendricks" | "Christina Ricci" | "Christopher Mintz-Plasse" + | "Christopher Walken" | "Cillian Murphy" + | "Conan O'Brien" + | "Conor McGregor" + | "Corpse Husband" + | "Cristiano Ronaldo" | "Cyndi Lauper" | "Dakota Fanning" | "Damian Lewis" | "Dan Aykroyd" | "Dan Fogler" | "Dan Stevens" + | "Dana White" | "Daniel Craig" | "Daniel Dae Kim" | "Danielle Panabaker" + | "Danny DeVito" + | "Darth Vader" | "Dave Bautista" + | "Dave Chappelle" | "David Attenborough" + | "David Bowie" + | "David Goggins" | "David Letterman" | "David Oyelowo" | "David Schwimmer" | "David Tennant" + | "Deadpool" | "Denis Leary" + | "Denzel Washington" | "Derek Mears" | "Diane Keaton" | "Diane Kruger" | "Dick Van Dyke" | "Diego Luna" + | "Doja Cat" + | "Dolly Parton" | "Domhnall Gleeson" | "Dominic Cooper" + | "Donald Duck" | "Donald Glover" | "Donald Sutherland" | "Donald Trump" + | "Donkey (Shrek)" | "Donnie Yen" | "Doutzen Kroes" | "Dove Cameron" | "Dr. Dre" + | "Dr. Phil" + | "Drake" | "Drake Bell" + | "Dream (Minecraft)" | "Drew Carey" + | "Dua Lipa" + | "Dwayne 'The Rock' Johnson" + | "Dwight Schrute" | "Eartha Kitt" + | "Ed Sheeran" | "Eddie Izzard" + | "Eddie Murphy" | "Edward Asner" + | "Edward Elric" | "Eli Roth" | "Elisabeth Moss" | "Elle Fanning" | "Ellen Burstyn" + | "Ellen DeGeneres" + | "Elmo" | "Elon Musk" + | "Elsa (Frozen)" + | "Elvis Presley" | "Emile Hirsch" + | "Eminem" + | "Emma Watson" + | "Eren Jaeger" + | "Eric Cartman" | "Ernie Hudson" | "Ezra Miller" | "Felicity Jones" | "Fergie" | "Fiona Shaw" | "Florence Henderson" + | "Florence Pugh" + | "Floyd Mayweather" | "Forest Whitaker" | "Francia Raisa" + | "Frank Sinatra" | "Freddie Highmore" + | "Freddie Mercury" | "Freida Pinto" + | "GLaDOS" + | "Gabriel Iglesias" + | "Gal Gadot" + | "Gandalf" | "Geena Davis" | "Gemma Arterton" + | "Geralt of Rivia" | "Geri Halliwell" + | "Giannis Antetokounmpo" + | "Gilbert Gottfried" | "Gillian Jacobs" | "Gina Carano" | "Ginnifer Goodwin" + | "Glen Powell" | "Glenn Close" | "Gloria Steinem" + | "Goku" + | "Gollum Smeagol" + | "Gordon Lightfoot" | "Gordon Ramsay" | "Greta Gerwig" | "Gugu Mbatha-Raw" + | "Guy Fieri" | "Guy Pearce" | "Gwendoline Christie" | "Hailee Steinfeld" | "Hans Zimmer" + | "Harrison Ford" | "Harry Connick Jr." | "Harvey Keitel" + | "Hasan Minhaj" | "Helena Bonham Carter" | "Henry Cavill" | "Hilary Swank" + | "Homer Simpson" + | "Howard Stern" | "Howie Mandel" | "Hugh Bonneville" | "Hugh Jackman" | "Hugh Laurie" + | "Hulk Hogan" + | "IShowSpeed" + | "Ian McKellen" + | "Ice Cube" + | "Ice Spice" | "Idina Menzel" + | "Idris Elba" | "Imelda Staunton" | "Ingrid Bergman" | "Irrfan Khan" @@ -375,52 +779,238 @@ export type External$V1AiVoiceGeneratorCreateBodyStyle = { | "J. K. Simmons" | "J.J. Abrams" | "Jack Black" + | "Jack Harlow" | "Jack Lemmon" + | "Jacksepticeye" + | "Jacob Elordi" + | "Jake Paul" + | "James Corden" | "James Earl Jones" + | "James May" | "Janet Jackson" | "Jared Leto" | "Jason Bateman" + | "Jason Momoa" | "Jason Segel" + | "Jason Statham" + | "Jay-Z" + | "Jeff Bezos" | "Jeff Goldblum" + | "Jenna Ortega" + | "Jennifer Aniston" | "Jennifer Carpenter" | "Jennifer Coolidge" + | "Jensen Huang" + | "Jeremy Clarkson" + | "Jerry Seinfeld" + | "Jim Carrey" | "Jimmy Fallon" | "Joe Biden" + | "Joe Pesci" | "Joe Rogan" + | "Joe Scott" + | "John Cena" | "John F. Kennedy" + | "John Mulaney" + | "John Oliver" + | "Johnny Depp" | "Johnny Galecki" | "Jon Favreau" + | "Jordan Peterson" | "Joseph Gordon-Levitt" | "Josh Brolin" | "Josh Gad" | "Josh Groban" | "Julia Louis-Dreyfus" | "Julia Roberts" + | "Justin Bieber" + | "KSI" + | "Kai Cenat" + | "Kamala Harris" | "Kanye West" | "Katy Perry" + | "Keanu Reeves" + | "Keith David" + | "Kendrick Lamar" + | "Kermit the Frog" | "Kesha" | "Kevin Bacon" + | "Kevin Hart" | "Kim Kardashian" + | "Kobe Bryant" + | "Kratos" | "Kris Jenner" | "Kristen Bell" | "Kristen Stewart" | "Kristen Wiig" + | "Lady Gaga" + | "LeBron James" + | "Leonardo DiCaprio" + | "Levi Ackerman" + | "Lex Fridman" + | "Liam Neeson" + | "Light Yagami" + | "Lil Wayne" + | "Linus (LTT)" + | "Lionel Messi" + | "Lizzo" + | "Logan Paul" | "Lorde" | "Lucille Ball" + | "Luffy (One Piece)" + | "Luigi" + | "Lupita Nyong'o" + | "Mahatma Gandhi" + | "Margot Robbie" | "Marilyn Monroe" + | "Mario" + | "Mark Hamill" + | "Mark Wahlberg" | "Mark Zuckerberg" + | "Markiplier" + | "Martha Stewart" + | "Martin Luther King Jr." + | "Master Chief" + | "Matt Rife" | "Matt Smith" + | "Matthew McConaughey" + | "Megan Thee Stallion" + | "Melissa McCarthy" + | "Meryl Streep" + | "Metro Boomin" + | "Michael B. Jordan" + | "Michael Jackson" + | "Michael Scott" + | "Mickey Mouse" + | "Mike Rowe" + | "Mike Tyson" + | "Miley Cyrus" | "Morgan Freeman" + | "Morty Smith" + | "Mr. Krabs" + | "MrBeast" + | "Muhammad Ali" + | "Narendra Modi" + | "Naruto Uzumaki" | "Natalie Portman" + | "Nate Diaz" + | "Neil deGrasse Tyson" + | "Nelson Mandela" + | "Nicki Minaj" + | "Nicolas Cage" + | "Nikki Glaser" + | "Ninja" + | "Notorious B.I.G." + | "Oprah Winfrey" + | "Optimus Prime" + | "Oscar Isaac" + | "Owen Wilson" + | "Ozzy Osbourne" + | "Pat McAfee" + | "Patrick Star" + | "Patrick Stewart" + | "Patrick Warburton" + | "Paul Giamatti" + | "Pedro Pascal" + | "Penelope Cruz" + | "Peso Pluma" + | "Peter Griffin" + | "PewDiePie" + | "Picard" + | "Plankton" + | "Pokimane" + | "Post Malone" | "Prince" + | "Princess Diana" + | "Queen Elizabeth II" + | "Quentin Tarantino" + | "Rachel Maddow" + | "Reese Witherspoon" + | "Richard Hammond" + | "Rick Sanchez" + | "Rihanna" + | "Robert De Niro" + | "Robert Downey Jr." + | "Robin Williams" | "Rooney Mara" + | "Ryan Reynolds" + | "Ryan Seacrest" + | "SZA" + | "Sabrina Carpenter" + | "Salma Hayek" + | "Sam Altman" | "Samuel L. Jackson" + | "Sandra Bullock" + | "Scarlett Johansson" + | "Scooby-Doo" | "Sean Connery" + | "Serena Williams" + | "Seth MacFarlane" + | "Seth Meyers" + | "Seth Rogen" + | "Shaggy Rogers" + | "Shakira" + | "Shannon Sharpe" + | "Shaquille O'Neal" + | "Shrek" + | "Snoop Dogg" + | "Sofia Vergara" + | "Sonic the Hedgehog" + | "SpiderMan (Tom Holland ver.)" + | "SpongeBob SquarePants" + | "Squidward Tentacles" | "Stephen Colbert" + | "Stephen Curry" | "Steve Carell" + | "Steve Harvey" + | "Steve Irwin" + | "Steve Jobs" + | "Stewie Griffin" + | "Stone Cold Steve Austin" + | "Sydney Sweeney" + | "Sylvester Stallone" + | "Tanjiro Kamado" | "Taylor Swift" + | "Terminator" + | "Thanos" + | "The Joker (Animated)" + | "The Undertaker" + | "The Weeknd" + | "Tim Cook" + | "Timothee Chalamet" + | "Tom Brady" + | "Tom Cruise" + | "Tom Hanks" + | "Tom Hardy" | "Tom Hiddleston" - | "Zoe Saldana"; + | "Tommy Shelby" + | "Tony Stark" + | "Travis Scott" + | "Trevor Noah" + | "Tucker Carlson" + | "Tupac Shakur" + | "Tyler, The Creator" + | "Tyson Fury" + | "Usain Bolt" + | "Valkyrae" + | "Vegeta" + | "Vin Diesel" + | "Viola Davis" + | "Vladimir Putin" + | "Walter White" + | "Werner Herzog" + | "Whitney Houston" + | "Will Ferrell" + | "Will Smith" + | "Willem Dafoe" + | "Willie Nelson" + | "Winnie the Pooh" + | "Winston Churchill" + | "Woody (Toy Story)" + | "Yoda" + | "Zendaya" + | "Zoe Saldana" + | "xQc"; }; /** @@ -434,64 +1024,112 @@ const SchemaIn$V1AiVoiceGeneratorCreateBodyStyle: z.ZodType< .object({ prompt: z.string(), voice_name: z.enum([ + "21 Savage", + "50 Cent", "A.R. Rahman", "Aamir Khan", "Abraham Lincoln", "Adam Driver", + "Adam Sandler", + "Adele", "Ajay Devgn", "Akshay Kumar", + "Al Pacino", "Alain Delon", "Alan Alda", "Alan Cumming", "Alan Rickman", "Albert Einstein", "Alex Trebek", + "Alexandria Ocasio-Cortez", "Alexz Johnson", + "Ali Wong", + "All Might", "Amitabh Bachchan", "Amy Poehler", + "Amy Winehouse", "Ana Gasteyer", + "Ana de Armas", + "Anderson Cooper", + "Andrew Huberman", "Andrew Rannells", "Ang Lee", + "Angelina Jolie", "Anne Hathaway", "Ansel Elgort", "Anthony Anderson", + "Anthony Bourdain", "Anthony Mackie", + "Antonio Banderas", "Arden Cho", + "Ariana Grande", "Armie Hammer", + "Arnold Schwarzenegger", + "Arthur Morgan", "Asa Butterfield", + "Austin Butler", + "Awkwafina", "B.J. Novak", + "BTS Jungkook", + "Bad Bunny", "Barack Obama", "Barbara Eden", + "Barry White", + "Bart Simpson", + "Batman (Animated)", "Bear Grylls", "Ben McKenzie", + "Ben Shapiro", "Ben Stiller", "Ben Whishaw", + "Bender (Futurama)", + "Benedict Cumberbatch", + "Bernie Sanders", "Betty White", + "Beyonce", + "Bill Gates", "Bill Nighy", + "Bill Nye", "Bill Pullman", + "Billie Eilish", "Billie Joe Armstrong", "Bingbing Li", "Blake Shelton", + "Bo Burnham", + "Bob Dylan", + "Bob Marley", + "Bob Odenkirk", + "Bob Ross", "Bonnie Wright", "Booboo Stewart", + "Bowser", "Brad Paisley", + "Brad Pitt", "Bradley Steven Perry", "Brendan Gleeson", "Brian Cox", "Bruno Ganz", "Bruno Mars", + "Bryan Cranston", + "Bugs Bunny", "Burt Reynolds", + "Buzz Lightyear", "Caitriona Balfe", "Caity Lotz", "Cameron Boyce", "Candice Accola", + "Captain Jack Sparrow", + "Cardi B", "Carrie Fisher", "Carrie Underwood", "Casey Affleck", + "Cate Blanchett", "Caterina Scorsone", "Cedric the Entertainer", "Chace Crawford", "Chadwick Boseman", + "Chappell Roan", + "Charles Barkley", "Charles Dance", "Charlie Chaplin", "Charlie Day", @@ -499,86 +1137,147 @@ const SchemaIn$V1AiVoiceGeneratorCreateBodyStyle: z.ZodType< "Chris Hemsworth", "Chris Martin", "Chris Pine", + "Chris Rock", "Christina Hendricks", "Christina Ricci", "Christopher Mintz-Plasse", + "Christopher Walken", "Cillian Murphy", + "Conan O'Brien", + "Conor McGregor", + "Corpse Husband", + "Cristiano Ronaldo", "Cyndi Lauper", "Dakota Fanning", "Damian Lewis", "Dan Aykroyd", "Dan Fogler", "Dan Stevens", + "Dana White", "Daniel Craig", "Daniel Dae Kim", "Danielle Panabaker", + "Danny DeVito", + "Darth Vader", "Dave Bautista", + "Dave Chappelle", "David Attenborough", + "David Bowie", + "David Goggins", "David Letterman", "David Oyelowo", "David Schwimmer", "David Tennant", + "Deadpool", "Denis Leary", + "Denzel Washington", "Derek Mears", "Diane Keaton", "Diane Kruger", "Dick Van Dyke", "Diego Luna", + "Doja Cat", + "Dolly Parton", "Domhnall Gleeson", "Dominic Cooper", + "Donald Duck", "Donald Glover", "Donald Sutherland", "Donald Trump", + "Donkey (Shrek)", "Donnie Yen", "Doutzen Kroes", "Dove Cameron", "Dr. Dre", + "Dr. Phil", + "Drake", "Drake Bell", + "Dream (Minecraft)", "Drew Carey", + "Dua Lipa", + "Dwayne 'The Rock' Johnson", + "Dwight Schrute", "Eartha Kitt", + "Ed Sheeran", "Eddie Izzard", + "Eddie Murphy", "Edward Asner", + "Edward Elric", "Eli Roth", "Elisabeth Moss", "Elle Fanning", "Ellen Burstyn", + "Ellen DeGeneres", + "Elmo", "Elon Musk", + "Elsa (Frozen)", + "Elvis Presley", "Emile Hirsch", + "Eminem", + "Emma Watson", + "Eren Jaeger", + "Eric Cartman", "Ernie Hudson", "Ezra Miller", "Felicity Jones", "Fergie", "Fiona Shaw", "Florence Henderson", + "Florence Pugh", + "Floyd Mayweather", "Forest Whitaker", "Francia Raisa", + "Frank Sinatra", "Freddie Highmore", + "Freddie Mercury", "Freida Pinto", + "GLaDOS", + "Gabriel Iglesias", + "Gal Gadot", + "Gandalf", "Geena Davis", "Gemma Arterton", + "Geralt of Rivia", "Geri Halliwell", + "Giannis Antetokounmpo", + "Gilbert Gottfried", "Gillian Jacobs", "Gina Carano", "Ginnifer Goodwin", + "Glen Powell", "Glenn Close", "Gloria Steinem", + "Goku", + "Gollum Smeagol", + "Gordon Lightfoot", "Gordon Ramsay", "Greta Gerwig", "Gugu Mbatha-Raw", + "Guy Fieri", "Guy Pearce", "Gwendoline Christie", "Hailee Steinfeld", "Hans Zimmer", + "Harrison Ford", "Harry Connick Jr.", "Harvey Keitel", + "Hasan Minhaj", "Helena Bonham Carter", "Henry Cavill", "Hilary Swank", + "Homer Simpson", + "Howard Stern", "Howie Mandel", "Hugh Bonneville", "Hugh Jackman", "Hugh Laurie", + "Hulk Hogan", + "IShowSpeed", + "Ian McKellen", + "Ice Cube", + "Ice Spice", "Idina Menzel", + "Idris Elba", "Imelda Staunton", "Ingrid Bergman", "Irrfan Khan", @@ -587,52 +1286,238 @@ const SchemaIn$V1AiVoiceGeneratorCreateBodyStyle: z.ZodType< "J. K. Simmons", "J.J. Abrams", "Jack Black", + "Jack Harlow", "Jack Lemmon", + "Jacksepticeye", + "Jacob Elordi", + "Jake Paul", + "James Corden", "James Earl Jones", + "James May", "Janet Jackson", "Jared Leto", "Jason Bateman", + "Jason Momoa", "Jason Segel", + "Jason Statham", + "Jay-Z", + "Jeff Bezos", "Jeff Goldblum", + "Jenna Ortega", + "Jennifer Aniston", "Jennifer Carpenter", "Jennifer Coolidge", + "Jensen Huang", + "Jeremy Clarkson", + "Jerry Seinfeld", + "Jim Carrey", "Jimmy Fallon", "Joe Biden", + "Joe Pesci", "Joe Rogan", + "Joe Scott", + "John Cena", "John F. Kennedy", + "John Mulaney", + "John Oliver", + "Johnny Depp", "Johnny Galecki", "Jon Favreau", + "Jordan Peterson", "Joseph Gordon-Levitt", "Josh Brolin", "Josh Gad", "Josh Groban", "Julia Louis-Dreyfus", "Julia Roberts", + "Justin Bieber", + "KSI", + "Kai Cenat", + "Kamala Harris", "Kanye West", "Katy Perry", + "Keanu Reeves", + "Keith David", + "Kendrick Lamar", + "Kermit the Frog", "Kesha", "Kevin Bacon", + "Kevin Hart", "Kim Kardashian", + "Kobe Bryant", + "Kratos", "Kris Jenner", "Kristen Bell", "Kristen Stewart", "Kristen Wiig", + "Lady Gaga", + "LeBron James", + "Leonardo DiCaprio", + "Levi Ackerman", + "Lex Fridman", + "Liam Neeson", + "Light Yagami", + "Lil Wayne", + "Linus (LTT)", + "Lionel Messi", + "Lizzo", + "Logan Paul", "Lorde", "Lucille Ball", + "Luffy (One Piece)", + "Luigi", + "Lupita Nyong'o", + "Mahatma Gandhi", + "Margot Robbie", "Marilyn Monroe", + "Mario", + "Mark Hamill", + "Mark Wahlberg", "Mark Zuckerberg", + "Markiplier", + "Martha Stewart", + "Martin Luther King Jr.", + "Master Chief", + "Matt Rife", "Matt Smith", + "Matthew McConaughey", + "Megan Thee Stallion", + "Melissa McCarthy", + "Meryl Streep", + "Metro Boomin", + "Michael B. Jordan", + "Michael Jackson", + "Michael Scott", + "Mickey Mouse", + "Mike Rowe", + "Mike Tyson", + "Miley Cyrus", "Morgan Freeman", + "Morty Smith", + "Mr. Krabs", + "MrBeast", + "Muhammad Ali", + "Narendra Modi", + "Naruto Uzumaki", "Natalie Portman", + "Nate Diaz", + "Neil deGrasse Tyson", + "Nelson Mandela", + "Nicki Minaj", + "Nicolas Cage", + "Nikki Glaser", + "Ninja", + "Notorious B.I.G.", + "Oprah Winfrey", + "Optimus Prime", + "Oscar Isaac", + "Owen Wilson", + "Ozzy Osbourne", + "Pat McAfee", + "Patrick Star", + "Patrick Stewart", + "Patrick Warburton", + "Paul Giamatti", + "Pedro Pascal", + "Penelope Cruz", + "Peso Pluma", + "Peter Griffin", + "PewDiePie", + "Picard", + "Plankton", + "Pokimane", + "Post Malone", "Prince", + "Princess Diana", + "Queen Elizabeth II", + "Quentin Tarantino", + "Rachel Maddow", + "Reese Witherspoon", + "Richard Hammond", + "Rick Sanchez", + "Rihanna", + "Robert De Niro", + "Robert Downey Jr.", + "Robin Williams", "Rooney Mara", + "Ryan Reynolds", + "Ryan Seacrest", + "SZA", + "Sabrina Carpenter", + "Salma Hayek", + "Sam Altman", "Samuel L. Jackson", + "Sandra Bullock", + "Scarlett Johansson", + "Scooby-Doo", "Sean Connery", + "Serena Williams", + "Seth MacFarlane", + "Seth Meyers", + "Seth Rogen", + "Shaggy Rogers", + "Shakira", + "Shannon Sharpe", + "Shaquille O'Neal", + "Shrek", + "Snoop Dogg", + "Sofia Vergara", + "Sonic the Hedgehog", + "SpiderMan (Tom Holland ver.)", + "SpongeBob SquarePants", + "Squidward Tentacles", "Stephen Colbert", + "Stephen Curry", "Steve Carell", + "Steve Harvey", + "Steve Irwin", + "Steve Jobs", + "Stewie Griffin", + "Stone Cold Steve Austin", + "Sydney Sweeney", + "Sylvester Stallone", + "Tanjiro Kamado", "Taylor Swift", + "Terminator", + "Thanos", + "The Joker (Animated)", + "The Undertaker", + "The Weeknd", + "Tim Cook", + "Timothee Chalamet", + "Tom Brady", + "Tom Cruise", + "Tom Hanks", + "Tom Hardy", "Tom Hiddleston", + "Tommy Shelby", + "Tony Stark", + "Travis Scott", + "Trevor Noah", + "Tucker Carlson", + "Tupac Shakur", + "Tyler, The Creator", + "Tyson Fury", + "Usain Bolt", + "Valkyrae", + "Vegeta", + "Vin Diesel", + "Viola Davis", + "Vladimir Putin", + "Walter White", + "Werner Herzog", + "Whitney Houston", + "Will Ferrell", + "Will Smith", + "Willem Dafoe", + "Willie Nelson", + "Winnie the Pooh", + "Winston Churchill", + "Woody (Toy Story)", + "Yoda", + "Zendaya", "Zoe Saldana", + "xQc", ]), }) .transform((obj) => { @@ -654,64 +1539,112 @@ const SchemaOut$V1AiVoiceGeneratorCreateBodyStyle: z.ZodType< .object({ prompt: z.string(), voiceName: z.enum([ + "21 Savage", + "50 Cent", "A.R. Rahman", "Aamir Khan", "Abraham Lincoln", "Adam Driver", + "Adam Sandler", + "Adele", "Ajay Devgn", "Akshay Kumar", + "Al Pacino", "Alain Delon", "Alan Alda", "Alan Cumming", "Alan Rickman", "Albert Einstein", "Alex Trebek", + "Alexandria Ocasio-Cortez", "Alexz Johnson", + "Ali Wong", + "All Might", "Amitabh Bachchan", "Amy Poehler", + "Amy Winehouse", "Ana Gasteyer", + "Ana de Armas", + "Anderson Cooper", + "Andrew Huberman", "Andrew Rannells", "Ang Lee", + "Angelina Jolie", "Anne Hathaway", "Ansel Elgort", "Anthony Anderson", + "Anthony Bourdain", "Anthony Mackie", + "Antonio Banderas", "Arden Cho", + "Ariana Grande", "Armie Hammer", + "Arnold Schwarzenegger", + "Arthur Morgan", "Asa Butterfield", + "Austin Butler", + "Awkwafina", "B.J. Novak", + "BTS Jungkook", + "Bad Bunny", "Barack Obama", "Barbara Eden", + "Barry White", + "Bart Simpson", + "Batman (Animated)", "Bear Grylls", "Ben McKenzie", + "Ben Shapiro", "Ben Stiller", "Ben Whishaw", + "Bender (Futurama)", + "Benedict Cumberbatch", + "Bernie Sanders", "Betty White", + "Beyonce", + "Bill Gates", "Bill Nighy", + "Bill Nye", "Bill Pullman", + "Billie Eilish", "Billie Joe Armstrong", "Bingbing Li", "Blake Shelton", + "Bo Burnham", + "Bob Dylan", + "Bob Marley", + "Bob Odenkirk", + "Bob Ross", "Bonnie Wright", "Booboo Stewart", + "Bowser", "Brad Paisley", + "Brad Pitt", "Bradley Steven Perry", "Brendan Gleeson", "Brian Cox", "Bruno Ganz", "Bruno Mars", + "Bryan Cranston", + "Bugs Bunny", "Burt Reynolds", + "Buzz Lightyear", "Caitriona Balfe", "Caity Lotz", "Cameron Boyce", "Candice Accola", + "Captain Jack Sparrow", + "Cardi B", "Carrie Fisher", "Carrie Underwood", "Casey Affleck", + "Cate Blanchett", "Caterina Scorsone", "Cedric the Entertainer", "Chace Crawford", "Chadwick Boseman", + "Chappell Roan", + "Charles Barkley", "Charles Dance", "Charlie Chaplin", "Charlie Day", @@ -719,86 +1652,147 @@ const SchemaOut$V1AiVoiceGeneratorCreateBodyStyle: z.ZodType< "Chris Hemsworth", "Chris Martin", "Chris Pine", + "Chris Rock", "Christina Hendricks", "Christina Ricci", "Christopher Mintz-Plasse", + "Christopher Walken", "Cillian Murphy", + "Conan O'Brien", + "Conor McGregor", + "Corpse Husband", + "Cristiano Ronaldo", "Cyndi Lauper", "Dakota Fanning", "Damian Lewis", "Dan Aykroyd", "Dan Fogler", "Dan Stevens", + "Dana White", "Daniel Craig", "Daniel Dae Kim", "Danielle Panabaker", + "Danny DeVito", + "Darth Vader", "Dave Bautista", + "Dave Chappelle", "David Attenborough", + "David Bowie", + "David Goggins", "David Letterman", "David Oyelowo", "David Schwimmer", "David Tennant", + "Deadpool", "Denis Leary", + "Denzel Washington", "Derek Mears", "Diane Keaton", "Diane Kruger", "Dick Van Dyke", "Diego Luna", + "Doja Cat", + "Dolly Parton", "Domhnall Gleeson", "Dominic Cooper", + "Donald Duck", "Donald Glover", "Donald Sutherland", "Donald Trump", + "Donkey (Shrek)", "Donnie Yen", "Doutzen Kroes", "Dove Cameron", "Dr. Dre", + "Dr. Phil", + "Drake", "Drake Bell", + "Dream (Minecraft)", "Drew Carey", + "Dua Lipa", + "Dwayne 'The Rock' Johnson", + "Dwight Schrute", "Eartha Kitt", + "Ed Sheeran", "Eddie Izzard", + "Eddie Murphy", "Edward Asner", + "Edward Elric", "Eli Roth", "Elisabeth Moss", "Elle Fanning", "Ellen Burstyn", + "Ellen DeGeneres", + "Elmo", "Elon Musk", + "Elsa (Frozen)", + "Elvis Presley", "Emile Hirsch", + "Eminem", + "Emma Watson", + "Eren Jaeger", + "Eric Cartman", "Ernie Hudson", "Ezra Miller", "Felicity Jones", "Fergie", "Fiona Shaw", "Florence Henderson", + "Florence Pugh", + "Floyd Mayweather", "Forest Whitaker", "Francia Raisa", + "Frank Sinatra", "Freddie Highmore", + "Freddie Mercury", "Freida Pinto", + "GLaDOS", + "Gabriel Iglesias", + "Gal Gadot", + "Gandalf", "Geena Davis", "Gemma Arterton", + "Geralt of Rivia", "Geri Halliwell", + "Giannis Antetokounmpo", + "Gilbert Gottfried", "Gillian Jacobs", "Gina Carano", "Ginnifer Goodwin", + "Glen Powell", "Glenn Close", "Gloria Steinem", + "Goku", + "Gollum Smeagol", + "Gordon Lightfoot", "Gordon Ramsay", "Greta Gerwig", "Gugu Mbatha-Raw", + "Guy Fieri", "Guy Pearce", "Gwendoline Christie", "Hailee Steinfeld", "Hans Zimmer", + "Harrison Ford", "Harry Connick Jr.", "Harvey Keitel", + "Hasan Minhaj", "Helena Bonham Carter", "Henry Cavill", "Hilary Swank", + "Homer Simpson", + "Howard Stern", "Howie Mandel", "Hugh Bonneville", "Hugh Jackman", "Hugh Laurie", + "Hulk Hogan", + "IShowSpeed", + "Ian McKellen", + "Ice Cube", + "Ice Spice", "Idina Menzel", + "Idris Elba", "Imelda Staunton", "Ingrid Bergman", "Irrfan Khan", @@ -807,52 +1801,238 @@ const SchemaOut$V1AiVoiceGeneratorCreateBodyStyle: z.ZodType< "J. K. Simmons", "J.J. Abrams", "Jack Black", + "Jack Harlow", "Jack Lemmon", + "Jacksepticeye", + "Jacob Elordi", + "Jake Paul", + "James Corden", "James Earl Jones", + "James May", "Janet Jackson", "Jared Leto", "Jason Bateman", + "Jason Momoa", "Jason Segel", + "Jason Statham", + "Jay-Z", + "Jeff Bezos", "Jeff Goldblum", + "Jenna Ortega", + "Jennifer Aniston", "Jennifer Carpenter", "Jennifer Coolidge", + "Jensen Huang", + "Jeremy Clarkson", + "Jerry Seinfeld", + "Jim Carrey", "Jimmy Fallon", "Joe Biden", + "Joe Pesci", "Joe Rogan", + "Joe Scott", + "John Cena", "John F. Kennedy", + "John Mulaney", + "John Oliver", + "Johnny Depp", "Johnny Galecki", "Jon Favreau", + "Jordan Peterson", "Joseph Gordon-Levitt", "Josh Brolin", "Josh Gad", "Josh Groban", "Julia Louis-Dreyfus", "Julia Roberts", + "Justin Bieber", + "KSI", + "Kai Cenat", + "Kamala Harris", "Kanye West", "Katy Perry", + "Keanu Reeves", + "Keith David", + "Kendrick Lamar", + "Kermit the Frog", "Kesha", "Kevin Bacon", + "Kevin Hart", "Kim Kardashian", + "Kobe Bryant", + "Kratos", "Kris Jenner", "Kristen Bell", "Kristen Stewart", "Kristen Wiig", + "Lady Gaga", + "LeBron James", + "Leonardo DiCaprio", + "Levi Ackerman", + "Lex Fridman", + "Liam Neeson", + "Light Yagami", + "Lil Wayne", + "Linus (LTT)", + "Lionel Messi", + "Lizzo", + "Logan Paul", "Lorde", "Lucille Ball", + "Luffy (One Piece)", + "Luigi", + "Lupita Nyong'o", + "Mahatma Gandhi", + "Margot Robbie", "Marilyn Monroe", + "Mario", + "Mark Hamill", + "Mark Wahlberg", "Mark Zuckerberg", + "Markiplier", + "Martha Stewart", + "Martin Luther King Jr.", + "Master Chief", + "Matt Rife", "Matt Smith", + "Matthew McConaughey", + "Megan Thee Stallion", + "Melissa McCarthy", + "Meryl Streep", + "Metro Boomin", + "Michael B. Jordan", + "Michael Jackson", + "Michael Scott", + "Mickey Mouse", + "Mike Rowe", + "Mike Tyson", + "Miley Cyrus", "Morgan Freeman", + "Morty Smith", + "Mr. Krabs", + "MrBeast", + "Muhammad Ali", + "Narendra Modi", + "Naruto Uzumaki", "Natalie Portman", + "Nate Diaz", + "Neil deGrasse Tyson", + "Nelson Mandela", + "Nicki Minaj", + "Nicolas Cage", + "Nikki Glaser", + "Ninja", + "Notorious B.I.G.", + "Oprah Winfrey", + "Optimus Prime", + "Oscar Isaac", + "Owen Wilson", + "Ozzy Osbourne", + "Pat McAfee", + "Patrick Star", + "Patrick Stewart", + "Patrick Warburton", + "Paul Giamatti", + "Pedro Pascal", + "Penelope Cruz", + "Peso Pluma", + "Peter Griffin", + "PewDiePie", + "Picard", + "Plankton", + "Pokimane", + "Post Malone", "Prince", + "Princess Diana", + "Queen Elizabeth II", + "Quentin Tarantino", + "Rachel Maddow", + "Reese Witherspoon", + "Richard Hammond", + "Rick Sanchez", + "Rihanna", + "Robert De Niro", + "Robert Downey Jr.", + "Robin Williams", "Rooney Mara", + "Ryan Reynolds", + "Ryan Seacrest", + "SZA", + "Sabrina Carpenter", + "Salma Hayek", + "Sam Altman", "Samuel L. Jackson", + "Sandra Bullock", + "Scarlett Johansson", + "Scooby-Doo", "Sean Connery", + "Serena Williams", + "Seth MacFarlane", + "Seth Meyers", + "Seth Rogen", + "Shaggy Rogers", + "Shakira", + "Shannon Sharpe", + "Shaquille O'Neal", + "Shrek", + "Snoop Dogg", + "Sofia Vergara", + "Sonic the Hedgehog", + "SpiderMan (Tom Holland ver.)", + "SpongeBob SquarePants", + "Squidward Tentacles", "Stephen Colbert", + "Stephen Curry", "Steve Carell", + "Steve Harvey", + "Steve Irwin", + "Steve Jobs", + "Stewie Griffin", + "Stone Cold Steve Austin", + "Sydney Sweeney", + "Sylvester Stallone", + "Tanjiro Kamado", "Taylor Swift", + "Terminator", + "Thanos", + "The Joker (Animated)", + "The Undertaker", + "The Weeknd", + "Tim Cook", + "Timothee Chalamet", + "Tom Brady", + "Tom Cruise", + "Tom Hanks", + "Tom Hardy", "Tom Hiddleston", + "Tommy Shelby", + "Tony Stark", + "Travis Scott", + "Trevor Noah", + "Tucker Carlson", + "Tupac Shakur", + "Tyler, The Creator", + "Tyson Fury", + "Usain Bolt", + "Valkyrae", + "Vegeta", + "Vin Diesel", + "Viola Davis", + "Vladimir Putin", + "Walter White", + "Werner Herzog", + "Whitney Houston", + "Will Ferrell", + "Will Smith", + "Willem Dafoe", + "Willie Nelson", + "Winnie the Pooh", + "Winston Churchill", + "Woody (Toy Story)", + "Yoda", + "Zendaya", "Zoe Saldana", + "xQc", ]), }) .transform((obj) => { diff --git a/src/types/v1-audio-projects-get-response.ts b/src/types/v1-audio-projects-get-response.ts index 2c24769..e27c415 100644 --- a/src/types/v1-audio-projects-get-response.ts +++ b/src/types/v1-audio-projects-get-response.ts @@ -45,7 +45,7 @@ export type V1AudioProjectsGetResponse = { */ status: "canceled" | "complete" | "draft" | "error" | "queued" | "rendering"; /** - * The type of the audio project. Possible values are VOICE_GENERATOR, VOICE_CHANGER, VOICE_CLONER, VIDEO_TO_AUDIO + * The type of the audio project. Possible values are VOICE_GENERATOR, VOICE_CHANGER, VOICE_CLONER, VIDEO_TO_AUDIO, MUSIC_GENERATOR */ type: string; }; diff --git a/src/types/v1-audio-to-video-create-body-assets.ts b/src/types/v1-audio-to-video-create-body-assets.ts new file mode 100644 index 0000000..68262d0 --- /dev/null +++ b/src/types/v1-audio-to-video-create-body-assets.ts @@ -0,0 +1,80 @@ +import { zodTransform } from "make-api-request-js"; +import * as z from "zod"; + +/** + * Provide the audio file and an optional reference image. + */ +export type V1AudioToVideoCreateBodyAssets = { + /** + * The path of the audio 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. + * + */ + audioFilePath: string; + /** + * Reference image for the initial frame of the video. 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. + * + */ + imageFilePath?: string | undefined; +}; + +/** + * @internal + * V1AudioToVideoCreateBodyAssets without any key transformation, this is what + * we expect to come in as network data + */ +export type External$V1AudioToVideoCreateBodyAssets = { + audio_file_path: string; + image_file_path?: string | undefined; +}; + +/** + * Takes network data, validates it, and transforms keys to match typescript object V1AudioToVideoCreateBodyAssets + */ +const SchemaIn$V1AudioToVideoCreateBodyAssets: z.ZodType< + V1AudioToVideoCreateBodyAssets, // output type of this zod object + z.ZodTypeDef, + unknown +> = z + .object({ + audio_file_path: z.string(), + image_file_path: z.string().optional(), + }) + .transform((obj) => { + return zodTransform(obj, { + audio_file_path: "audioFilePath", + image_file_path: "imageFilePath", + }); + }); + +/** + * @internal + * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AudioToVideoCreateBodyAssets + */ +const SchemaOut$V1AudioToVideoCreateBodyAssets: z.ZodType< + External$V1AudioToVideoCreateBodyAssets, // output type of this zod object + z.ZodTypeDef, + V1AudioToVideoCreateBodyAssets // the object to be transformed +> = z + .object({ + audioFilePath: z.string(), + imageFilePath: z.string().optional(), + }) + .transform((obj) => { + return zodTransform(obj, { + audioFilePath: "audio_file_path", + imageFilePath: "image_file_path", + }); + }); + +export const Schemas$V1AudioToVideoCreateBodyAssets = { + in: SchemaIn$V1AudioToVideoCreateBodyAssets, + out: SchemaOut$V1AudioToVideoCreateBodyAssets, +}; diff --git a/src/types/v1-audio-to-video-create-body-resolution-enum.ts b/src/types/v1-audio-to-video-create-body-resolution-enum.ts new file mode 100644 index 0000000..50cc90c --- /dev/null +++ b/src/types/v1-audio-to-video-create-body-resolution-enum.ts @@ -0,0 +1,4 @@ +/** + * Output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers. + */ +export type V1AudioToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p"; diff --git a/src/types/v1-audio-to-video-create-body-style.ts b/src/types/v1-audio-to-video-create-body-style.ts new file mode 100644 index 0000000..128caec --- /dev/null +++ b/src/types/v1-audio-to-video-create-body-style.ts @@ -0,0 +1,61 @@ +import { zodTransform } from "make-api-request-js"; +import * as z from "zod"; + +/** + * Attributes used to dictate the style of the output + */ +export type V1AudioToVideoCreateBodyStyle = { + /** + * Prompt to guide the visual style of the video. + */ + prompt?: string | undefined; +}; + +/** + * @internal + * V1AudioToVideoCreateBodyStyle without any key transformation, this is what + * we expect to come in as network data + */ +export type External$V1AudioToVideoCreateBodyStyle = { + prompt?: string | undefined; +}; + +/** + * Takes network data, validates it, and transforms keys to match typescript object V1AudioToVideoCreateBodyStyle + */ +const SchemaIn$V1AudioToVideoCreateBodyStyle: z.ZodType< + V1AudioToVideoCreateBodyStyle, // output type of this zod object + z.ZodTypeDef, + unknown +> = z + .object({ + prompt: z.string().optional(), + }) + .transform((obj) => { + return zodTransform(obj, { + prompt: "prompt", + }); + }); + +/** + * @internal + * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AudioToVideoCreateBodyStyle + */ +const SchemaOut$V1AudioToVideoCreateBodyStyle: z.ZodType< + External$V1AudioToVideoCreateBodyStyle, // output type of this zod object + z.ZodTypeDef, + V1AudioToVideoCreateBodyStyle // the object to be transformed +> = z + .object({ + prompt: z.string().optional(), + }) + .transform((obj) => { + return zodTransform(obj, { + prompt: "prompt", + }); + }); + +export const Schemas$V1AudioToVideoCreateBodyStyle = { + in: SchemaIn$V1AudioToVideoCreateBodyStyle, + out: SchemaOut$V1AudioToVideoCreateBodyStyle, +}; diff --git a/src/types/v1-audio-to-video-create-body.ts b/src/types/v1-audio-to-video-create-body.ts new file mode 100644 index 0000000..f79148d --- /dev/null +++ b/src/types/v1-audio-to-video-create-body.ts @@ -0,0 +1,117 @@ +import { zodTransform } from "make-api-request-js"; +import * as z from "zod"; + +import { + External$V1AudioToVideoCreateBodyAssets, + Schemas$V1AudioToVideoCreateBodyAssets, + V1AudioToVideoCreateBodyAssets, +} from "./v1-audio-to-video-create-body-assets"; +import { + External$V1AudioToVideoCreateBodyStyle, + Schemas$V1AudioToVideoCreateBodyStyle, + V1AudioToVideoCreateBodyStyle, +} from "./v1-audio-to-video-create-body-style"; + +/** + * V1AudioToVideoCreateBody + */ +export type V1AudioToVideoCreateBody = { + /** + * Provide the audio file and an optional reference image. + */ + assets: V1AudioToVideoCreateBodyAssets; + /** + * End time of your clip (seconds). Must be greater than start_seconds. + */ + endSeconds: number; + /** + * Give your video a custom name for easy identification. + */ + name?: string | undefined; + /** + * Output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers. + */ + resolution?: ("1080p" | "480p" | "720p") | undefined; + /** + * Start time of your clip (seconds). Must be ≥ 0. + */ + startSeconds?: number | undefined; + /** + * Attributes used to dictate the style of the output + */ + style?: V1AudioToVideoCreateBodyStyle | undefined; +}; + +/** + * @internal + * V1AudioToVideoCreateBody without any key transformation, this is what + * we expect to come in as network data + */ +export type External$V1AudioToVideoCreateBody = { + assets: External$V1AudioToVideoCreateBodyAssets; + end_seconds: number; + name?: string | undefined; + resolution?: ("1080p" | "480p" | "720p") | undefined; + start_seconds?: number | undefined; + style?: External$V1AudioToVideoCreateBodyStyle | undefined; +}; + +/** + * Takes network data, validates it, and transforms keys to match typescript object V1AudioToVideoCreateBody + */ +const SchemaIn$V1AudioToVideoCreateBody: z.ZodType< + V1AudioToVideoCreateBody, // output type of this zod object + z.ZodTypeDef, + unknown +> = z + .object({ + assets: Schemas$V1AudioToVideoCreateBodyAssets.in, + end_seconds: z.number(), + name: z.string().optional(), + resolution: z.enum(["1080p", "480p", "720p"]).optional(), + start_seconds: z.number().optional(), + style: Schemas$V1AudioToVideoCreateBodyStyle.in.optional(), + }) + .transform((obj) => { + return zodTransform(obj, { + assets: "assets", + end_seconds: "endSeconds", + name: "name", + resolution: "resolution", + start_seconds: "startSeconds", + style: "style", + }); + }); + +/** + * @internal + * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AudioToVideoCreateBody + */ +const SchemaOut$V1AudioToVideoCreateBody: z.ZodType< + External$V1AudioToVideoCreateBody, // output type of this zod object + z.ZodTypeDef, + V1AudioToVideoCreateBody // the object to be transformed +> = z + .object({ + assets: Schemas$V1AudioToVideoCreateBodyAssets.out, + endSeconds: z.number(), + name: z.string().optional(), + resolution: z.enum(["1080p", "480p", "720p"]).optional(), + startSeconds: z.number().optional(), + style: Schemas$V1AudioToVideoCreateBodyStyle.out.optional(), + }) + .transform((obj) => { + return zodTransform(obj, { + assets: "assets", + endSeconds: "end_seconds", + name: "name", + resolution: "resolution", + startSeconds: "start_seconds", + style: "style", + }); + }); + +export const Schemas$V1AudioToVideoCreateBody = { + in: SchemaIn$V1AudioToVideoCreateBody, + out: SchemaOut$V1AudioToVideoCreateBody, +}; diff --git a/src/types/v1-audio-to-video-create-response.ts b/src/types/v1-audio-to-video-create-response.ts new file mode 100644 index 0000000..f0d2abd --- /dev/null +++ b/src/types/v1-audio-to-video-create-response.ts @@ -0,0 +1,83 @@ +import { zodTransform } from "make-api-request-js"; +import * as z from "zod"; + +/** + * Success + */ +export type V1AudioToVideoCreateResponse = { + /** + * The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. + * + * If video generation fails, credits will be refunded, and this field will be updated to include the refund. + */ + creditsCharged: number; + /** + * Deprecated: Previously represented the number of frames (original name of our credit system) used for video generation. Use 'credits_charged' instead. + * + * The amount of frames used to generate the video. If the status is not 'complete', the cost is an estimate and will be adjusted when the video completes. + */ + estimatedFrameCost: number; + /** + * Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads. + */ + id: string; +}; + +/** + * @internal + * V1AudioToVideoCreateResponse without any key transformation, this is what + * we expect to come in as network data + */ +export type External$V1AudioToVideoCreateResponse = { + credits_charged: number; + estimated_frame_cost: number; + id: string; +}; + +/** + * Takes network data, validates it, and transforms keys to match typescript object V1AudioToVideoCreateResponse + */ +const SchemaIn$V1AudioToVideoCreateResponse: z.ZodType< + V1AudioToVideoCreateResponse, // output type of this zod object + z.ZodTypeDef, + unknown +> = z + .object({ + credits_charged: z.number().int(), + estimated_frame_cost: z.number().int(), + id: z.string(), + }) + .transform((obj) => { + return zodTransform(obj, { + credits_charged: "creditsCharged", + estimated_frame_cost: "estimatedFrameCost", + id: "id", + }); + }); + +/** + * @internal + * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AudioToVideoCreateResponse + */ +const SchemaOut$V1AudioToVideoCreateResponse: z.ZodType< + External$V1AudioToVideoCreateResponse, // output type of this zod object + z.ZodTypeDef, + V1AudioToVideoCreateResponse // the object to be transformed +> = z + .object({ + creditsCharged: z.number().int(), + estimatedFrameCost: z.number().int(), + id: z.string(), + }) + .transform((obj) => { + return zodTransform(obj, { + creditsCharged: "credits_charged", + estimatedFrameCost: "estimated_frame_cost", + id: "id", + }); + }); + +export const Schemas$V1AudioToVideoCreateResponse = { + in: SchemaIn$V1AudioToVideoCreateResponse, + out: SchemaOut$V1AudioToVideoCreateResponse, +}; diff --git a/src/types/v1-image-projects-get-response.ts b/src/types/v1-image-projects-get-response.ts index c08bd63..10456ae 100644 --- a/src/types/v1-image-projects-get-response.ts +++ b/src/types/v1-image-projects-get-response.ts @@ -53,7 +53,7 @@ export type V1ImageProjectsGetResponse = { */ totalFrameCost: number; /** - * The type of the image project. Possible values are FACE_EDITOR, AI_IMAGE_EDITOR, AI_SELFIE, AI_HEADSHOT, AI_IMAGE, AI_MEME, CLOTHES_CHANGER, BACKGROUND_REMOVER, FACE_SWAP, IMAGE_UPSCALER, AI_GIF, QR_CODE, PHOTO_EDITOR, PHOTO_COLORIZER, HEAD_SWAP, BODY_SWAP, STORYBOARD + * The type of the image project. Possible values are FACE_EDITOR, AI_IMAGE_EDITOR, AI_SELFIE, AI_HEADSHOT, AI_IMAGE, AI_MEME, CLOTHES_CHANGER, BACKGROUND_REMOVER, FACE_SWAP, IMAGE_UPSCALER, AI_GIF, QR_CODE, PHOTO_EDITOR, PHOTO_COLORIZER, HEAD_SWAP, BODY_SWAP, STORYBOARD, IMAGE_EXPANDER */ type: string; }; 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 ab770aa..3f6ec14 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 @@ -2,7 +2,7 @@ * 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 + * * `ltx-2.3`: Fast iteration with lip-sync & 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 diff --git a/src/types/v1-image-to-video-create-body.ts b/src/types/v1-image-to-video-create-body.ts index 6ecbb1a..b01a54d 100644 --- a/src/types/v1-image-to-video-create-body.ts +++ b/src/types/v1-image-to-video-create-body.ts @@ -45,7 +45,7 @@ export type V1ImageToVideoCreateBody = { * * **`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`**: 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 * @@ -61,7 +61,7 @@ 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.3`. - * * `ltx-2.3`: Fast iteration with audio, lip-sync, and end frame + * * `ltx-2.3`: Fast iteration with lip-sync & 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 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 059caf3..7231c3f 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 @@ -2,7 +2,7 @@ * 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 + * * `ltx-2.3`: Fast iteration with lip-sync & 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 diff --git a/src/types/v1-text-to-video-create-body.ts b/src/types/v1-text-to-video-create-body.ts index 1ef3ef6..b945f09 100644 --- a/src/types/v1-text-to-video-create-body.ts +++ b/src/types/v1-text-to-video-create-body.ts @@ -51,7 +51,7 @@ export type V1TextToVideoCreateBody = { * * **`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`**: 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 * @@ -61,7 +61,7 @@ export type V1TextToVideoCreateBody = { * 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 + * * `ltx-2.3`: Fast iteration with lip-sync & 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 diff --git a/test/v1-audio-to-video.test.ts b/test/v1-audio-to-video.test.ts new file mode 100644 index 0000000..01b8dd6 --- /dev/null +++ b/test/v1-audio-to-video.test.ts @@ -0,0 +1,43 @@ +import { Client, Environment } from "magic-hour"; + +describe("tests client.v1.audioToVideo.create", () => { + test.concurrent( + "POST /v1/audio-to-video | testId: success_all_params | Success test with response schema validation. Expects status code 200", + async () => { + const client = new Client({ + token: "API_TOKEN", + environment: Environment.MockServer, + }); + // Get both raw response for status and parsed response for data + const [rawResponse, response] = await Promise.all([ + client.v1.audioToVideo + .create({ + assets: { + audioFilePath: "api-assets/id/1234.mp3", + imageFilePath: "api-assets/id/1234.png", + }, + endSeconds: 15.0, + name: "My Audio To Video video", + resolution: "720p", + startSeconds: 0.0, + style: { prompt: "Car driving through a city" }, + }) + .asResponse(), + client.v1.audioToVideo.create({ + assets: { + audioFilePath: "api-assets/id/1234.mp3", + imageFilePath: "api-assets/id/1234.png", + }, + endSeconds: 15.0, + name: "My Audio To Video video", + resolution: "720p", + startSeconds: 0.0, + style: { prompt: "Car driving through a city" }, + }), + ]); + expect(rawResponse.status).toBe(200); // Exact status code match + // Response body automatically validated by Zod schema during deserialization + expect(response).toBeDefined(); + }, + ); +}); From 71ea36a8c515dcf8856e65b94eb3648fde1cf5a6 Mon Sep 17 00:00:00 2001 From: David Hu Date: Wed, 27 May 2026 10:42:04 -0700 Subject: [PATCH 2/2] feat: add generate() to audio-to-video client (#170) Co-authored-by: Cursor --- README.md | 1 + src/resources/v1/audio-to-video/README.md | 49 +++++++ .../v1/audio-to-video/resource-client.ts | 135 +++++++++++++++++- 3 files changed, 184 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a0bd59..ba2d77e 100644 --- a/README.md +++ b/README.md @@ -274,6 +274,7 @@ Valid values are: `none`, `error`, `warn`, `info`, `debug` (case insensitive). I ### [v1.audioToVideo](src/resources/v1/audio-to-video/README.md) +- [generate](src/resources/v1/audio-to-video/README.md#generate) - Audio To Video Generate Workflow - [create](src/resources/v1/audio-to-video/README.md#create) - Audio-to-Video ### [v1.autoSubtitleGenerator](src/resources/v1/auto-subtitle-generator/README.md) diff --git a/src/resources/v1/audio-to-video/README.md b/src/resources/v1/audio-to-video/README.md index f0c6cf9..41b2b6e 100644 --- a/src/resources/v1/audio-to-video/README.md +++ b/src/resources/v1/audio-to-video/README.md @@ -2,6 +2,55 @@ ## Module Functions + + +### Audio To Video Generate Workflow + +The workflow performs the following action + +1. upload local assets to Magic Hour storage. So you can pass in a local path instead of having to upload files yourself +2. trigger a generation +3. poll for a completion status. This is configurable +4. if success, download the output to local directory + +> [!TIP] +> This is the recommended way to use the SDK unless you have specific needs where it is necessary to split up the actions. + +#### Parameters + +In addition to the parameters listed in the `create` section below, `generate` introduces 3 new parameters: + +- `waitForCompletion` (boolean, default true): Whether to wait for the project to complete. +- `downloadOutputs` (boolean, default true): Whether to download the generated files +- `downloadDirectory` (string, optional): Directory to save downloaded files (defaults to current directory) + +#### Example Snippet + +```typescript +import { Client } from "magic-hour"; + +const client = new Client({ token: process.env["API_TOKEN"]!! }); +const res = await client.v1.audioToVideo.generate( + { + assets: { + audioFilePath: "/path/to/1234.mp3", + imageFilePath: "/path/to/1234.png", + }, + endSeconds: 15.0, + name: "Audio To Video video", + resolution: "720p", + startSeconds: 0.0, + }, + { + waitForCompletion: true, + downloadOutputs: true, + downloadDirectory: ".", + }, +); +``` + + + ### Audio-to-Video **What this API does** diff --git a/src/resources/v1/audio-to-video/resource-client.ts b/src/resources/v1/audio-to-video/resource-client.ts index d7a1109..fa3b3c1 100644 --- a/src/resources/v1/audio-to-video/resource-client.ts +++ b/src/resources/v1/audio-to-video/resource-client.ts @@ -6,16 +6,149 @@ import { ResourceClientOptions, } from "make-api-request-js"; +import { types } from "magic-hour"; +import { + GenerateOptions, + GenerateRequestType, +} from "magic-hour/helpers/generate-type"; +import { getLogger } from "magic-hour/logger"; +import { FilesClient } from "magic-hour/resources/v1/files"; import * as requests from "magic-hour/resources/v1/audio-to-video/request-types"; -import * as types from "magic-hour/types"; +import { VideoProjectsClient } from "magic-hour/resources/v1/video-projects"; import { Schemas$V1AudioToVideoCreateBody } from "magic-hour/types/v1-audio-to-video-create-body"; import { Schemas$V1AudioToVideoCreateResponse } from "magic-hour/types/v1-audio-to-video-create-response"; +type GenerateRequest = GenerateRequestType< + requests.CreateRequest, + { + /** + * The path of the audio file. This value is either + * - a direct URL to the audio file + * - a path to a local file + * + * Note: if the path begins with `api-assets`, it will be assumed to already be uploaded to Magic Hour's storage, and will not be uploaded again. + */ + audioFilePath: string; + /** + * Reference image for the initial frame of the video. This value is either + * - a direct URL to the image file + * - a path to a local file + * + * Note: if the path begins with `api-assets`, it will be assumed to already be uploaded to Magic Hour's storage, and will not be uploaded again. + */ + imageFilePath?: string | undefined; + } +>; + export class AudioToVideoClient extends CoreResourceClient { constructor(coreClient: CoreClient, opts: ResourceClientOptions) { super(coreClient, opts); } + /** + * Audio-to-Video + * + * Create a Audio To Video video + * + * This method provides a convenient way to create a request and automatically wait for completion and download outputs. + * + * @example + * ```typescript + * import { Client } from "magic-hour"; + * + * const client = new Client({ token: process.env["API_TOKEN"]!! }); + * const res = await client.v1.audioToVideo.generate( + * { + * assets: { + * audioFilePath: "/path/to/1234.mp3", + * imageFilePath: "/path/to/1234.png", + * }, + * endSeconds: 15.0, + * name: "Audio To Video video", + * resolution: "720p", + * startSeconds: 0.0, + * }, + * { + * waitForCompletion: true, + * downloadOutputs: true, + * downloadDirectory: ".", + * }, + * ); + * ``` + */ + async generate(request: GenerateRequest, opts: GenerateOptions = {}) { + const { + waitForCompletion = true, + downloadOutputs = true, + downloadDirectory = undefined, + ...createOpts + } = opts; + + const fileClient = new FilesClient(this._client, this._opts); + const { audioFilePath, imageFilePath, ...restAssets } = request.assets; + + getLogger().debug( + `Uploading file ${audioFilePath} to Magic Hour's storage`, + ); + if (imageFilePath) { + getLogger().debug( + `Uploading file ${imageFilePath} to Magic Hour's storage`, + ); + } + + const [uploadedAudioFilePath, uploadedImageFilePath] = await Promise.all([ + fileClient.uploadFile(audioFilePath), + imageFilePath + ? fileClient.uploadFile(imageFilePath) + : Promise.resolve(imageFilePath), + ]); + + getLogger().info( + `Uploaded file ${audioFilePath} to Magic Hour's storage as ${uploadedAudioFilePath}`, + ); + if (imageFilePath) { + getLogger().info( + `Uploaded file ${imageFilePath} to Magic Hour's storage as ${uploadedImageFilePath}`, + ); + } + + const createResponse = await this.create( + { + ...request, + assets: { + ...restAssets, + audioFilePath: uploadedAudioFilePath, + imageFilePath: imageFilePath + ? uploadedImageFilePath + : imageFilePath, + }, + }, + createOpts, + ); + + getLogger().info( + `Created AudioToVideoClient project ${createResponse.id}`, + ); + + const projectsClient = new VideoProjectsClient(this._client, this._opts); + + getLogger().debug( + `Checking result for AudioToVideoClient project ${createResponse.id}`, + ); + + const result = await projectsClient.checkResult( + { id: createResponse.id }, + { + waitForCompletion, + downloadOutputs, + downloadDirectory, + ...createOpts, + }, + ); + + return result; + } + /** * Audio-to-Video *