generate_image
Create images from text prompts using AI models like Imagen-4 and Flux. Specify size, quality, and style to generate custom visuals for projects.
Instructions
Generate a single image from a text prompt.
Args: prompt: Text description of the image to generate. model: Model to use (imagen-4, imagen-4-fast, imagen-4-ultra, flux-1.1-pro, gpt-image-1). size: Image size (256x256, 512x512, 1024x1024, 1792x1024, 1024x1792). quality: Image quality (standard, hd). style: Image style (vivid, natural).
Returns: Dictionary with success status, file path, and metadata.
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 | ||
| model | No | imagen-4 | |
| size | No | 1024x1024 | |
| quality | No | standard | |
| style | No | vivid |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||