generate_image
Create images from text descriptions using AI models like Flux and Stable Diffusion. Specify prompts, model type, image size, and other parameters to generate custom visuals.
Instructions
Generate images from text prompts using various models (fast, uses async API)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
image_size | No | landscape_16_9 | |
model | No | Model to use for generation | flux_schnell |
negative_prompt | No | What to avoid in the image | |
num_images | No | ||
prompt | Yes | Text description of the image to generate | |
seed | No | Seed for reproducible generation |
Input Schema (JSON Schema)
{
"properties": {
"image_size": {
"default": "landscape_16_9",
"enum": [
"square",
"landscape_4_3",
"landscape_16_9",
"portrait_3_4",
"portrait_9_16"
],
"type": "string"
},
"model": {
"default": "flux_schnell",
"description": "Model to use for generation",
"enum": [
"flux_schnell",
"flux_dev",
"flux_pro",
"sdxl",
"stable_diffusion"
],
"type": "string"
},
"negative_prompt": {
"description": "What to avoid in the image",
"type": "string"
},
"num_images": {
"default": 1,
"maximum": 4,
"minimum": 1,
"type": "integer"
},
"prompt": {
"description": "Text description of the image to generate",
"type": "string"
},
"seed": {
"description": "Seed for reproducible generation",
"type": "integer"
}
},
"required": [
"prompt"
],
"type": "object"
}