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": "b48fe3db-9277-4a77-a82d-9d6e235c59fb",
"id": "08f97eb1-af23-4f39-876f-bf2890f073a6",
"tracked_paths": [
{
"editable": true,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "magic-hour",
"version": "0.65.0",
"version": "0.66.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/environment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export enum Environment {
Environment = "https://api.magichour.ai",
MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.66.0",
MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.67.0",
}
26 changes: 13 additions & 13 deletions src/resources/v1/ai-image-editor/README.md

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/resources/v1/ai-image-editor/request-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ export type CreateRequest = {
* - Supported resolutions: 640px, 1k, 2k, 4k
* - Available for tiers: creator, pro, business
* - Max additional input images: 9
* - `nano-banana-2-lite` - from 50 credits/image
* - Supported resolutions: 640px, 1k
* - Available for tiers: creator, pro, business
* - Max additional input images: 9
* - `seedream-v4` - from 40 credits/image
* - Supported resolutions: 640px, 1k, 2k, 4k
* - Available for tiers: creator, pro, business
Expand All @@ -76,6 +80,7 @@ export type CreateRequest = {
| "gpt-image-2"
| "nano-banana"
| "nano-banana-2"
| "nano-banana-2-lite"
| "nano-banana-pro"
| "qwen-edit"
| "seedream-v4"
Expand All @@ -101,6 +106,7 @@ export type CreateRequest = {
* - `flux-2-klein` - 640px, 1k, 2k
* - `nano-banana` - 640px, 1k
* - `nano-banana-2` - 640px, 1k, 2k, 4k
* - `nano-banana-2-lite` - 640px, 1k
* - `seedream-v4` - 640px, 1k, 2k, 4k
* - `nano-banana-pro` - 1k, 2k, 4k
* - `seedream-v4.5` - 640px, 1k, 2k, 4k
Expand Down Expand Up @@ -130,6 +136,7 @@ export type External$CreateRequest = {
| "gpt-image-2"
| "nano-banana"
| "nano-banana-2"
| "nano-banana-2-lite"
| "nano-banana-pro"
| "qwen-edit"
| "seedream-v4"
Expand Down Expand Up @@ -162,6 +169,7 @@ const SchemaIn$CreateRequest: z.ZodType<
"gpt-image-2",
"nano-banana",
"nano-banana-2",
"nano-banana-2-lite",
"nano-banana-pro",
"qwen-edit",
"seedream-v4",
Expand Down Expand Up @@ -206,6 +214,7 @@ const SchemaOut$CreateRequest: z.ZodType<
"gpt-image-2",
"nano-banana",
"nano-banana-2",
"nano-banana-2-lite",
"nano-banana-pro",
"qwen-edit",
"seedream-v4",
Expand Down
24 changes: 12 additions & 12 deletions src/resources/v1/ai-image-generator/README.md

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/resources/v1/ai-image-generator/request-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export type CreateRequest = {
* - Supported resolutions: 640px, 1k
* - Available for tiers: creator, pro, business
* - Image count allowed: 1, 2, 3, 4
* - `nano-banana-2-lite` - from 50 credits/image
* - Supported resolutions: 640px, 1k
* - Available for tiers: creator, pro, business
* - Image count allowed: 1, 2, 3, 4
* - `nano-banana-2` - from 100 credits/image
* - Supported resolutions: 640px, 1k, 2k, 4k
* - Available for tiers: creator, pro, business
Expand All @@ -69,6 +73,7 @@ export type CreateRequest = {
| "gpt-image-2"
| "nano-banana"
| "nano-banana-2"
| "nano-banana-2-lite"
| "nano-banana-pro"
| "seedream"
| "seedream-v4"
Expand Down Expand Up @@ -101,6 +106,7 @@ export type CreateRequest = {
* - `z-image-turbo` - 640px, 1k, 2k
* - `seedream-v4` - 640px, 1k, 2k, 4k
* - `nano-banana` - 640px, 1k
* - `nano-banana-2-lite` - 640px, 1k
* - `nano-banana-2` - 640px, 1k, 2k, 4k
* - `nano-banana-pro` - 1k, 2k, 4k
* - `gpt-image-2` - 640px, 1k, 2k, 4k
Expand Down Expand Up @@ -130,6 +136,7 @@ export type External$CreateRequest = {
| "gpt-image-2"
| "nano-banana"
| "nano-banana-2"
| "nano-banana-2-lite"
| "nano-banana-pro"
| "seedream"
| "seedream-v4"
Expand Down Expand Up @@ -161,6 +168,7 @@ const SchemaIn$CreateRequest: z.ZodType<
"gpt-image-2",
"nano-banana",
"nano-banana-2",
"nano-banana-2-lite",
"nano-banana-pro",
"seedream",
"seedream-v4",
Expand Down Expand Up @@ -204,6 +212,7 @@ const SchemaOut$CreateRequest: z.ZodType<
"gpt-image-2",
"nano-banana",
"nano-banana-2",
"nano-banana-2-lite",
"nano-banana-pro",
"seedream",
"seedream-v4",
Expand Down
12 changes: 6 additions & 6 deletions src/resources/v1/ai-voice-generator/README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/resources/v1/files/upload-urls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The response array will match the order of items in the request body.

- video: mp4, m4v, mov, webm
- audio: mp3, wav, aac, flac, webm, m4a, opus, ogg, aiff, amr
- image: png, jpg, jpeg, heic, heif, webp, avif, jp2, tiff, bmp
- image: png, jpg, jpeg, jfif, heic, heif, webp, avif, jp2, tiff, bmp
- gif: gif, webp, webm

> Note: `gif` is only supported for face swap API `video_file_path` field.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/v1/files/upload-urls/resource-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class UploadUrlsClient extends CoreResourceClient {
* **Valid file extensions per asset type**:
* - video: mp4, m4v, mov, webm
* - audio: mp3, wav, aac, flac, webm, m4a, opus, ogg, aiff, amr
* - image: png, jpg, jpeg, heic, heif, webp, avif, jp2, tiff, bmp
* - image: png, jpg, jpeg, jfif, heic, heif, webp, avif, jp2, tiff, bmp
* - gif: gif, webp, webm
*
* > Note: `gif` is only supported for face swap API `video_file_path` field.
Expand Down
Loading
Loading