From 71b9e71d779c4230762caa1be7338158b066c2ed Mon Sep 17 00:00:00 2001 From: shrimbly Date: Wed, 8 Apr 2026 20:25:55 +1200 Subject: [PATCH] fix: use correct mode values for Kling 3.0 Motion Control MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Kie docs have contradictory info — the parameter description says "std"/"pro" but the example request body uses "720p"/"1080p". The API actually accepts "720p"/"1080p" (same as Kling 2.6 Motion Control), rejecting "std"/"pro" with "mode is not within the range of allowed options." Co-Authored-By: Claude Sonnet 4.5 --- src/app/api/generate/providers/kie.ts | 2 +- src/app/api/models/[modelId]/route.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/api/generate/providers/kie.ts b/src/app/api/generate/providers/kie.ts index c4a45dad..1d1a425f 100644 --- a/src/app/api/generate/providers/kie.ts +++ b/src/app/api/generate/providers/kie.ts @@ -137,7 +137,7 @@ export function getKieModelDefaults(modelId: string): Record { // Kling 3.0 motion control case "kling-3.0/motion-control": return { - mode: "pro", + mode: "720p", character_orientation: "video", background_source: "input_video", }; diff --git a/src/app/api/models/[modelId]/route.ts b/src/app/api/models/[modelId]/route.ts index e146fbe5..ba1aa55f 100644 --- a/src/app/api/models/[modelId]/route.ts +++ b/src/app/api/models/[modelId]/route.ts @@ -988,7 +988,7 @@ function getKieSchema(modelId: string): ExtractedSchema { }, "kling-3.0/motion-control": { parameters: [ - { name: "mode", type: "string", description: "Generation mode", enum: ["std", "pro"], default: "pro" }, + { name: "mode", type: "string", description: "Output resolution", enum: ["720p", "1080p"], default: "720p" }, { name: "character_orientation", type: "string", description: "Character orientation source", enum: ["image", "video"], default: "video" }, { name: "background_source", type: "string", description: "Background source", enum: ["input_video", "input_image"], default: "input_video" }, ],