Skip to content

feat: add resolution parameter to ai-image-editor#130

Merged
davidhu2000 merged 2 commits intomainfrom
sdk-release-2026/03/21-18.11.32
Mar 24, 2026
Merged

feat: add resolution parameter to ai-image-editor#130
davidhu2000 merged 2 commits intomainfrom
sdk-release-2026/03/21-18.11.32

Conversation

@magic-hour-sdk-bot
Copy link
Copy Markdown
Contributor

POST /v1/ai-image-editor

  • Added resolution parameter to control output image resolution (auto, 2k, 4k) based on subscription tier

@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Parameter Sync Check Failed

The generate() methods are missing parameters that exist in create() methods.

Checking 23 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 - Missing in generate(): resolution
  async client - Missing in generate(): resolution

OK: ai_image_generator
OK: ai_image_upscaler
OK: ai_meme_generator
OK: ai_qr_code_generator
OK: ai_talking_photo
OK: ai_voice_cloner
OK: ai_voice_generator
OK: animation
OK: auto_subtitle_generator
OK: face_detection
OK: face_swap
OK: face_swap_photo
OK: image_background_remover
OK: image_to_video
OK: lip_sync
OK: photo_colorizer
OK: text_to_video
OK: video_to_video

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

Found 1 file(s) with parameter mismatches:

Applying fixes...

  Fixing ai_image_editor...
    sync client - Adding: resolution
    async client - Adding: resolution
    ✓ Fixed ./magic_hour/resources/v1/ai_image_editor/client.py

Fixed 1 of 1 file(s)

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

✓ All issues resolved!

How to fix: Add the missing parameters to the generate() method signature and forward them to self.create().

@davidhu2000 davidhu2000 changed the title feat: add resolution parameter to ai-image-editor, update face-swap credits feat: add resolution parameter to ai-image-editor Mar 24, 2026
@davidhu2000 davidhu2000 merged commit e5219b8 into main Mar 24, 2026
7 checks passed
@davidhu2000 davidhu2000 deleted the sdk-release-2026/03/21-18.11.32 branch March 24, 2026 21:11
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