Generate image
generate_imageMake 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 and shows the images. 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. | |
| wait_seconds | No | How long this call may take, in seconds (default 45, at most 120). 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". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | ||
| images | Yes | Finished images; empty while running. | |
| prompt | No | ||
| status | Yes | "done": the images are ready. "running": still generating; call get_image with creation_id. | |
| blocked | No | Images removed by the content filter. | |
| cost_usd | No | ||
| warnings | No | ||
| next_step | Yes | What to do next. | |
| creation_id | Yes | ID of the generation; pass it to get_image. | |
| cost_credits | No | Charged from the paid balance, in credits (1 credit = $0.0025). | |
| free_images_used | No | Free daily images used instead of the paid balance. |