Create a billable SpicyAPI task
spicyapi_task_createGet a request quote with USD estimate and max charge for confirmation, then reserve funds and create an async task. Fails without client form support, charging nothing.
Instructions
Obtain the exact request quote, show its USD estimate and maximum charge for user confirmation, then reserve funds and create an asynchronous task. Do not call task_quote first unless independently comparing prices. The confirmation needs an MCP client that supports form elicitation; if the client does not, the call fails after the free quote and no task is created or charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| model | Yes | ||
| callBackUrl | No | ||
| idempotencyKey | No | ||
| retentionSeconds | No | How long SpicyAPI keeps this task's generated media, result payload, prompt and other input text, in seconds. Only ever shortens: the account settings and platform maximum still apply, so this cannot extend retention. 0 removes them as soon as the task reaches a terminal state. Set it only when the user asked for a shorter window; the accepted deadlines come back in the task record's retention field. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |