Generate a thumbnail
generate_thumbnailCosts the image model's price, charged only after confirm_cents matches the quote: makes one thumbnail-shaped image and saves it to your Library.
Args: prompt: 1-4000 chars. aspect: 16:9 (YouTube) or 9:16. model: an image model id from list_models (optional). reference_library_ids: up to 3 image ids from library_list (kind image). confirm_cents: the price the user agreed to (from tool_cost_estimate); 0 with quote_only. idempotency_key: unique per purchase; a retry with the same key never buys twice. Idempotency is keyed on (this token, this tool, idempotency_key), not on the arguments: reusing an idempotency_key with different arguments returns the first result. quote_only: true returns the price and buys nothing.
Returns: {ok, kind:'image', library_id, model, cents}
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>",
"aspect": "<aspect>",
"confirm_cents": "<confirm_cents>"
},
"name": "generate_thumbnail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| aspect | Yes | ||
| prompt | Yes | ||
| quote_only | No | true: return the price and buy nothing. | |
| confirm_cents | Yes | The price in cents the user agreed to, from tool_cost_estimate or a quote_only call. Pass 0 with quote_only. | |
| idempotency_key | No | Any unique string per purchase; a retry with the same key never buys twice. | |
| reference_library_ids | No |