@ -496,43 +496,37 @@ function extractParametersFromSchema(
function getKieSchema ( modelId : string ) : ExtractedSchema {
// Common parameters for image models
const imageParams : ModelParameter [ ] = [
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "1:1" , "16:9" , "9:16" , " 4:3" , "3:4" , "2 1:9" , "9:2 1" ] , default : "1:1" } ,
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "1:1" , "4:3" , "3:4" , "16 :9" , "9:16 " ] , default : "1:1" } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ;
// Common parameters for video models
const videoParams : ModelParameter [ ] = [
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "16:9" , "9:16" , "1:1" ] , default : "16:9" } ,
{ name : "duration" , type : "integer" , description : "Video duration in seconds" , minimum : 5 , maximum : 20 , default : 10 } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ;
// Flux-2 aspect ratios (includes auto and additional ratios)
const flux2AspectRatios = [ "1:1" , "4:3" , "3:4" , "16:9" , "9:16" , "3:2" , "2:3" , "auto" ] ;
// Model-specific schemas
const schemas : Record < string , ExtractedSchema > = {
// Image models
// ============ Image models ============
"z-image" : {
parameters : imageParams ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"seedream/4.5-text-to-image" : {
parameters : imageParams ,
parameters : [
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "1:1" , "4:3" , "3:4" , "16:9" , "9:16" , "2:3" , "3:2" , "21:9" ] , default : "1:1" } ,
{ name : "quality" , type : "string" , description : "Output quality" , enum : [ "basic" , "high" ] , default : "basic" } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"seedream/4.5-edit" : {
parameters : imageParams ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"nano-banana-pro" : {
parameters : [
. . . imageParams ,
{ name : "resolution" , type : "string" , description : "Output resolution" , enum : [ "1K" , "2K" , "4K" ] , default : "1K" } ,
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "1:1" , "4:3" , "3:4" , "16:9" , "9:16" , "2:3" , "3:2" , "21:9" ] , default : "1:1" } ,
{ name : "quality" , type : "string" , description : "Output quality" , enum : [ "basic" , "high" ] , default : "basic" } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "image_input " , type : "image" , required : fals e, label : "Image" } ,
{ name : "image_urls " , type : "image" , required : tru e, label : "Image" , isArray : true } ,
] ,
} ,
"gpt-image/1.5-text-to-image" : {
@ -552,363 +546,150 @@ function getKieSchema(modelId: string): ExtractedSchema {
{ name : "input_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"google/nano-banana" : {
parameters : imageParams ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"google/nano-banana-edit" : {
parameters : imageParams ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
// Video models
"sora-2-text-to-video" : {
parameters : videoParams ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"sora-2-image-to-video" : {
parameters : videoParams ,
inputs : [
{ name : "prompt" , type : "text" , required : false , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"sora-2-pro-text-to-video" : {
parameters : videoParams ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"sora-2-pro-image-to-video" : {
parameters : videoParams ,
inputs : [
{ name : "prompt" , type : "text" , required : false , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"veo3_fast" : {
parameters : [
{ name : "aspectRatio" , type : "string" , description : "Output aspect ratio (camelCase for Veo)" , enum : [ "16:9" , "9:16" ] , default : "16:9" } ,
{ name : "duration" , type : "integer" , description : "Video duration in seconds" , minimum : 5 , maximum : 8 , default : 8 } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "imageUrls" , type : "image" , required : false , label : "Image" , isArray : true } ,
] ,
} ,
"veo3" : {
parameters : [
{ name : "aspectRatio" , type : "string" , description : "Output aspect ratio (camelCase for Veo)" , enum : [ "16:9" , "9:16" ] , default : "16:9" } ,
{ name : "duration" , type : "integer" , description : "Video duration in seconds" , minimum : 5 , maximum : 8 , default : 8 } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "imageUrls" , type : "image" , required : false , label : "Image" , isArray : true } ,
] ,
} ,
"bytedance/seedance-1.5-pro" : {
parameters : [
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "16:9" , "9:16" , "1:1" ] , default : "16:9" } ,
{ name : "duration" , type : "number" , description : "Video duration in seconds" , minimum : 5 , maximum : 10 , default : 5 } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : false , label : "Image" , isArray : true } ,
] ,
} ,
"kling-2.6/text-to-video" : {
parameters : [
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "16:9" , "9:16" , "1:1" ] , default : "16:9" } ,
{ name : "duration" , type : "string" , description : "Video duration" , enum : [ "5" , "10" ] , default : "5" } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"kling-2.6/image-to-video" : {
parameters : [
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "16:9" , "9:16" , "1:1" ] , default : "16:9" } ,
{ name : "duration" , type : "string" , description : "Video duration" , enum : [ "5" , "10" ] , default : "5" } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [
{ name : "prompt" , type : "text" , required : false , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"wan/2-6-text-to-video" : {
parameters : [
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "16:9" , "9:16" , "1:1" ] , default : "16:9" } ,
{ name : "duration" , type : "integer" , description : "Video duration in seconds" , minimum : 5 , maximum : 10 , default : 5 } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"wan/2-6-image-to-video" : {
parameters : [
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "16:9" , "9:16" , "1:1" ] , default : "16:9" } ,
{ name : "duration" , type : "integer" , description : "Video duration in seconds" , minimum : 5 , maximum : 10 , default : 5 } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [
{ name : "prompt" , type : "text" , required : false , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
// --- New image models ---
"google/imagen4" : {
parameters : imageParams ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"google/imagen4-fast" : {
parameters : imageParams ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"google/imagen4-ultra" : {
parameters : imageParams ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"google/pro-image-to-image" : {
parameters : imageParams ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"flux-2/pro-text-to-image" : {
parameters : [
. . . imageParams ,
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : flux2AspectRatios , default : "1:1" } ,
{ name : "resolution" , type : "string" , description : "Output resolution" , enum : [ "1K" , "2K" ] , default : "1K" } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"flux-2/pro-image-to-image" : {
parameters : [
. . . imageParams ,
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : flux2AspectRatios , default : "1:1" } ,
{ name : "resolution" , type : "string" , description : "Output resolution" , enum : [ "1K" , "2K" ] , default : "1K" } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "image _urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
{ name : "input_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"flux-2/flex-text-to-image" : {
parameters : [
. . . imageParams ,
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : flux2AspectRatios , default : "1:1" } ,
{ name : "resolution" , type : "string" , description : "Output resolution" , enum : [ "1K" , "2K" ] , default : "1K" } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"flux-2/flex-image-to-image" : {
parameters : [
. . . imageParams ,
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : flux2AspectRatios , default : "1:1" } ,
{ name : "resolution" , type : "string" , description : "Output resolution" , enum : [ "1K" , "2K" ] , default : "1K" } ,
] ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"flux-kontext-pro" : {
parameters : [
{ name : "aspectRatio" , type : "string" , description : "Output aspect ratio" , enum : [ "1:1" , "16:9" , "9:16" , "4:3" , "3:4" , "21:9" , "9:21" ] , default : "1:1" } ,
{ name : "outputFormat" , type : "string" , description : "Output image format" , enum : [ "png" , "jpeg" , "webp" ] , default : "png" } ,
{ name : "safetyTolerance" , type : "integer" , description : "Safety tolerance level (0=strict, 6=permissive)" , minimum : 0 , maximum : 6 , default : 2 } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "image_url " , type : "image" , required : fals e, label : "Image" } ,
{ name : "input_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"flux-kontext-max " : {
"grok-imagine/text-to-image" : {
parameters : [
{ name : "aspectRatio" , type : "string" , description : "Output aspect ratio" , enum : [ "1:1" , "16:9" , "9:16" , "4:3" , "3:4" , "21:9" , "9:21" ] , default : "1:1" } ,
{ name : "outputFormat" , type : "string" , description : "Output image format" , enum : [ "png" , "jpeg" , "webp" ] , default : "png" } ,
{ name : "safetyTolerance" , type : "integer" , description : "Safety tolerance level (0=strict, 6=permissive)" , minimum : 0 , maximum : 6 , default : 2 } ,
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "2:3" , "3:2" , "1:1" , "16:9" , "9:16" ] , default : "1:1" } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "image_url" , type : "image" , required : false , label : "Image" } ,
] ,
} ,
"grok-imagine/text-to-image" : {
parameters : imageParams ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"grok-imagine/image-to-image" : {
parameters : imageParams ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"ideogram/v3-reframe" : {
parameters : imageParams ,
parameters : [ ] ,
inputs : [
{ name : "prompt" , type : "text" , required : false , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"ideogram/character" : {
parameters : imageParams ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"ideogram/character-edit" : {
parameters : imageParams ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"qwen/text-to-image" : {
parameters : imageParams ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"qwen/image-to-image" : {
parameters : imageParams ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"qwen/image-edit" : {
parameters : imageParams ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
// --- New video models ---
"runway/gen4" : {
parameters : [
{ name : "duration" , type : "integer" , description : "Video duration in seconds" , minimum : 5 , maximum : 10 , default : 10 } ,
{ name : "quality" , type : "string" , description : "Output quality" , enum : [ "standard" , "high" ] , default : "standard" } ,
{ name : "aspectRatio" , type : "string" , description : "Output aspect ratio" , enum : [ "16:9" , "9:16" , "1:1" ] , default : "16:9" } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "imageUrl" , type : "image" , required : false , label : "Image" } ,
] ,
} ,
"runway/aleph" : {
// ============ Video models ============
"grok-imagine/text-to-video" : {
parameters : [
{ name : "duration " , type : "inte ger " , description : "Video duration in seconds" , minimum : 5 , maximum : 10 , default : 10 } ,
{ name : "quality " , type : "string" , description : "Output quality " , enum : [ "standard" , "high " ] , default : "standard " } ,
{ name : "aspectRatio " , type : "string" , description : "Output aspect ratio " , enum : [ "16:9" , "9:16" , "1:1 " ] , default : "16:9 " } ,
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "2:3" , "3:2" , "1:1" , "16:9" , "9:16" ] , default : "2:3" } ,
{ name : "duration" , type : "string" , description : "Video duration in seconds" , enum : [ "6" , "10" ] , default : "6" } ,
{ name : "mode" , type : "string" , description : "Generation mode" , enum : [ "fun" , "normal" , "spicy" ] , default : "normal" } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "imageUrl" , type : "image" , required : false , label : "Image" } ,
] ,
} ,
"grok-imagine/text-to-video" : {
parameters : videoParams ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"grok-imagine/image-to-video" : {
parameters : videoParams ,
inputs : [
{ name : "prompt" , type : "text" , required : false , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
parameters : [
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "2:3" , "3:2" , "1:1" , "16:9" , "9:16" ] , default : "2:3" } ,
{ name : "duration" , type : "string" , description : "Video duration in seconds" , enum : [ "6" , "10" ] , default : "6" } ,
{ name : "mode" , type : "string" , description : "Generation mode" , enum : [ "fun" , "normal" , "spicy" ] , default : "normal" } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
} ,
"hailuo/2-3-image-to-video-pro" : {
parameters : videoParams ,
inputs : [
{ name : "prompt" , type : "text" , required : false , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"hailuo/2-3-image-to-video-standard" : {
parameters : videoParams ,
inputs : [
{ name : "prompt" , type : "text" , required : false , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
"kling-2.6/text-to-video" : {
parameters : [
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "16:9" , "9:16" , "1:1" ] , default : "16:9" } ,
{ name : "duration" , type : "string" , description : "Video duration" , enum : [ "5" , "10" ] , default : "5" } ,
{ name : "sound" , type : "boolean" , description : "Enable sound generation" , default : true } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
} ,
"hailuo/02-text-to-video-pro" : {
parameters : videoParams ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"hailuo/02-image-to-video-pro" : {
parameters : videoParams ,
inputs : [
{ name : "prompt" , type : "text" , required : false , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"bytedance/v1-pro-text-to-video" : {
parameters : videoParams ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : false , label : "Image" , isArray : true } ,
] ,
} ,
"bytedance/v1-pro-image-to-video" : {
parameters : videoParams ,
inputs : [
{ name : "prompt" , type : "text" , required : false , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
"kling-2.6/image-to-video" : {
parameters : [
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "16:9" , "9:16" , "1:1" ] , default : "16:9" } ,
{ name : "duration" , type : "string" , description : "Video duration" , enum : [ "5" , "10" ] , default : "5" } ,
{ name : "sound" , type : "boolean" , description : "Enable sound generation" , default : true } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
} ,
"bytedance/v1-pro-fast-image-to-video" : {
parameters : videoParams ,
inputs : [
{ name : "prompt" , type : "text" , required : false , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"bytedance/v1-lite-text-to-video" : {
parameters : videoParams ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : false , label : "Image" , isArray : true } ,
"kling-2.6/motion-control" : {
parameters : [
{ 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" } ,
] ,
} ,
"bytedance/v1-lite-image-to-video" : {
parameters : videoParams ,
inputs : [
{ name : "prompt" , type : "text" , required : false , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
{ name : "input_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
{ name : "video_urls" , type : "image" , required : true , label : "Video" , isArray : true } ,
] ,
} ,
"kling/v2-1-master-text-to-vide o" : {
"kling/v2-5-turbo-text-to-video-pro" : {
parameters : [
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "16:9" , "9:16" , "1:1" ] , default : "16:9" } ,
{ name : "duration" , type : "string" , description : "Video duration" , enum : [ "5" , "10" ] , default : "5" } ,
{ name : "cfg_scale" , type : "number" , description : "Guidance scale" , minimum : 0 , maximum : 1 , default : 0.5 } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
inputs : [
{ name : "prompt" , type : "text" , required : true , label : "Prompt" } ,
{ name : "negative_prompt" , type : "text" , required : false , label : "Negative Prompt" } ,
] ,
} ,
"kling/v2-1-master-image-to-video" : {
"kling/v2-5-turbo-image-to-video-pro" : {
parameters : [
{ name : "aspect_ratio" , type : "string" , description : "Output aspect ratio" , enum : [ "16:9" , "9:16" , "1:1" ] , default : "16:9" } ,
{ name : "duration" , type : "string" , description : "Video duration" , enum : [ "5" , "10" ] , default : "5" } ,
{ name : "cfg_scale" , type : "number" , description : "Guidance scale" , minimum : 0 , maximum : 1 , default : 0.5 } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [
{ name : "prompt" , type : "text" , required : false , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
{ name : "negative_prompt" , type : "text" , required : false , label : "Negative Prompt" } ,
{ name : "image_url" , type : "image" , required : true , label : "Image" } ,
{ name : "tail_image_url" , type : "image" , required : false , label : "Tail Image" } ,
] ,
} ,
"kling/v2-5-turbo-text-to-video-pr o" : {
"wan/2-6-text-to-vide o" : {
parameters : [
{ name : "aspect_ratio " , type : "string" , description : "Output aspect ratio " , enum : [ "16:9" , "9:16" , "1:1 " ] , default : "16:9 " } ,
{ name : "dura tion" , type : "string" , description : "Video dura tion" , enum : [ "5 " , "10" ] , default : "5 " } ,
{ name : "duration " , type : "string" , description : "Video duration in seconds " , enum : [ "5" , "10" , "15 " ] , default : "5 " } ,
{ name : "resolu tion" , type : "string" , description : "Output resolu tion" , enum : [ "720p " , "1080p " ] , default : "1080p " } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"kling/v2-5-turbo-image-to-video-pr o" : {
"wan/2-6-image-to-vide o" : {
parameters : [
{ name : "aspect_ratio " , type : "string" , description : "Output aspect ratio " , enum : [ "16:9" , "9:16" , "1:1 " ] , default : "16:9 " } ,
{ name : "dura tion" , type : "string" , description : "Video dura tion" , enum : [ "5 " , "10" ] , default : "5 " } ,
{ name : "duration " , type : "string" , description : "Video duration in seconds " , enum : [ "5" , "10" , "15 " ] , default : "5 " } ,
{ name : "resolu tion" , type : "string" , description : "Output resolu tion" , enum : [ "720p " , "1080p " ] , default : "1080p " } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [
@ -916,22 +697,23 @@ function getKieSchema(modelId: string): ExtractedSchema {
{ name : "image_urls" , type : "image" , required : true , label : "Image" , isArray : true } ,
] ,
} ,
"wan/2-2-a14b-text-to-video-turb o" : {
parameters : videoParams ,
inputs : [ { name : "prompt" , type : "text" , required : true , label : "Prompt" } ] ,
} ,
"wan/2-2-a14b-image-to-video-turbo" : {
parameters : videoParams ,
"wan/2-6-video-to-vide o" : {
parameters : [
{ name : "duration" , type : "string" , description : "Video duration in seconds" , enum : [ "5" , "10" ] , default : "5" } ,
{ name : "resolution" , type : "string" , description : "Output resolution" , enum : [ "720p" , "1080p" ] , default : "1080p" } ,
{ name : "seed" , type : "integer" , description : "Random seed for reproducibility" , minimum : 0 } ,
] ,
inputs : [
{ name : "prompt" , type : "text" , required : false , label : "Prompt" } ,
{ name : "image _urls" , type : "image" , required : true , label : "Image " , isArray : true } ,
{ name : "video _urls" , type : "image" , required : true , label : "Video " , isArray : true } ,
] ,
} ,
"wan/2-6-video-to-video" : {
parameters : videoParams ,
"topaz/video-upscale" : {
parameters : [
{ name : "upscale_factor" , type : "string" , description : "Upscale factor" , enum : [ "1" , "2" , "4" ] , default : "2" } ,
] ,
inputs : [
{ name : "prompt" , type : "text" , required : false , label : "Prompt" } ,
{ name : "image_urls" , type : "image" , required : true , label : "Video/Image" , isArray : true } ,
{ name : "video_url" , type : "image" , required : true , label : "Video" } ,
] ,
} ,
} ;