Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "162ebd5e-4d93-49e5-b1f4-80d4fb658b2f",
"id": "eee3cb82-29c6-4279-a54e-9a1b657400d9",
"tracked_paths": [
{
"editable": true,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "magic-hour",
"version": "0.71.3",
"version": "0.72.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
Expand Down Expand Up @@ -69,4 +69,4 @@
"type": "git",
"url": "https://github.com/magichourhq/magic-hour-node.git"
}
}
}
2 changes: 1 addition & 1 deletion src/environment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export enum Environment {
Environment = "https://api.magichour.ai",
MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.75.2",
MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.76.0",
}
2 changes: 1 addition & 1 deletion src/resources/v1/ai-clothes-changer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Change outfits in photos in seconds with just a photo reference. Each photo cost
| -------------------- | :------: | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `assets` | ✓ | Provide the assets for clothes changer | `{"garmentFilePath": "api-assets/id/outfit.png", "garmentType": "entire_outfit", "personFilePath": "api-assets/id/model.png"}` |
| `└─ garmentFilePath` | ✓ | The image of the outfit. 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/outfit.png"` |
| `└─ garmentType` | ✗ | Type of garment to swap. If not provided, swaps the entire outfit. * `upper_body` - for shirts/jackets * `lower_body` - for pants/skirts * `dresses` - for entire outfit (deprecated, use `entire_outfit` instead) * `entire_outfit` - for entire outfit | `"entire_outfit"` |
| `└─ garmentType` | ✗ | Type of clothing item to swap. If not provided, swaps the entire outfit. * `upper_body` - for shirts/jackets * `lower_body` - for pants/skirts * `dresses` - for entire outfit (deprecated, use `entire_outfit` instead) * `entire_outfit` - for entire outfit | `"entire_outfit"` |
| `└─ personFilePath` | ✓ | The image with the person. 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/model.png"` |
| `name` | ✗ | Give your image a custom name for easy identification. | `"My Clothes Changer image"` |

Expand Down
4 changes: 2 additions & 2 deletions src/resources/v1/ai-talking-photo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ Create a talking photo from an image and audio or text input.
| `assets` | ✓ | Provide the assets for creating a talking photo | `{"audioFilePath": "api-assets/id/1234.mp3", "imageFilePath": "api-assets/id/1234.png"}` |
| `└─ audioFilePath` | ✓ | The audio file to sync with the image. 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` | ✓ | The source image to animate. 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 end time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 180s, prompted 45s. | `15.0` |
| `startSeconds` | ✓ | The start time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 180s, prompted 45s. | `0.0` |
| `endSeconds` | ✓ | The end time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 300s, prompted 45s. | `15.0` |
| `startSeconds` | ✓ | The start time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 300s, prompted 45s. | `0.0` |
| `maxResolution` | ✗ | Constrains the larger dimension (height or width) of the output video. Allows you to set a lower resolution than your plan's maximum if desired. The value is capped by your plan's max resolution. | `1024` |
| `name` | ✗ | Give your image a custom name for easy identification. | `"My Talking Photo image"` |
| `style` | ✗ | Attributes used to dictate the style of the output | `{"generationMode": "realistic"}` |
Expand Down
4 changes: 2 additions & 2 deletions src/resources/v1/ai-talking-photo/request-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type CreateRequest = {
*/
assets: V1AiTalkingPhotoCreateBodyAssets;
/**
* The end time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 180s, prompted 45s.
* The end time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 300s, prompted 45s.
*/
endSeconds: number;
/**
Expand All @@ -33,7 +33,7 @@ export type CreateRequest = {
*/
name?: string | undefined;
/**
* The start time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 180s, prompted 45s.
* The start time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 300s, prompted 45s.
*/
startSeconds: number;
/**
Expand Down
Loading
Loading