{"code":200,"message":"success","data":{"components":{"schemas":{"Input":{"additionalProperties":false,"properties":{"cfg_scale":{"default":0.5,"description":"Flexibility in video generation; The higher the value, the lower the model's degree of flexibility, and the stronger the relevance to the user's prompt.","maximum":1,"minimum":0,"type":"number","x-ui-component":"slider"},"duration":{"default":5,"description":"The duration of the generated media in seconds.","enum":[3,4,5,6,7,8,9,10,11,12,13,14,15],"type":"integer","x-ui-component":"select"},"element_list":{"description":"Element reference list. To get available elements and their IDs, visit: https://wavespeed.ai/models/kwaivgi/kling-elements","items":{"properties":{"element_id":{"description":"Element ID returned by kwaivgi/kling-elements or kwaivgi/kling-elements-advanced.","type":"string"}},"type":"object","x-order-properties":["element_id"]},"maxItems":3,"type":"array","x-ui-component":"array"},"image":{"description":"Supported image formats: .jpg/.jpeg/.png. The size of the image file should not exceed 10MB, the width and height of the image should be no less than 300px, and the aspect ratio of the image should be between 1:2.5 and 2.5:1.","type":"string"},"last_image":{"description":"URL of the ending image. multi_shot is not supported with end image.","type":"string","x-aliases":["end_image"]},"multi_prompt":{"description":"List of prompts for multi-shot video generation. If provided, divides the video into multiple shots.","items":{"properties":{"duration":{"default":5,"description":"The duration of this shot in seconds.","enum":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],"type":"integer","x-ui-component":"select"},"prompt":{"description":"The prompt for this shot.","maxLength":512,"type":"string"}},"required":["prompt","duration"],"type":"object","x-order-properties":["prompt","duration"]},"maxItems":6,"type":"array","x-ui-component":"array"},"negative_prompt":{"description":"The negative prompt for the generation.","type":"string"},"prompt":{"description":"Text prompt for video generation. Either prompt or multi_prompt must be provided, but not both.  Specify a element, image, or video in the format \u003c\u003c\u003c\u003e\u003e\u003e, such as \u003c\u003c\u003celement_1\u003e\u003e\u003e, \u003c\u003c\u003cimage_1\u003e\u003e\u003e, \u003c\u003c\u003cvideo_1\u003e\u003e\u003e.","type":"string"},"shot_type":{"default":"customize","description":"Shot type for the generation.","enum":["customize","intelligence"],"type":"string","x-enum-aliases":{"intelligent":"intelligence"}},"sound":{"description":"Whether sound is generated simultaneously when generating a video.","type":"boolean"}},"required":["image"],"type":"object","x-order-properties":["image","prompt","negative_prompt","last_image","duration","cfg_scale","sound","shot_type","multi_prompt","element_list"]},"KlingV3MultiPromptElement":{"properties":{"duration":{"default":5,"description":"The duration of this shot in seconds.","enum":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],"type":"integer"},"prompt":{"description":"The prompt for this shot.","type":"string"}},"type":"object","x-order-properties":["prompt","duration"]},"PredictionResponse":{"properties":{"created_at":{"description":"ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”).","format":"date-time","type":"string"},"id":{"description":"Unique identifier for the prediction, the ID of the prediction to get.","type":"string"},"model":{"description":"Model ID used for the prediction.","type":"string"},"outputs":{"description":"Array of generated outputs (empty when status is not completed). Items are usually URL strings, but may be text strings or structured result objects, depending on the model.","items":{"oneOf":[{"type":"string"},{"type":"object"}]},"type":"array"},"status":{"description":"Status of the task: created, processing, completed, or failed.","type":"string"},"urls":{"description":"Object containing related API endpoints.","type":"object"}},"type":"object"}},"securitySchemes":{"apiKeyAuth":{"in":"header","name":"Authorization","type":"apiKey"}}},"info":{"description":"The WaveSpeed API.","title":"WaveSpeed API","version":"3.0.0"},"openapi":"3.0.0","paths":{"/api/v3/kwaivgi/kling-v3.0-pro/image-to-video":{"post":{"description":"Submit a request to run the model and create a prediction.","operationId":"createPrediction","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Input"}}},"description":"Input parameters for the model.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionResponse"}}},"description":"Prediction request accepted."}},"summary":"Create prediction"},"x-api-name":"model_run"},"/api/v3/predictions/{request_id}/result":{"get":{"description":"Retrieve the current status and result of a prediction.","operationId":"getPredictionResult","parameters":[{"description":"The ID of the prediction request.","in":"path","name":"request_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionResponse"}}},"description":"Prediction result."}},"summary":"Get prediction result"},"x-api-name":"model_result"}},"security":[{"apiKeyAuth":[]}],"servers":[{"url":"https://api.wavespeed.ai"}]}}