> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# UsageCostDetails - TypeScript SDK

> UsageCostDetails type definition

<Warning>
  The TypeScript SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/typescript-sdk/issues).
</Warning>

## Example Usage

```typescript lines theme={null}
import { UsageCostDetails } from "@openrouter/sdk/models";

let value: UsageCostDetails = {
  upstreamInferenceInputCost: 1419.94,
  upstreamInferenceOutputCost: 9808.47,
};
```

## Fields

| Field                         | Type     | Required             | Description |
| ----------------------------- | -------- | -------------------- | ----------- |
| `upstreamInferenceCost`       | *number* | :heavy\_minus\_sign: | N/A         |
| `upstreamInferenceInputCost`  | *number* | :heavy\_check\_mark: | N/A         |
| `upstreamInferenceOutputCost` | *number* | :heavy\_check\_mark: | N/A         |
