{"code":200,"message":"success","data":{"components":{"schemas":{"Input":{"additionalProperties":false,"properties":{"duration":{"default":5,"description":"Output video duration in seconds.","enum":[3,4,5,6,7,8,9,10,11,12,13,14,15],"type":"integer","x-ui-component":"select"},"enable_prompt_expansion":{"default":true,"description":"Expand the prompt into a detailed description before generation when that helps. Turn off to use the prompt exactly as written.","type":"boolean"},"image":{"description":"First-frame image URL. The output canvas follows this image's aspect ratio.","type":"string"},"last_image":{"description":"Optional last-frame image URL. When provided, the video interpolates from the first frame to this frame.","type":"string"},"prompt":{"description":"Text description of the desired motion, scene, and soundtrack. Audio is generated natively together with the video.","type":"string"},"resolution":{"default":"768p","description":"Output video resolution. 768p is the model's native canvas; 480p is a faster, lower-cost tier; 540p is a mid tier at 1.5x the 480p price. 1080p is the highest-quality full-HD tier at 2x the 768p price (generation takes longer).","enum":["480p","540p","768p","1080p"],"type":"string"},"seed":{"description":"The random seed to use for the generation. -1 means a random seed will be used.","type":"integer"}},"required":["prompt","image"],"type":"object","x-order-properties":["prompt","image","last_image","resolution","duration","enable_prompt_expansion","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/wavespeed-ai/minimax-h3/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"}},"security":[{"apiKeyAuth":[]}],"servers":[{"url":"https://api.wavespeed.ai"}]}}