{"info":{"title":"ModelRunner OpenAPI schema for happy-horse/v1.1/reference-to-video","version":"0.1.0"},"paths":{"/health-check":{"get":{"summary":"Healthcheck","responses":{"200":{"content":{"application/json":{"schema":{"title":"Response Healthcheck Health Check Get"}}},"description":"Successful Response"}},"operationId":"healthcheck_health_check_get"}}},"openapi":"3.1.0","components":{"schemas":{"Input":{"type":"object","title":"Input","required":["reference_image_1","prompt"],"properties":{"seed":{"type":"integer","title":"Seed","maximum":2147483647,"minimum":0,"x-order":13,"description":"Random seed for reproducible results. Omit for a different clip each run."},"ratio":{"allOf":[{"$ref":"#/components/schemas/RatioEnum"}],"title":"Ratio","default":"16:9","x-order":4,"description":"Frame shape (aspect ratio) of the generated video. The output's proportions come from this field, not from the reference images."},"prompt":{"type":"string","title":"Prompt","x-order":3,"maxLength":5000,"minLength":1,"description":"Required. Describe the scene and the action, and refer to each reference image by position - [Image 1], [Image 2], and so on - naming the specific subject inside the bracket, for example 'the woman in the red dress in [Image 1]'. The numbering follows the reference image fields in order. Any language, up to 5000 characters (2500 for Chinese)."},"duration":{"type":"integer","title":"Duration","default":5,"maximum":15,"minimum":3,"x-order":6,"description":"Length of the generated video in whole seconds (3-15). Cost scales directly with this value."},"resolution":{"allOf":[{"$ref":"#/components/schemas/ResolutionEnum"}],"title":"Resolution","default":"1080P","x-order":5,"description":"Output video resolution. 720P bills at $0.14 per second of finished video; 1080P (default) bills at $0.18 per second."},"reference_image_1":{"type":"string","title":"Reference Image 1","format":"uri","x-order":0,"description":"First reference subject - a person, a product, a prop or a location. Refer to it in the prompt as [Image 1]. At least one reference image is required. JPEG, JPG, PNG or WEBP; shortest side at least 400 px (720P or larger recommended); up to 20 MB."},"reference_image_2":{"type":"string","title":"Reference Image 2","format":"uri","x-order":1,"description":"Optional second reference subject, referred to in the prompt as [Image 2]. Same formats and size limits as [Image 1]."},"reference_image_3":{"type":"string","title":"Reference Image 3","format":"uri","x-order":2,"description":"Optional third reference subject, referred to in the prompt as [Image 3]. Same formats and size limits as [Image 1]."},"reference_image_4":{"type":"string","title":"Reference Image 4","format":"uri","x-order":7,"description":"Optional fourth reference subject, referred to in the prompt as [Image 4]. Same formats and size limits as [Image 1]."},"reference_image_5":{"type":"string","title":"Reference Image 5","format":"uri","x-order":8,"description":"Optional fifth reference subject, referred to in the prompt as [Image 5]. Same formats and size limits as [Image 1]."},"reference_image_6":{"type":"string","title":"Reference Image 6","format":"uri","x-order":9,"description":"Optional sixth reference subject, referred to in the prompt as [Image 6]. Same formats and size limits as [Image 1]."},"reference_image_7":{"type":"string","title":"Reference Image 7","format":"uri","x-order":10,"description":"Optional seventh reference subject, referred to in the prompt as [Image 7]. Same formats and size limits as [Image 1]."},"reference_image_8":{"type":"string","title":"Reference Image 8","format":"uri","x-order":11,"description":"Optional eighth reference subject, referred to in the prompt as [Image 8]. Same formats and size limits as [Image 1]."},"reference_image_9":{"type":"string","title":"Reference Image 9","format":"uri","x-order":12,"description":"Optional ninth reference subject, referred to in the prompt as [Image 9]. Nine is the maximum the model accepts. Same formats and size limits as [Image 1]."}}},"Output":{"type":"string","title":"Output","format":"uri","description":"Generated video file URL (MP4)."},"RatioEnum":{"enum":["16:9","9:16","4:3","3:4","1:1","5:4","4:5","9:21","21:9","3:1","1:3","3.2:1","1:3.2","4:1","1:4"],"type":"string","title":"RatioEnum","description":"An enumeration."},"ResolutionEnum":{"enum":["720P","1080P"],"type":"string","title":"ResolutionEnum","description":"An enumeration."}}}}