{"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":{"krea":{"type":"object","properties":{"seed":{"type":"number","description":"Random seed for reproducible generation."},"width":{"type":"number","exclusiveMinimum":0,"maximum":4096,"description":"Explicit output width in pixels (with height; instead of resolution)."},"height":{"type":"number","exclusiveMinimum":0,"maximum":4096,"description":"Explicit output height in pixels (with width; instead of resolution)."},"prompt":{"type":"string","description":"Text description of the image to generate, or the edit to apply to the input images."},"image_urls":{"type":"array","items":{"type":"string"}},"resolution":{"type":"string","enum":["1k","2k"]},"aspect_ratio":{"type":"string","enum":["1:1","4:5","3:4","2:3","9:16","5:4","4:3","3:2","16:9","21:9"]},"thinking_mode":{"type":"string","enum":["fast","high","ultra"]},"negative_prompt":{"type":"string","description":"What to keep out of the image."}},"additionalProperties":false},"fal":{"type":"object","properties":{"seed":{},"model":{"type":"string","enum":["berry","jam"]},"prompt":{"type":"string","description":"Description of the image to generate."},"sync_mode":{"type":"boolean","description":"Return images as data URIs instead of saving them in request history."},"image_size":{},"image_urls":{"type":"array","items":{"type":"string"}},"output_format":{"type":"string","enum":["png","jpeg"]},"negative_prompt":{"type":"string","description":"What to keep out of the image. Used by berry only."},"reasoning_level":{"type":"string","enum":["low","medium","high","ultra"]},"enable_safety_checker":{"type":"boolean","description":"Check output images for unsafe content. Disabling requires account authorization."}},"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}]}}}