generate_image
Create images from text descriptions using AI, with options to customize size, quality, and background settings.
Instructions
Generate images using fal.ai GPT image-1 text-to-image API
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of the image to generate | |
| image_size | No | Size of the generated image | auto |
| num_images | No | Number of images to generate | |
| quality | No | Quality of the generated image | auto |
| background | No | Background type of the generated image | auto |