Create an image for a UI, site or design
generate_imageGenerate design assets for your own app, such as a logo, icon, hero image, illustration, UI mockup, or diagram. With no application, your account keeps it 7 days. link opens it in a browser until expires_at, at most one hour. renew_image_link replaces the link. With application, it uses app storage with no deployed code needed. That app's stored-data limit can refuse it before saving or counting.
The first images of each UTC month are free. free_images gives how many. Later delivered images draw the balance by resolution. read_account shows use under your sign-in or an authorized computer's token.
A saved picture normally has two download commands. If link or grant creation fails, it stays saved and counted. detail gives the remedy.
MCP inline: true returns pictures up to 256 KiB as image content. Past 45 seconds, the call fails and gives the image back. A failed give-back stays counted, uncharged. A repeat that delivers uses another image.
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 |
|---|---|---|---|
| inline | No | When true, a saved picture also appears as MCP image content if it is at most 256 KiB. A larger file, or a call over HTTP, includes no image content; the result explains why. | |
| prompt | Yes | The design asset to make, such as a hero image for your site or an app icon. It is sent to the model's provider. The platform keeps nothing about it. | |
| resolution | No | The image's size class; absent, `1K`. | |
| application | No | An application id from `tzcloud_list_applications`, to keep the picture in its storage. Leave it out to keep the picture in your account for 7 days. An empty or non-text value is refused `invalid_request`. | |
| environment | No | With `application` only: the partition receiving the file, or the app's deploy target if omitted. Without `application`, refused `invalid_request`. An environment the app lacks refuses `environment_not_created`. |