Skip to content

feat: add model to character replace - #178

Merged
davidhu2000 merged 2 commits into
mainfrom
sdk-release-2026/09/28-20.01.55
Sep 28, 2026
Merged

davidhu2000 merged 2 commits into
mainfrom
sdk-release-2026/09/28-20.01.55

Conversation

@magic-hour-sdk-bot

Copy link
Copy Markdown
Contributor

Breaking

Features

  • added support for model select in character replace, and added support for 1080p resolution
  • increased max prompt length 10,000 to 20,000 characters (only applicable for Minimax H3 model)

Fixes

  • Reduced LTX 2.5 max clip length cut from 45s to 20s due to high error rate. We are working on increasing this.

@github-actions

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
OK: ai_image_editor
OK: ai_image_generator
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
MISMATCH: character_replace
  File: ./magic_hour/resources/v1/character_replace/client.py
  sync client - Missing in generate(): model
  sync client - Definition differs from create(): resolution
  async client - Missing in generate(): model
  async client - Definition differs from create(): resolution

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 1 file(s) with parameter mismatches:

Applying fixes...

  Fixing character_replace...
    sync client - Missing in generate(): model
    sync client - Definition differs from create(): resolution
    async client - Missing in generate(): model
    async client - Definition differs from create(): resolution
    ✓ Fixed ./magic_hour/resources/v1/character_replace/client.py

Fixed 1 of 1 file(s)

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

✓ All issues resolved!

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

Add model param and 1080p resolution to generate() in sync and async clients.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@davidhu2000
davidhu2000 merged commit 13c57b9 into main Sep 28, 2026
6 checks passed
@davidhu2000
davidhu2000 deleted the sdk-release-2026/09/28-20.01.55 branch September 28, 2026 20:31
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