{"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":0,"maximum":2147483647},{"type":"null"}]},"prompt":{"type":"string","description":"The prompt to generate an image from."},"sync_mode":{"type":"boolean","description":"If True, the media will be returned as a data URI and the output data won't be available in the request history."},"image_size":{"anyOf":[{"type":"object","properties":{"width":{"type":"integer","exclusiveMinimum":0,"maximum":14142,"description":"The width of the generated image."},"height":{"type":"integer","exclusiveMinimum":0,"maximum":14142,"description":"The height of the generated image."}},"additionalProperties":false},{"type":"string","enum":["square_hd","square","portrait_4_3","portrait_16_9","landscape_4_3","landscape_16_9"]}]},"num_images":{"type":"integer","minimum":1,"maximum":4,"description":"The number of images to generate."},"acceleration":{"type":"string","enum":["none","regular","high"]},"output_format":{"type":"string","enum":["jpeg","png"]},"guidance_scale":{"type":"number","minimum":1,"maximum":20,"description":"The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you."},"num_inference_steps":{"type":"integer","minimum":1,"maximum":12,"description":"The number of inference steps to perform."},"enable_safety_checker":{"type":"boolean","description":"If set to true, the safety checker will be enabled."}},"additionalProperties":false},"together":{"type":"object","properties":{"n":{"type":"integer","minimum":1,"maximum":4,"description":"Number of images to generate."},"seed":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Fixes random initialization for reproducibility."},"model":{"type":"string","description":"The model API string, e.g. black-forest-labs/FLUX.1-schnell."},"steps":{"type":"integer","minimum":1,"maximum":50,"description":"Number of diffusion steps."},"width":{"type":"integer","minimum":256,"maximum":1536,"description":"Output width in px (multiple of 8)."},"height":{"type":"integer","minimum":256,"maximum":1536,"description":"Output height in px (multiple of 8)."},"prompt":{"type":"string","description":"A description of the image to generate."},"output_format":{"type":"string","enum":["jpeg","png"]},"negative_prompt":{"type":"string","description":"A description of what to avoid in the generated image."},"response_format":{"type":"string","enum":["url","base64"]},"disable_safety_checker":{"type":"boolean","description":"Disables the built-in NSFW safety checker."}},"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}]}}}