{"info":{"title":"bria/expand","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Expand","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"bria_expand","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Input"}}},"required":true}}}},"openapi":"3.1.0","components":{"schemas":{"Input":{"type":"object","title":"Input","required":["image_url","canvas_size"],"properties":{"seed":{"anyOf":[{"type":"integer","maximum":2147483647,"minimum":0},{"type":"null"}],"title":"Seed","default":null,"x-order":6,"description":"Random seed for reproducibility. The same seed and inputs produce the same result."},"prompt":{"type":"string","title":"Prompt","default":"","x-order":5,"description":"Optional text describing what should appear in the newly generated area around the source."},"image_url":{"type":"string","title":"Image URL","format":"uri","x-order":0,"description":"The source image to expand. New content is generated around it to fill the larger canvas."},"canvas_size":{"type":"array","items":{"type":"integer"},"title":"Canvas Size","x-order":1,"maxItems":2,"minItems":2,"description":"Target size of the expanded canvas as [width, height] in pixels (total area under 5000x5000). Must be paired with either an aspect_ratio, or both original_image_size and original_image_location, so the model knows where to place the source inside the new canvas."},"aspect_ratio":{"anyOf":[{"$ref":"#/components/schemas/AspectRatioEnum"},{"type":"null"}],"title":"Aspect Ratio","default":null,"x-order":2,"description":"Aspect ratio used to place and scale the source inside the new canvas. Set this OR both original_image_size and original_image_location."},"negative_prompt":{"type":"string","title":"Negative Prompt","default":"","x-order":7,"description":"Optional text describing what to avoid in the generated area."},"original_image_size":{"anyOf":[{"type":"array","items":{"type":"integer"},"maxItems":2,"minItems":2},{"type":"null"}],"title":"Original Image Size","default":null,"x-order":3,"description":"[width, height] of the original image inside the canvas. Use together with original_image_location for exact placement (instead of aspect_ratio)."},"original_image_location":{"anyOf":[{"type":"array","items":{"type":"integer"},"maxItems":2,"minItems":2},{"type":"null"}],"title":"Original Image Location","default":null,"x-order":4,"description":"[x, y] upper-left placement of the original in the expanded canvas. Use together with original_image_size for exact placement (instead of aspect_ratio)."}},"x-fal-order-properties":["image_url","canvas_size","aspect_ratio","original_image_size","original_image_location","prompt","seed","negative_prompt"]},"Output":{"type":"string","title":"Output","format":"uri","description":"The expanded image."},"AspectRatioEnum":{"enum":["1:1","2:3","3:2","3:4","4:3","4:5","5:4","9:16","16:9"],"type":"string","title":"AspectRatioEnum"}}}}