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

## Fields

| Field | Type | Required | Description |
| - | - | - | - |
| `ServerToolCost` | optionalnullable.OptionalNullable\[`float64`] | :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` | `float64` | :heavy\_check\_mark: | N/A |
| `UpstreamInferenceCost` | optionalnullable.OptionalNullable\[`float64`] | :heavy\_minus\_sign: | N/A |
| `UpstreamInferencePromptCost` | `float64` | :heavy\_check\_mark: | N/A |
