generate_image
Create custom images based on text prompts using AI-powered tools. Specify aspect ratios, generate multiple images, and save outputs with defined file paths for seamless integration into projects.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
aspectRatio | No | Aspect ratio of the image | |
n | No | Number of images to generate (1-9) | |
outputFile | Yes | Absolute path to save the generated image file. The directory must already exist. When generating multiple images (n>1), files will be named with sequential numbers (e.g., 'image-1.jpg', 'image-2.jpg') | |
prompt | Yes | Description of the image to generate | |
subjectReference | No | Path to a local image file or a public URL for character reference image |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"aspectRatio": {
"description": "Aspect ratio of the image",
"enum": [
"1:1",
"16:9",
"4:3",
"3:2",
"2:3",
"3:4",
"9:16",
"21:9"
],
"type": "string"
},
"n": {
"description": "Number of images to generate (1-9)",
"maximum": 9,
"minimum": 1,
"type": "number"
},
"outputFile": {
"description": "Absolute path to save the generated image file. The directory must already exist. When generating multiple images (n>1), files will be named with sequential numbers (e.g., 'image-1.jpg', 'image-2.jpg')",
"type": "string"
},
"prompt": {
"description": "Description of the image to generate",
"type": "string"
},
"subjectReference": {
"description": "Path to a local image file or a public URL for character reference image",
"type": "string"
}
},
"required": [
"prompt",
"outputFile"
],
"type": "object"
}