tasks
tasks

Get task usage

Return estimated model and cloud compute costs attributed to a task.

get/api/projects/{project_id}/tasks/{id}/usage/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/tasks/{id}/usage/
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

idstring required
project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Response

token_cost_usdnumber double required

Estimated model cost attributed to this task in US dollars.

compute_cost_usdnumber double required

Estimated cloud compute cost attributed to this task in US dollars.

total_cost_usdnumber double required

Estimated total cost attributed to this task in US dollars.

Changes

No recorded changes to this operation across all 1 revision of this API.