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": "04345ae8-b8e3-4a3a-804d-3c759d394cf1",
"id": "b48fe3db-9277-4a77-a82d-9d6e235c59fb",
"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.64.1",
"version": "0.65.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.65.1",
MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.66.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 @@ -39,6 +39,10 @@ export type CreateRequest = {
* - Supported resolutions: 640px, 1k, 2k
* - Available for tiers: free, creator, pro, business
* - Max additional input images: 2
* - `flux-2-klein` - from 5 credits/image
* - Supported resolutions: 640px, 1k, 2k
* - Available for tiers: free, creator, pro, business
* - Max additional input images: 5
* - `nano-banana` - from 50 credits/image
* - Supported resolutions: 640px, 1k
* - Available for tiers: creator, pro, business
Expand Down Expand Up @@ -68,6 +72,7 @@ export type CreateRequest = {
model?:
| (
| "default"
| "flux-2-klein"
| "gpt-image-2"
| "nano-banana"
| "nano-banana-2"
Expand All @@ -93,6 +98,7 @@ export type CreateRequest = {
*
* **Per-model support:**
* - `qwen-edit` - 640px, 1k, 2k
* - `flux-2-klein` - 640px, 1k, 2k
* - `nano-banana` - 640px, 1k
* - `nano-banana-2` - 640px, 1k, 2k, 4k
* - `seedream-v4` - 640px, 1k, 2k, 4k
Expand Down Expand Up @@ -120,6 +126,7 @@ export type External$CreateRequest = {
model?:
| (
| "default"
| "flux-2-klein"
| "gpt-image-2"
| "nano-banana"
| "nano-banana-2"
Expand Down Expand Up @@ -151,6 +158,7 @@ const SchemaIn$CreateRequest: z.ZodType<
model: z
.enum([
"default",
"flux-2-klein",
"gpt-image-2",
"nano-banana",
"nano-banana-2",
Expand Down Expand Up @@ -194,6 +202,7 @@ const SchemaOut$CreateRequest: z.ZodType<
model: z
.enum([
"default",
"flux-2-klein",
"gpt-image-2",
"nano-banana",
"nano-banana-2",
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 @@ -28,6 +28,10 @@ export type CreateRequest = {
* - Supported resolutions: 640px, 1k, 2k
* - Available for tiers: free, creator, pro, business
* - Image count allowed: 1, 2, 3, 4
* - `flux-2-klein` - from 5 credits/image
* - Supported resolutions: 640px, 1k, 2k
* - Available for tiers: free, creator, pro, business
* - Image count allowed: 1
* - `z-image-turbo` - from 5 credits/image
* - Supported resolutions: 640px, 1k, 2k
* - Available for tiers: free, creator, pro, business
Expand Down Expand Up @@ -60,6 +64,7 @@ export type CreateRequest = {
model?:
| (
| "default"
| "flux-2-klein"
| "flux-schnell"
| "gpt-image-2"
| "nano-banana"
Expand Down Expand Up @@ -92,6 +97,7 @@ export type CreateRequest = {
*
* **Per-model support:**
* - `flux-schnell` - 640px, 1k, 2k
* - `flux-2-klein` - 640px, 1k, 2k
* - `z-image-turbo` - 640px, 1k, 2k
* - `seedream-v4` - 640px, 1k, 2k, 4k
* - `nano-banana` - 640px, 1k
Expand Down Expand Up @@ -119,6 +125,7 @@ export type External$CreateRequest = {
model?:
| (
| "default"
| "flux-2-klein"
| "flux-schnell"
| "gpt-image-2"
| "nano-banana"
Expand Down Expand Up @@ -149,6 +156,7 @@ const SchemaIn$CreateRequest: z.ZodType<
model: z
.enum([
"default",
"flux-2-klein",
"flux-schnell",
"gpt-image-2",
"nano-banana",
Expand Down Expand Up @@ -191,6 +199,7 @@ const SchemaOut$CreateRequest: z.ZodType<
model: z
.enum([
"default",
"flux-2-klein",
"flux-schnell",
"gpt-image-2",
"nano-banana",
Expand Down
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 @@ -11,7 +11,7 @@ The response array will match the order of items in the request body.
**Valid file extensions per asset type**:

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

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 @@ -25,7 +25,7 @@ export class UploadUrlsClient extends CoreResourceClient {
*
* **Valid file extensions per asset type**:
* - video: mp4, m4v, mov, webm
* - audio: mp3, wav, aac, flac, webm, m4a
* - audio: mp3, wav, aac, flac, webm, m4a, opus, ogg, aiff, amr
* - image: png, jpg, jpeg, heic, heif, webp, avif, jp2, tiff, bmp
* - gif: gif, webp, webm
*
Expand Down
5 changes: 5 additions & 0 deletions src/types/v1-ai-image-editor-create-body-model-enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
* - Supported resolutions: 640px, 1k, 2k
* - Available for tiers: free, creator, pro, business
* - Max additional input images: 2
* - `flux-2-klein` - from 5 credits/image
* - Supported resolutions: 640px, 1k, 2k
* - Available for tiers: free, creator, pro, business
* - Max additional input images: 5
* - `nano-banana` - from 50 credits/image
* - Supported resolutions: 640px, 1k
* - Available for tiers: creator, pro, business
Expand Down Expand Up @@ -35,6 +39,7 @@
*/
export type V1AiImageEditorCreateBodyModelEnum =
| "default"
| "flux-2-klein"
| "gpt-image-2"
| "nano-banana"
| "nano-banana-2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*
* **Per-model support:**
* - `qwen-edit` - 640px, 1k, 2k
* - `flux-2-klein` - 640px, 1k, 2k
* - `nano-banana` - 640px, 1k
* - `nano-banana-2` - 640px, 1k, 2k, 4k
* - `seedream-v4` - 640px, 1k, 2k, 4k
Expand Down
9 changes: 9 additions & 0 deletions src/types/v1-ai-image-editor-create-body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export type V1AiImageEditorCreateBody = {
* - Supported resolutions: 640px, 1k, 2k
* - Available for tiers: free, creator, pro, business
* - Max additional input images: 2
* - `flux-2-klein` - from 5 credits/image
* - Supported resolutions: 640px, 1k, 2k
* - Available for tiers: free, creator, pro, business
* - Max additional input images: 5
* - `nano-banana` - from 50 credits/image
* - Supported resolutions: 640px, 1k
* - Available for tiers: creator, pro, business
Expand Down Expand Up @@ -68,6 +72,7 @@ export type V1AiImageEditorCreateBody = {
model?:
| (
| "default"
| "flux-2-klein"
| "gpt-image-2"
| "nano-banana"
| "nano-banana-2"
Expand All @@ -93,6 +98,7 @@ export type V1AiImageEditorCreateBody = {
*
* **Per-model support:**
* - `qwen-edit` - 640px, 1k, 2k
* - `flux-2-klein` - 640px, 1k, 2k
* - `nano-banana` - 640px, 1k
* - `nano-banana-2` - 640px, 1k, 2k, 4k
* - `seedream-v4` - 640px, 1k, 2k, 4k
Expand Down Expand Up @@ -120,6 +126,7 @@ export type External$V1AiImageEditorCreateBody = {
model?:
| (
| "default"
| "flux-2-klein"
| "gpt-image-2"
| "nano-banana"
| "nano-banana-2"
Expand Down Expand Up @@ -151,6 +158,7 @@ const SchemaIn$V1AiImageEditorCreateBody: z.ZodType<
model: z
.enum([
"default",
"flux-2-klein",
"gpt-image-2",
"nano-banana",
"nano-banana-2",
Expand Down Expand Up @@ -194,6 +202,7 @@ const SchemaOut$V1AiImageEditorCreateBody: z.ZodType<
model: z
.enum([
"default",
"flux-2-klein",
"gpt-image-2",
"nano-banana",
"nano-banana-2",
Expand Down
5 changes: 5 additions & 0 deletions src/types/v1-ai-image-generator-create-body-model-enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
* - Supported resolutions: 640px, 1k, 2k
* - Available for tiers: free, creator, pro, business
* - Image count allowed: 1, 2, 3, 4
* - `flux-2-klein` - from 5 credits/image
* - Supported resolutions: 640px, 1k, 2k
* - Available for tiers: free, creator, pro, business
* - Image count allowed: 1
* - `z-image-turbo` - from 5 credits/image
* - Supported resolutions: 640px, 1k, 2k
* - Available for tiers: free, creator, pro, business
Expand Down Expand Up @@ -38,6 +42,7 @@
*/
export type V1AiImageGeneratorCreateBodyModelEnum =
| "default"
| "flux-2-klein"
| "flux-schnell"
| "gpt-image-2"
| "nano-banana"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*
* **Per-model support:**
* - `flux-schnell` - 640px, 1k, 2k
* - `flux-2-klein` - 640px, 1k, 2k
* - `z-image-turbo` - 640px, 1k, 2k
* - `seedream-v4` - 640px, 1k, 2k, 4k
* - `nano-banana` - 640px, 1k
Expand Down
9 changes: 9 additions & 0 deletions src/types/v1-ai-image-generator-create-body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ export type V1AiImageGeneratorCreateBody = {
* - Supported resolutions: 640px, 1k, 2k
* - Available for tiers: free, creator, pro, business
* - Image count allowed: 1, 2, 3, 4
* - `flux-2-klein` - from 5 credits/image
* - Supported resolutions: 640px, 1k, 2k
* - Available for tiers: free, creator, pro, business
* - Image count allowed: 1
* - `z-image-turbo` - from 5 credits/image
* - Supported resolutions: 640px, 1k, 2k
* - Available for tiers: free, creator, pro, business
Expand Down Expand Up @@ -60,6 +64,7 @@ export type V1AiImageGeneratorCreateBody = {
model?:
| (
| "default"
| "flux-2-klein"
| "flux-schnell"
| "gpt-image-2"
| "nano-banana"
Expand Down Expand Up @@ -92,6 +97,7 @@ export type V1AiImageGeneratorCreateBody = {
*
* **Per-model support:**
* - `flux-schnell` - 640px, 1k, 2k
* - `flux-2-klein` - 640px, 1k, 2k
* - `z-image-turbo` - 640px, 1k, 2k
* - `seedream-v4` - 640px, 1k, 2k, 4k
* - `nano-banana` - 640px, 1k
Expand Down Expand Up @@ -119,6 +125,7 @@ export type External$V1AiImageGeneratorCreateBody = {
model?:
| (
| "default"
| "flux-2-klein"
| "flux-schnell"
| "gpt-image-2"
| "nano-banana"
Expand Down Expand Up @@ -149,6 +156,7 @@ const SchemaIn$V1AiImageGeneratorCreateBody: z.ZodType<
model: z
.enum([
"default",
"flux-2-klein",
"flux-schnell",
"gpt-image-2",
"nano-banana",
Expand Down Expand Up @@ -191,6 +199,7 @@ const SchemaOut$V1AiImageGeneratorCreateBody: z.ZodType<
model: z
.enum([
"default",
"flux-2-klein",
"flux-schnell",
"gpt-image-2",
"nano-banana",
Expand Down
2 changes: 1 addition & 1 deletion src/types/v1-files-upload-urls-create-body-items-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as z from "zod";
*/
export type V1FilesUploadUrlsCreateBodyItemsItem = {
/**
* The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,m4a,png,jpg,jpeg,heic,heif,webp,avif,jp2,tiff,bmp,gif,webp,webm
* The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,m4a,opus,ogg,aiff,amr,png,jpg,jpeg,heic,heif,webp,avif,jp2,tiff,bmp,gif,webp,webm
*/
extension: string;
/**
Expand Down
Loading