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": "34fe0cae-af25-4fc9-90f3-9f7e689be4d3",
"id": "5ab133c6-92ce-43aa-9150-24f61ee303a2",
"tracked_paths": [
{
"editable": true,
Expand Down
2 changes: 1 addition & 1 deletion magic_hour/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Environment(enum.Enum):
"""Pre-defined base URLs for the API"""

ENVIRONMENT = "https://api.magichour.ai"
MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.65.1"
MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.66.0"


def _get_base_url(
Expand Down
26 changes: 13 additions & 13 deletions magic_hour/resources/v1/ai_image_editor/README.md

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions magic_hour/resources/v1/ai_image_editor/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def create(
typing.Optional[
typing_extensions.Literal[
"default",
"flux-2-klein",
"gpt-image-2",
"nano-banana",
"nano-banana-2",
Expand Down Expand Up @@ -191,6 +192,10 @@ def create(
- 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 @@ -228,6 +233,7 @@ def create(

**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 @@ -416,6 +422,7 @@ async def create(
typing.Optional[
typing_extensions.Literal[
"default",
"flux-2-klein",
"gpt-image-2",
"nano-banana",
"nano-banana-2",
Expand Down Expand Up @@ -456,6 +463,10 @@ async def create(
- 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 @@ -493,6 +504,7 @@ async def create(

**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
24 changes: 12 additions & 12 deletions magic_hour/resources/v1/ai_image_generator/README.md

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions magic_hour/resources/v1/ai_image_generator/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def create(
typing.Optional[
typing_extensions.Literal[
"default",
"flux-2-klein",
"flux-schnell",
"gpt-image-2",
"nano-banana",
Expand Down Expand Up @@ -177,6 +178,10 @@ def create(
- 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 @@ -220,6 +225,7 @@ def create(

**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 @@ -378,6 +384,7 @@ async def create(
typing.Optional[
typing_extensions.Literal[
"default",
"flux-2-klein",
"flux-schnell",
"gpt-image-2",
"nano-banana",
Expand Down Expand Up @@ -424,6 +431,10 @@ async def create(
- 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 @@ -467,6 +478,7 @@ async def create(

**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
2 changes: 1 addition & 1 deletion magic_hour/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
4 changes: 2 additions & 2 deletions magic_hour/resources/v1/files/upload_urls/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def create(

**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 Expand Up @@ -96,7 +96,7 @@ async def create(

**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
7 changes: 7 additions & 0 deletions magic_hour/types/params/v1_ai_image_editor_create_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class V1AiImageEditorCreateBody(typing_extensions.TypedDict):
model: typing_extensions.NotRequired[
typing_extensions.Literal[
"default",
"flux-2-klein",
"gpt-image-2",
"nano-banana",
"nano-banana-2",
Expand All @@ -57,6 +58,10 @@ class V1AiImageEditorCreateBody(typing_extensions.TypedDict):
- 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 @@ -104,6 +109,7 @@ class V1AiImageEditorCreateBody(typing_extensions.TypedDict):

**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 @@ -141,6 +147,7 @@ class _SerializerV1AiImageEditorCreateBody(pydantic.BaseModel):
model: typing.Optional[
typing_extensions.Literal[
"default",
"flux-2-klein",
"gpt-image-2",
"nano-banana",
"nano-banana-2",
Expand Down
7 changes: 7 additions & 0 deletions magic_hour/types/params/v1_ai_image_generator_create_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class V1AiImageGeneratorCreateBody(typing_extensions.TypedDict):
model: typing_extensions.NotRequired[
typing_extensions.Literal[
"default",
"flux-2-klein",
"flux-schnell",
"gpt-image-2",
"nano-banana",
Expand All @@ -47,6 +48,10 @@ class V1AiImageGeneratorCreateBody(typing_extensions.TypedDict):
- 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 @@ -106,6 +111,7 @@ class V1AiImageGeneratorCreateBody(typing_extensions.TypedDict):

**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 @@ -141,6 +147,7 @@ class _SerializerV1AiImageGeneratorCreateBody(pydantic.BaseModel):
model: typing.Optional[
typing_extensions.Literal[
"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 @@ -9,7 +9,7 @@ class V1FilesUploadUrlsCreateBodyItemsItem(typing_extensions.TypedDict):

extension: typing_extensions.Required[str]
"""
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
"""

type_: typing_extensions.Required[
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "magic_hour"
version = "0.65.1"
version = "0.66.0"
description = "Python SDK for Magic Hour API"
readme = "README.md"
authors = []
Expand Down
Loading