{"code":200,"message":"success","data":{"components":{"schemas":{"Input":{"additionalProperties":false,"properties":{"aspect_ratio":{"default":"16:9","description":"Aspect ratio of the generated video.","enum":["16:9","9:16","4:3","3:4","3:2","2:3","1:1"],"type":"string"},"duration":{"default":5,"description":"Video duration in seconds, from 5 to 15.","maximum":15,"minimum":5,"step":1,"type":"integer","x-ui-component":"slider"},"mode":{"default":"speed","description":"Generation mode: cost for lower-cost generation with the same output quality as speed, speed for faster generation, or quality for higher-quality generation. Default: speed. Independent of prompt_upsampler.","enum":["speed","quality","cost"],"type":"string","x-ui-component":"select"},"prompt":{"description":"Text prompt describing the video to generate.","minLength":1,"type":"string","x-rows":4,"x-ui-component":"textarea"},"prompt_upsampler":{"default":"turbo","description":"Prompt expansion mode. Independent of the cost, speed, or quality generation mode; does not change the price.","enum":["off","turbo","max"],"type":"string"},"resolution":{"default":"768p","description":"Output video resolution.","enum":["480p","768p"],"type":"string"},"seed":{"description":"Optional random seed for reproducible generation. Omit for a random seed.","type":"integer"}},"required":["prompt"],"type":"object","x-order-properties":["prompt","duration","aspect_ratio","resolution","mode","prompt_upsampler","seed"]},"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/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"},"/api/v3/pruna-ai/p-video-2-pro/text-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"}},"security":[{"apiKeyAuth":[]}],"servers":[{"url":"https://api.wavespeed.ai"}]}}