generate_image
Transform text prompts into custom images using the Flux model. Specify dimensions, aspect ratio, and save location for high-quality outputs with controlled denoising steps.
Instructions
Generate an image from a text prompt using Flux model
Input Schema
Name | Required | Description | Default |
---|---|---|---|
aspect_ratio | No | Aspect ratio for the generated image | 1:1 |
file_name | No | Name of the file to save the image | |
height | No | Height of the generated image | |
num_inference_steps | No | Number of denoising steps. 4 is recommended, and lower number of steps produce lower quality outputs, faster. | |
prompt | Yes | Prompt for generated image | |
save_folder | No | Folder path to save the image | ./output |
width | No | Width of the generated image |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"aspect_ratio": {
"default": "1:1",
"description": "Aspect ratio for the generated image",
"enum": [
"1:1",
"1:2",
"3:2",
"3:4",
"16:9",
"9:16"
],
"type": "string"
},
"file_name": {
"description": "Name of the file to save the image",
"minLength": 1,
"type": "string"
},
"height": {
"description": "Height of the generated image",
"exclusiveMinimum": 0,
"maximum": 1024,
"type": "integer"
},
"num_inference_steps": {
"default": 4,
"description": "Number of denoising steps. 4 is recommended, and lower number of steps produce lower quality outputs, faster.",
"maximum": 4,
"minimum": 1,
"type": "integer"
},
"prompt": {
"description": "Prompt for generated image",
"minLength": 1,
"type": "string"
},
"save_folder": {
"default": "./output",
"description": "Folder path to save the image",
"type": "string"
},
"width": {
"description": "Width of the generated image",
"exclusiveMinimum": 0,
"maximum": 1024,
"type": "integer"
}
},
"required": [
"prompt"
],
"type": "object"
}