{"code":200,"message":"success","data":{"components":{"schemas":{"Input":{"additionalProperties":false,"properties":{"aspect_ratio":{"default":"auto","description":"The aspect ratio of the generated video; auto follows the reference images or video.","enum":["auto","16:9","9:16","1:1","21:9"],"type":"string","x-ui-component":"select"},"audios":{"description":"Reference audios (up to 3), 5-30 seconds each. They guide the voice and sound of the video.","items":{"type":"string"},"maxItems":3,"type":"array"},"duration":{"default":5,"description":"The duration of the generated video in seconds (3-30).","enum":[3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],"type":"integer","x-ui-component":"select"},"dynamic_range":{"default":"sdr","description":"Dynamic range. hdr is 10-bit HLG and needs resolution 1080p or 4k; it adds a per-second charge. sdr is standard.","enum":["sdr","hdr"],"type":"string","x-ui-component":"select"},"images":{"description":"Reference images (up to 10).","items":{"type":"string"},"maxItems":10,"type":"array"},"keep_original_sound":{"default":false,"description":"Keep the reference video's own sound instead of generating new audio. Requires videos.","type":"boolean"},"prompt":{"description":"The positive prompt for the generation. Refer to reference images as @Image1, @Image2, ... (in array order), to reference videos as @Video1, @Video2, ... and to reference audios as @Audio1, @Audio2, ...","type":"string"},"resolution":{"default":"720p","description":"Output resolution: 720p, 1080p or 4k (native 3840x2160).","enum":["720p","1080p","4k"],"type":"string","x-ui-component":"select"},"videos":{"description":"Reference videos (up to 5). They guide motion, camera and pacing; together they are used for up to 30 seconds.","items":{"type":"string"},"maxItems":5,"type":"array"}},"required":["prompt"],"type":"object","x-order-properties":["prompt","images","videos","audios","keep_original_sound","resolution","dynamic_range","duration","aspect_ratio"]},"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-v4.0/reference-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"}]}}