{"tool_key":"image","description":"Generate an image from a text prompt and/or reference files.","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"model":{"type":"string","minLength":1},"prompt":{"type":"string","maxLength":2000},"aspect_ratio":{"type":"string"},"files":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"media_type":{"type":"string"}},"required":["url"],"additionalProperties":false}},"options":{"type":"object","properties":{"webhook_url":{"type":"string","format":"uri"},"cache":{"type":"boolean"}},"additionalProperties":{}},"provider_options":{"type":"object","properties":{"fal":{"type":"object","properties":{"seed":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"scale":{"type":"number","minimum":1,"maximum":4,"description":"The scale of the output image. The higher the scale, the bigger the output image will be."},"steps":{"type":"integer","minimum":10,"maximum":100,"description":"The number of steps to run the model for. The higher the number the better the quality and longer it will take to generate."},"t_max":{"type":"number","minimum":0,"maximum":1,"description":"The ending point of uniform sampling strategy."},"t_min":{"type":"number","minimum":0,"maximum":1,"description":"The starting point of uniform sampling strategy."},"tile_vae":{"type":"boolean","description":"If specified, a patch-based sampling strategy will be used for VAE decoding."},"image_url":{"type":"string","description":"The URL or data URI of the image to upscale."},"color_fix_type":{"type":"string","enum":["none","wavelet","adain"]},"tile_diffusion":{"type":"string","enum":["none","mix","gaussian"]},"tile_diffusion_size":{"type":"integer","minimum":256,"maximum":2048,"description":"Size of patch."},"tile_diffusion_stride":{"type":"integer","minimum":128,"maximum":1024,"description":"Stride of sliding patch."},"tile_vae_decoder_size":{"type":"integer","minimum":64,"maximum":2048,"description":"Size of VAE patch."},"tile_vae_encoder_size":{"type":"integer","minimum":128,"maximum":2048,"description":"Size of latent image"}},"additionalProperties":false}},"additionalProperties":false}},"required":["model"],"additionalProperties":false},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"version":{"type":"string","const":"v1"},"outputs":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"file_id":{"type":"string"},"media_type":{"type":"string"},"size_bytes":{"type":"number"},"raw":{}},"required":["url"],"additionalProperties":false}}},"required":["version","outputs"],"additionalProperties":false},"example":{"input":{"prompt":"a serene mountain lake at sunrise, photorealistic","aspect_ratio":"16:9"},"output":{"version":"v1","outputs":[{"url":"https://cdn.varg.dev/files/img_abc123.png","media_type":"image/png","size_bytes":2048576}]}}}