Generate or edit an image with Kavel
generate_kavel_imageCreate an image from a prompt, or edit the user's photo, on their Kavel account. Pass tool (a slug from find_kavel_tool) to apply that effect's tuned recipe, with prompt holding the user's own details. Photo tools need a photo: the user's attachment in photos, or a public link in image_urls. Spends credits from the linked Kavel account. Usually returns the image within a minute; otherwise returns a task_id for check_kavel_generation.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_kavel_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | Optional image tool slug from find_kavel_tool. | |
| photos | No | Photos the user attached in the chat. Required by photo tools. | |
| prompt | No | The user's description, or their extra details when a tool is given. | |
| image_urls | No | Photos to edit given as public http(s) links, when not attached. | |
| aspect_ratio | No | Output image shape. Defaults to 1:1. |