> ## 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.

# CostDetails

Breakdown of upstream inference costs

## Example Usage

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

let value: CostDetails = {
  upstreamInferenceCompletionsCost: 0.0004,
  upstreamInferencePromptCost: 0.0008,
};
```

## Fields

| Field | Type | Required | Description |
| - | - | - | - |
| `serverToolCost` | *number* | :heavy\_minus\_sign: | Metered server-tool execution cost (for example, shell sandbox time) billed for this request, in USD. Matches the billed checkpoint and settlement amounts exactly. 0 when a metered server tool ran but settled at zero dollars; absent when no metered server tool ran. |
| `upstreamInferenceCompletionsCost` | *number* | :heavy\_check\_mark: | N/A |
| `upstreamInferenceCost` | *number* | :heavy\_minus\_sign: | N/A |
| `upstreamInferencePromptCost` | *number* | :heavy\_check\_mark: | N/A |
