---
title: "ReportLLMUsage"
method: POST
path: "/gitpod.v1.RunnerInteractionService/ReportLLMUsage"
tags: ["gitpod.v1.RunnerInteractionService"]
---

# ReportLLMUsage

`POST /gitpod.v1.RunnerInteractionService/ReportLLMUsage`

## Request body

- GitpodV1ReportLLMUsageRequest
  - `agentExecutionId` string — The agent execution ID if this usage is associated with an agent execution
  - `idempotencyKey` string — Idempotency key to prevent duplicate usage reports
  - `llmIntegrationId` string, uuid — The LLM integration's ID
  - `runnerId` string, uuid — The runner's identity
  - `supportedModel` 'SUPPORTED_MODEL_UNSPECIFIED' | 'SUPPORTED_MODEL_SONNET_3_5' | 'SUPPORTED_MODEL_SONNET_3_7' | 'SUPPORTED_MODEL_SONNET_3_7_EXTENDED' | 'SUPPORTED_MODEL_SONNET_4' | 'SUPPORTED_MODEL_SONNET_4_EXTENDED' | 'SUPPORTED_MODEL_SONNET_4_5' | 'SUPPORTED_MODEL_SONNET_4_5_EXTENDED' | 'SUPPORTED_MODEL_OPUS_4' | 'SUPPORTED_MODEL_OPUS_4_EXTENDED' | 'SUPPORTED_MODEL_OPUS_4_5' | 'SUPPORTED_MODEL_OPUS_4_5_EXTENDED' | 'SUPPORTED_MODEL_OPENAI_4O' | 'SUPPORTED_MODEL_OPENAI_4O_MINI' | 'SUPPORTED_MODEL_OPENAI_O1' | 'SUPPORTED_MODEL_OPENAI_O1_MINI'
  - `usage` GitpodV1LLMUsage
    - `cacheInputCreationTokens` string — Number of tokens used for cache input creation
    - `cachedInputTokens` string — Number of cached input tokens used
    - `ephemeral1hInputTokens` string — Number of ephemeral 1-hour input tokens used
    - `ephemeral5mInputTokens` string — Number of ephemeral 5-minute input tokens used
    - `inputTokens` string — Number of input tokens consumed
    - `outputTokens` string — Number of output tokens generated

## Response `200`

Success

- GitpodV1ReportLLMUsageResponse

## Other responses

- `default` — Error

## Changes

- **2025-12-15** `d62ef4b9187c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.RunnerInteractionService/ReportLLMUsage/post.md)

---

[API](https://skmtc.dev/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.dev/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/2423c089f280/schema)
