Get Task Llm Usage
REST API - Tasks
Get Task LLM Usage
Get LLM token usage for a specific task
GET
Get Task Llm Usage
Retrieve LLM token usage statistics for a specific task, including input/output token counts and the number of tool actions performed.
Path Parameters
Unique identifier of the task (UUID format)
Response
Unique identifier of the task
Total number of LLM tokens consumed (input + output)
Number of input (prompt) tokens consumed
Number of output (completion) tokens generated
Number of tool actions performed during the task
Whether the task used a Bring Your Own Key (BYOK) model configuration
Estimated USD cost for non-BYOK executions in this task, rounded to 5 decimal places.
0.0 means no billable usage (empty task or fully BYOK).Example Request
Example Response
Use Cases
- Track token consumption - Monitor LLM token usage for individual tasks
- Cost tracking -
costis returned directly in USD, rounded to 5 decimal places (excludes BYOK executions) - Usage auditing - Review resource consumption across tasks
- BYOK tracking - Identify which tasks ran with your own API keys vs. platform-provided keys

