Get a Wiro task price
get_task_priceDetermine the charged cost for a task. Successful tasks are billed, failed tasks are not. If the task is active, follow wait_for_task for completion and pricing.
Instructions
Get one task’s final charged cost. Successful tasks are billed; failed tasks are not. If the task is active, follow the returned wait_for_task next action.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskid | No | The task ID (alternative to tasktoken). | |
| tasktoken | No | The task token returned from run_model. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| state | Yes | ||
| billed | Yes | ||
| costUsd | Yes | ||
| nextAction | No |