create_generation
Create a paid Studio task after the user approves the quote. Pass its maxAcceptedMicrocredits and the same model input. Generate a fresh UUID for each new task and reuse it with identical input on retries.
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": {
"modelKey": "<modelKey>",
"input": "<input>",
"requestId": "<requestId>",
"maxAcceptedMicrocredits": "<maxAcceptedMicrocredits>"
},
"name": "create_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| modelKey | Yes | ||
| requestId | Yes | ||
| maxAcceptedMicrocredits | Yes |