{"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"}]},"prompt":{"type":"string","description":"Text description of the image to generate."},"styles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Krea style identifier (a LoRA-based preset style) returned by the Krea styles catalog."},"strength":{"type":"number","minimum":-2,"maximum":2,"description":"How strongly the style influences the generated image. Negative values push away from the style."}},"required":["id"],"additionalProperties":false}},"creativity":{"type":"string","enum":["raw","low","medium","high"]},"moodboards":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Krea moodboard identifier (UUID)."},"strength":{"type":"number","minimum":0,"maximum":1,"description":"How strongly the moodboard influences the generated image."}},"required":["id"],"additionalProperties":false}},"aspect_ratio":{"type":"string","enum":["1:1","4:3","3:2","16:9","2.35:1","4:5","2:3","9:16"]},"image_style_references":{"type":"array","items":{"type":"object","properties":{"strength":{"type":"number","minimum":-2,"maximum":2,"description":"How strongly the reference influences the generated image. Negative values push away from the reference."},"image_url":{"type":"string","description":"Publicly accessible URL of a reference image."}},"required":["image_url"],"additionalProperties":false}}},"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}]}}}