Create a generation (paid)
deepy_create_generationStart a paid AI content generation (video, image, audio) after the user confirms the estimated cost, ensuring idempotent requests to avoid duplicate charges.
Instructions
Start a PAID generation. Requires confirmed=true — the tool refuses otherwise and contacts no backend. Params must be byte-identical to the estimate (quote == charge). An X-Idempotency-Key is auto-generated to prevent double-charging.
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": {
"modelName": "<modelName>",
"prompt": "<prompt>",
"confirmed": "<confirmed>"
},
"name": "deepy_create_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Prompt — must be byte-identical to the estimate (quote == charge). | |
| confirmed | Yes | MUST be true. Set to true ONLY after the user has seen the estimate and explicitly approved the charge. | |
| modelName | Yes | Model name (must match the estimate). | |
| parameters | No | Model parameters — must be byte-identical to the estimate. Defaults to {}. | |
| idempotencyKey | No | Optional X-Idempotency-Key. If omitted, a stable key is derived from the request body so retries of the same request are charged once. If you supply an explicit key, not reusing it with a different body is your responsibility. | |
| referenceFiles | No | Reference file ids — must match the estimate. Defaults to []. |