Generate image
generate_imageCreates images from text prompts in ClipCloud styles, returns links, and saves finished images to a chosen folder.
Instructions
Make images from a text prompt in a ClipCloud style. Waits up to wait_seconds; if the images are not ready by then, returns a creation_id: then call get_image with it. Never call generate_image again for the same request because it is slow or returned an error after starting: that starts and charges a new generation. Returns temporary links, shows the images and can save them to save_dir. Costs credits from the API key balance (see estimate_cost); up to 25 images a day are free when the paid balance is empty.
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 |
|---|---|---|---|
| count | No | How many images, 1 to 10. Make 1 unless the user asks for more. | |
| style | No | Style name, exactly as list_styles shows it. Examples: HD-HQ (default, 1024x1024), FullHD-HQ-h (1536x1024), FullHD-HQ-v (1024x1536), photorealistic-1, anime, aquarelle, pixel-art, lowquality (fast draft). | HD-HQ |
| prompt | Yes | What to draw, up to 2000 characters. English works best: describe the subject, setting, light and composition. | |
| save_dir | No | Folder to save the finished images to: an absolute path, or a path relative to the open project. Created if missing. Leave empty to only get links. | |
| file_name | No | File name for saved images, without extension, for example "hero". With several images, -1, -2 and so on are added. Existing files are never replaced: a number is added instead. | |
| wait_seconds | No | How long this call may take, in seconds (default 45). Many apps cancel a tool call after about 60 seconds, so keep the default unless you know your app allows longer calls. If the images are not ready in time, the answer says so and gives the creation_id. | |
| return_images | No | Whether to show the finished images in the answer (up to 2 small ones) so you can see them. Links are always returned. Set false to save context. | |
| negative_prompt | No | What to avoid in the image, for example "text, watermark, blurry". |