Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
Cost | *float64 | ➖ | What OpenRouter charges for the request, in credits. On a BYOK request this is the OpenRouter fee only. | |
CostDetails | optionalnullable.OptionalNullable[components.CostDetails] | ➖ | Breakdown of upstream inference costs | { “upstream_inference_completions_cost”: 0.0004, “upstream_inference_cost”: null, “upstream_inference_prompt_cost”: 0.0008 } |
InputTokens | int64 | ✔️ | N/A | |
InputTokensDetails | *components.DecisionsUsageInputTokensDetails | ➖ | Of input_tokens, those the provider served from its prompt cache. | |
IsBYOK | *bool | ➖ | Whether a request was made using a Bring Your Own Key configuration | |
OutputTokens | int64 | ✔️ | N/A |