{"info":{"title":"google/imagen4","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Generate","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"google_imagen4_generate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Input"}}},"required":true}}}},"openapi":"3.1.0","components":{"schemas":{"Input":{"type":"object","title":"Input","required":["prompt"],"properties":{"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","x-order":5,"description":"Seed for reproducible generation. Leave unset for a random result."},"prompt":{"type":"string","title":"Prompt","x-order":0,"maxLength":5000,"minLength":3,"description":"Text description of the image to generate."},"resolution":{"allOf":[{"$ref":"#/components/schemas/ResolutionEnum"}],"title":"Resolution","default":"1K","x-order":2,"description":"The output resolution. 2K is the same price as 1K."},"aspect_ratio":{"allOf":[{"$ref":"#/components/schemas/AspectRatioEnum"}],"title":"Aspect Ratio","default":"1:1","x-order":1,"description":"The aspect ratio of the generated image."},"output_format":{"allOf":[{"$ref":"#/components/schemas/OutputFormatEnum"}],"title":"Output Format","default":"png","x-order":3,"description":"The file format of the generated image."},"safety_tolerance":{"allOf":[{"$ref":"#/components/schemas/SafetyToleranceEnum"}],"title":"Safety Tolerance","default":"4","x-order":4,"description":"How permissive content moderation is, from '1' (strictest) to '6' (most permissive)."}},"x-fal-order-properties":["prompt","aspect_ratio","resolution","output_format","safety_tolerance","seed"]},"Output":{"type":"array","items":{"type":"string","format":"uri"},"title":"Output","description":"The generated image(s)."},"ResolutionEnum":{"enum":["1K","2K"],"type":"string","title":"ResolutionEnum","description":"Supported output resolutions."},"AspectRatioEnum":{"enum":["1:1","16:9","9:16","4:3","3:4"],"type":"string","title":"AspectRatioEnum","description":"Supported aspect ratios."},"OutputFormatEnum":{"enum":["jpeg","png","webp"],"type":"string","title":"OutputFormatEnum","description":"Supported output file formats."},"SafetyToleranceEnum":{"enum":["1","2","3","4","5","6"],"type":"string","title":"SafetyToleranceEnum","description":"Content moderation strictness from '1' (strictest) to '6' (most permissive)."}}}}