Generate an image
generate_imageDraw 1 to 4 images from a prompt. Without profile the prompt reaches the image model exactly as written, for anything, not only Instagram. With profile the image is drawn in that profile's look (its visual style and colours). Each newly generated image costs one credit from the Espaço's monthly quota; one that fails is not charged. Answers with a download link per image, valid for 7 days. Save the file if you need it longer. Pass a requestId so a retry after a timeout returns these images instead of drawing new ones.
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 | ||
| prompt | Yes | ||
| profile | No | A profile's handle from list_profiles, or its permanent UUID | |
| requestId | No | Any id you make up for this call, like a UUID. Send the same one if you retry after a timeout or a lost answer: you get the first answer back and nothing is spent twice. Remembered for 24 hours | |
| aspectRatio | No | 1:1 |