{"info":{"title":"ModelRunner Veo API","version":"1.0.0"},"paths":{"/predictions":{"post":{"summary":"Create Prediction","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionResponse"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"description":"Run a prediction with the model.","operationId":"create_prediction","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionRequest"}}},"required":true}}},"/health-check":{"get":{"summary":"Healthcheck","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Successful Response"}},"operationId":"healthcheck_health_check_get"}}},"openapi":"3.0.2","components":{"schemas":{"Input":{"type":"object","title":"Input","required":["prompt"],"properties":{"prompt":{"type":"string","title":"Prompt","x-order":0,"minLength":1,"description":"Textual description to guide video generation"},"duration":{"allOf":[{"$ref":"#/components/schemas/durationEnum"}],"title":"Duration","default":8,"x-order":4,"description":"Video duration in seconds"},"image_url":{"type":"string","title":"Initial Image","format":"uri","x-order":1,"description":"URL of image to animate and generate video from"},"resolution":{"allOf":[{"$ref":"#/components/schemas/resolutionEnum"}],"title":"Resolution","default":"720p","x-order":3,"description":"Video resolution"},"aspect_ratio":{"allOf":[{"$ref":"#/components/schemas/aspectRatioEnum"}],"title":"Aspect Ratio","default":"16:9","x-order":2,"description":"Output video aspect ratio"},"negative_prompt":{"type":"string","title":"Negative Prompt","x-order":5,"description":"Describe what to avoid in the generated video"}}},"Output":{"type":"array","items":{"type":"string","format":"uri"},"title":"Output"},"Status":{"enum":["starting","processing","succeeded","failed","canceled"],"type":"string","title":"Status","description":"The status of the prediction."},"durationEnum":{"enum":[4,6,8],"type":"integer","title":"Duration"},"resolutionEnum":{"enum":["720p","1080p"],"type":"string","title":"Resolution"},"ValidationError":{"type":"object","title":"ValidationError","required":["loc","msg","type"],"properties":{"loc":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}}},"aspectRatioEnum":{"enum":["16:9","9:16"],"type":"string","title":"Aspect Ratio"},"PredictionRequest":{"type":"object","title":"PredictionRequest","properties":{"input":{"$ref":"#/components/schemas/Input"},"webhook":{"type":"string","title":"Webhook URL","format":"uri","description":"An optional URL to send a POST request to when the prediction is complete."}}},"PredictionResponse":{"type":"object","title":"PredictionResponse","properties":{"id":{"type":"string","title":"Prediction ID"},"logs":{"type":"string","title":"Logs","default":""},"error":{"type":"string","title":"Error","nullable":true},"input":{"$ref":"#/components/schemas/Input"},"output":{"$ref":"#/components/schemas/Output"},"status":{"$ref":"#/components/schemas/Status"},"created_at":{"type":"string","title":"Created At","format":"date-time"},"completed_at":{"type":"string","title":"Completed At","format":"date-time","nullable":true}}},"HTTPValidationError":{"type":"object","title":"HTTPValidationError","properties":{"detail":{"type":"array","items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail"}}}}}}