Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 4.96 KB

decisionsresponseusage.mdx

File metadata and controls

14 lines (12 loc) · 4.96 KB
title DecisionsResponseUsage

Fields

Field Type Required Description Example
cost Optional[float] ➖ What OpenRouter charges for the request, in credits. On a BYOK request this is the OpenRouter fee only.
cost_details OptionalNullable[components.CostDetails] ➖ Breakdown of upstream inference costs {
"upstream_inference_completions_cost": 0.0004,
"upstream_inference_cost": null,
"upstream_inference_prompt_cost": 0.0008
}
input_tokens int ✔️ N/A
input_tokens_details Optional[components.DecisionsUsageInputTokensDetails] ➖ Of input_tokens, those the provider served from its prompt cache.
is_byok Optional[bool] ➖ Whether a request was made using a Bring Your Own Key configuration
output_tokens int ✔️ N/A