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": "8535dd0e-5fe8-4908-8220-9772d176fe80",
"id": "b6677cdc-40f8-46f2-b827-7a1e9e18ff6c",
"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.79.0"
MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.80.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 @@ -153,6 +153,7 @@ def create(
"default",
"flux-2-klein",
"gpt-image-2",
"gpt-image-2.5-flare",
"nano-banana",
"nano-banana-2",
"nano-banana-2-lite",
Expand Down Expand Up @@ -198,6 +199,10 @@ def create(
- Supported resolutions: 640px, 1k, 2k, 4k
- Available for tiers: creator, pro, business
- Max additional input images: 9
- `gpt-image-2.5-flare` - from 100 credits/image
- Supported resolutions: 640px, 1k, 2k, 4k
- Available for tiers: creator, pro, business
- Max additional input images: 9
- `nano-banana` - from 50 credits/image
- Supported resolutions: 640px, 1k
- Available for tiers: creator, pro, business
Expand Down Expand Up @@ -244,6 +249,7 @@ def create(
**Per-model support:**
- `flux-2-klein` - 640px, 1k, 2k
- `gpt-image-2` - 640px, 1k, 2k, 4k
- `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
- `nano-banana` - 640px, 1k
- `nano-banana-2` - 640px, 1k, 2k, 4k
- `nano-banana-2-lite` - 640px, 1k
Expand Down Expand Up @@ -436,6 +442,7 @@ async def create(
"default",
"flux-2-klein",
"gpt-image-2",
"gpt-image-2.5-flare",
"nano-banana",
"nano-banana-2",
"nano-banana-2-lite",
Expand Down Expand Up @@ -481,6 +488,10 @@ async def create(
- Supported resolutions: 640px, 1k, 2k, 4k
- Available for tiers: creator, pro, business
- Max additional input images: 9
- `gpt-image-2.5-flare` - from 100 credits/image
- Supported resolutions: 640px, 1k, 2k, 4k
- Available for tiers: creator, pro, business
- Max additional input images: 9
- `nano-banana` - from 50 credits/image
- Supported resolutions: 640px, 1k
- Available for tiers: creator, pro, business
Expand Down Expand Up @@ -527,6 +538,7 @@ async def create(
**Per-model support:**
- `flux-2-klein` - 640px, 1k, 2k
- `gpt-image-2` - 640px, 1k, 2k, 4k
- `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
- `nano-banana` - 640px, 1k
- `nano-banana-2` - 640px, 1k, 2k, 4k
- `nano-banana-2-lite` - 640px, 1k
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 @@ -134,6 +134,7 @@ def create(
"flux-2-klein",
"flux-schnell",
"gpt-image-2",
"gpt-image-2.5-flare",
"nano-banana",
"nano-banana-2",
"nano-banana-2-lite",
Expand Down Expand Up @@ -188,6 +189,10 @@ def create(
- Supported resolutions: 640px, 1k, 2k, 4k
- Available for tiers: creator, pro, business
- Image count allowed: 1, 2, 3, 4
- `gpt-image-2.5-flare` - from 100 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
Expand Down Expand Up @@ -237,6 +242,7 @@ def create(
- `flux-2-klein` - 640px, 1k, 2k
- `flux-schnell` - 640px, 1k, 2k
- `gpt-image-2` - 640px, 1k, 2k, 4k
- `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
- `nano-banana` - 640px, 1k
- `nano-banana-2` - 640px, 1k, 2k, 4k
- `nano-banana-2-lite` - 640px, 1k
Expand Down Expand Up @@ -399,6 +405,7 @@ async def create(
"flux-2-klein",
"flux-schnell",
"gpt-image-2",
"gpt-image-2.5-flare",
"nano-banana",
"nano-banana-2",
"nano-banana-2-lite",
Expand Down Expand Up @@ -453,6 +460,10 @@ async def create(
- Supported resolutions: 640px, 1k, 2k, 4k
- Available for tiers: creator, pro, business
- Image count allowed: 1, 2, 3, 4
- `gpt-image-2.5-flare` - from 100 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
Expand Down Expand Up @@ -502,6 +513,7 @@ async def create(
- `flux-2-klein` - 640px, 1k, 2k
- `flux-schnell` - 640px, 1k, 2k
- `gpt-image-2` - 640px, 1k, 2k, 4k
- `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
- `nano-banana` - 640px, 1k
- `nano-banana-2` - 640px, 1k, 2k, 4k
- `nano-banana-2-lite` - 640px, 1k
Expand Down
12 changes: 6 additions & 6 deletions magic_hour/resources/v1/ai_voice_generator/README.md

Large diffs are not rendered by default.

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 @@ -41,6 +41,7 @@ class V1AiImageEditorCreateBody(typing_extensions.TypedDict):
"default",
"flux-2-klein",
"gpt-image-2",
"gpt-image-2.5-flare",
"nano-banana",
"nano-banana-2",
"nano-banana-2-lite",
Expand All @@ -64,6 +65,10 @@ class V1AiImageEditorCreateBody(typing_extensions.TypedDict):
- Supported resolutions: 640px, 1k, 2k, 4k
- Available for tiers: creator, pro, business
- Max additional input images: 9
- `gpt-image-2.5-flare` - from 100 credits/image
- Supported resolutions: 640px, 1k, 2k, 4k
- Available for tiers: creator, pro, business
- Max additional input images: 9
- `nano-banana` - from 50 credits/image
- Supported resolutions: 640px, 1k
- Available for tiers: creator, pro, business
Expand Down Expand Up @@ -120,6 +125,7 @@ class V1AiImageEditorCreateBody(typing_extensions.TypedDict):
**Per-model support:**
- `flux-2-klein` - 640px, 1k, 2k
- `gpt-image-2` - 640px, 1k, 2k, 4k
- `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
- `nano-banana` - 640px, 1k
- `nano-banana-2` - 640px, 1k, 2k, 4k
- `nano-banana-2-lite` - 640px, 1k
Expand Down Expand Up @@ -161,6 +167,7 @@ class _SerializerV1AiImageEditorCreateBody(pydantic.BaseModel):
"default",
"flux-2-klein",
"gpt-image-2",
"gpt-image-2.5-flare",
"nano-banana",
"nano-banana-2",
"nano-banana-2-lite",
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 @@ -31,6 +31,7 @@ class V1AiImageGeneratorCreateBody(typing_extensions.TypedDict):
"flux-2-klein",
"flux-schnell",
"gpt-image-2",
"gpt-image-2.5-flare",
"nano-banana",
"nano-banana-2",
"nano-banana-2-lite",
Expand Down Expand Up @@ -58,6 +59,10 @@ class V1AiImageGeneratorCreateBody(typing_extensions.TypedDict):
- Supported resolutions: 640px, 1k, 2k, 4k
- Available for tiers: creator, pro, business
- Image count allowed: 1, 2, 3, 4
- `gpt-image-2.5-flare` - from 100 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
Expand Down Expand Up @@ -123,6 +128,7 @@ class V1AiImageGeneratorCreateBody(typing_extensions.TypedDict):
- `flux-2-klein` - 640px, 1k, 2k
- `flux-schnell` - 640px, 1k, 2k
- `gpt-image-2` - 640px, 1k, 2k, 4k
- `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
- `nano-banana` - 640px, 1k
- `nano-banana-2` - 640px, 1k, 2k, 4k
- `nano-banana-2-lite` - 640px, 1k
Expand Down Expand Up @@ -162,6 +168,7 @@ class _SerializerV1AiImageGeneratorCreateBody(pydantic.BaseModel):
"flux-2-klein",
"flux-schnell",
"gpt-image-2",
"gpt-image-2.5-flare",
"nano-banana",
"nano-banana-2",
"nano-banana-2-lite",
Expand Down
Loading
Loading