Browse Source

fix: use correct mode values for Kling 3.0 Motion Control

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 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 3 months ago
parent
commit
71b9e71d77
  1. 2
      src/app/api/generate/providers/kie.ts
  2. 2
      src/app/api/models/[modelId]/route.ts

2
src/app/api/generate/providers/kie.ts

@ -137,7 +137,7 @@ export function getKieModelDefaults(modelId: string): Record<string, unknown> {
// Kling 3.0 motion control
case "kling-3.0/motion-control":
return {
mode: "pro",
mode: "720p",
character_orientation: "video",
background_source: "input_video",
};

2
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" },
],

Loading…
Cancel
Save