generate-image
Create custom images from text descriptions using AI models. Choose image size, model type, and generation parameters to produce visual content for various applications.
Instructions
Generate an image from a text prompt using a selectable text-to-image model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text prompt describing the image to generate | |
| model | No | ID of the text-to-image model to use (any valid fal.ai model ID) | fal-ai/recraft-v3 |
| image_size | No | Size of the generated image | landscape_4_3 |
| num_images | No | Number of images to generate | |
| num_inference_steps | No | Number of inference steps | |
| guidance_scale | No | Classifier Free Guidance scale | |
| enable_safety_checker | No | Enable the safety checker |
Input Schema (JSON Schema)
{
"properties": {
"enable_safety_checker": {
"default": true,
"description": "Enable the safety checker",
"type": "boolean"
},
"guidance_scale": {
"default": 3.5,
"description": "Classifier Free Guidance scale",
"type": "number"
},
"image_size": {
"default": "landscape_4_3",
"description": "Size of the generated image",
"enum": [
"square_hd",
"square",
"portrait_4_3",
"portrait_16_9",
"landscape_4_3",
"landscape_16_9"
],
"type": "string"
},
"model": {
"default": "fal-ai/recraft-v3",
"description": "ID of the text-to-image model to use (any valid fal.ai model ID)",
"type": "string"
},
"num_images": {
"default": 1,
"description": "Number of images to generate",
"type": "integer"
},
"num_inference_steps": {
"default": 28,
"description": "Number of inference steps",
"type": "integer"
},
"prompt": {
"description": "Text prompt describing the image to generate",
"type": "string"
}
},
"required": [
"prompt"
],
"type": "object"
}