Generate an image
generate_imageCreate an image in Cormak Photo Studio, saved in your image library. Nano Banana 2 costs 2 shared credits. Free-photo trials are not used through MCP. Poll get_generation for the saved image URL. This call is deduplicated by request_id. Before starting, the owner must also approve the exact request at the returned approval_url in Cormak. Then repeat the same request_id and parameters.
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": {
"request_id": "<request_id>",
"confirm_spend": "<confirm_spend>",
"prompt": "<prompt>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | realistic | |
| prompt | Yes | ||
| reference | No | ||
| request_id | Yes | A UUID for this exact request. Reuse it on retries; changing it requests another paid generation. | |
| aspect_ratio | No | 1:1 | |
| confirm_spend | Yes | Set true only after the user confirms spending their Cormak credits. |