generate-image
Create custom images from text prompts with configurable settings like aspect ratio, resolution, and output format. Save results to a specified directory.
Instructions
Generate an image based on a prompt
Input Schema
Name | Required | Description | Default |
---|---|---|---|
aspect_ratio | No | ||
filename | No | Base filename to save the image(s) with | |
go_fast | No | ||
megapixels | No | ||
num_inference_steps | No | ||
num_outputs | No | ||
output_dir | Yes | Full absolute path to output directory. For Windows, use double backslashes like 'C:\\Users\\name\\path'. For Unix/Mac use '/path/to/dir'. Always use the proper path otherwise you will get an error. | |
output_format | No | ||
output_quality | No | ||
prompt | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"aspect_ratio": {
"enum": [
"1:1",
"4:3",
"16:9"
],
"type": "string"
},
"filename": {
"description": "Base filename to save the image(s) with",
"type": "string"
},
"go_fast": {
"type": "boolean"
},
"megapixels": {
"enum": [
"1",
"2",
"4"
],
"type": "string"
},
"num_inference_steps": {
"maximum": 20,
"minimum": 4,
"type": "number"
},
"num_outputs": {
"maximum": 4,
"minimum": 1,
"type": "number"
},
"output_dir": {
"description": "Full absolute path to output directory. For Windows, use double backslashes like 'C:\\\\Users\\\\name\\\\path'. For Unix/Mac use '/path/to/dir'. Always use the proper path otherwise you will get an error.",
"type": "string"
},
"output_format": {
"enum": [
"webp",
"png",
"jpeg"
],
"type": "string"
},
"output_quality": {
"maximum": 100,
"minimum": 1,
"type": "number"
},
"prompt": {
"type": "string"
}
},
"required": [
"prompt",
"output_dir"
],
"type": "object"
}