# UsageOutcomeTotals

The usage of the runs that ended one way (or are still in progress).

**Kind:** an object, used in responses.

## Fields

Every field is present in a response; empty ones are `null`.

| Field | Type | Description |
|---|---|---|
| `outcome` | [`UsageOutcome`](https://docs.maitento.com/reference/types/usage-outcome.md) | How the runs ended. |
| `totals` | [`UsageTotals`](https://docs.maitento.com/reference/types/usage-totals.md) | Their usage. |

## Example

```json
{
  "outcome": "InProgress",
  "totals": {
    "runs": 0,
    "runtimeMs": 0,
    "executionMs": 0,
    "steps": 0,
    "stepRuntimeMs": 0,
    "toolCalls": 0,
    "tokens": {
      "input": 0,
      "output": 0,
      "cacheRead": 0,
      "cacheWrite": 0,
      "reasoning": 0,
      "total": 0
    },
    "webSearches": 0,
    "webPages": 0,
    "webDownloads": 0,
    "imageDescriptions": 0,
    "webCredits": 0,
    "webBytes": 0
  }
}
```

## Where it's used

- Inside [`UsageSummary`](https://docs.maitento.com/reference/types/usage-summary.md)
