Generate AI image
create_ai_imageGenerate an image after the customer approves the prompt and ratio. Success costs 50 credits. Reuse a key only for the same request.
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": {
"idempotency_key": "<idempotency_key>",
"prompt": "<prompt>",
"aspect_ratio": "<aspect_ratio>"
},
"name": "create_ai_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| aspect_ratio | Yes | ||
| idempotency_key | Yes | Reuse this key only when retrying the same command. A new key starts new work and can spend credits again. | |
| parent_image_id | No | ||
| proposal_message_id | No |