Generate
generateStart a generation (charges credits up front; refunded if it
fails or is cancelled). Returns the job; poll with
wait_for_generation. Above the workspace's confirm threshold the
call returns status: confirmation_required with the quoted
credits — ask the user, then call again with confirm_credits
equal to that quote. wait_seconds (≤ 25) blocks for quick models.
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": {
"model_id": "<model_id>",
"input": "<input>"
},
"name": "generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| model_id | Yes | ||
| wait_seconds | No | ||
| confirm_credits | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||