Skip to content

feat: add nano-banana-2.1 image generation and editing - #180

Merged
davidhu2000 merged 2 commits into
mainfrom
sdk-release-2026/10/09-21.28.10
Oct 9, 2026
Merged

davidhu2000 merged 2 commits into
mainfrom
sdk-release-2026/10/09-21.28.10

Conversation

@magic-hour-sdk-bot

Copy link
Copy Markdown
Contributor

Features

  • Added nano-banana-2.1 to POST /v1/ai-image-generator and POST /v1/ai-image-editor

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

⚠️ Parameter Sync Check Failed

The generate() methods are missing parameters that exist in create() methods, or their param types/defaults differ from create().

Checking 29 client files with generate() methods...

OK: ai_clothes_changer
OK: ai_face_editor
OK: ai_gif_generator
OK: ai_headshot_generator
MISMATCH: ai_image_editor
  File: ./magic_hour/resources/v1/ai_image_editor/client.py
  sync client - Definition differs from create(): model
  async client - Definition differs from create(): model

MISMATCH: ai_image_generator
  File: ./magic_hour/resources/v1/ai_image_generator/client.py
  sync client - Definition differs from create(): model
  async client - Definition differs from create(): model

OK: ai_image_upscaler
OK: ai_meme_generator
OK: ai_qr_code_generator
OK: ai_talking_photo
OK: ai_video_editor
OK: ai_video_translator
OK: ai_voice_cloner
OK: ai_voice_generator
OK: animation
OK: audio_to_video
OK: auto_subtitle_generator
OK: body_swap
OK: character_replace
OK: face_detection
OK: face_swap
OK: face_swap_photo
OK: head_swap
OK: image_background_remover
OK: image_to_video
OK: lip_sync
OK: photo_colorizer
OK: text_to_video
OK: video_to_video

============================================================

Found 2 file(s) with parameter mismatches:

Applying fixes...

  Fixing ai_image_editor...
    sync client - Definition differs from create(): model
    async client - Definition differs from create(): model
    ✓ Fixed ./magic_hour/resources/v1/ai_image_editor/client.py

  Fixing ai_image_generator...
    sync client - Definition differs from create(): model
    async client - Definition differs from create(): model
    ✓ Fixed ./magic_hour/resources/v1/ai_image_generator/client.py

Fixed 2 of 2 file(s)

Re-checking files...
  ai_image_editor: ✓ All fixed
  ai_image_generator: ✓ All fixed

✓ All issues resolved!

How to fix: Run python codemod/check_generate_create_sync.py --fix and commit the result.

@davidhu2000
davidhu2000 merged commit bf69e30 into main Oct 9, 2026
5 checks passed
@davidhu2000
davidhu2000 deleted the sdk-release-2026/10/09-21.28.10 branch October 9, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant