Skip to content

feat: add kling-4.0 model to character replace - #212

Merged
davidhu2000 merged 2 commits into
mainfrom
sdk-release-2026/11/20-06.47.16
Nov 20, 2026
Merged

davidhu2000 merged 2 commits into
mainfrom
sdk-release-2026/11/20-06.47.16

Conversation

@magic-hour-sdk-bot

Copy link
Copy Markdown
Contributor

Features

  • Added kling-4.0 model to POST /v1/character-replace (720p, 1080p; replace mode only, 3–30s clips; picks the main person automatically, so points are rejected; supports style.prompt).

@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 32 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_music_generator
OK: ai_qr_code_generator
OK: ai_talking_photo
OK: ai_ugc_ad
OK: ai_video_editor
OK: ai_video_translator
OK: ai_video_upscaler
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 - Definition differs from create(): model
  async client - Definition differs from create(): model

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 - Definition differs from create(): model
    async client - Definition differs from create(): model
    ✓ 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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@davidhu2000
davidhu2000 merged commit ef0851b into main Nov 20, 2026
5 checks passed
@davidhu2000
davidhu2000 deleted the sdk-release-2026/11/20-06.47.16 branch November 20, 2026 06:53
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