CostUsage
Token counts for one model call. Each is a whole number, at least 0.
- cacheType: integer
Creation Input Tokens min:0Input tokens written to the prompt cache, priced at the model's input rate.
- cacheType: integer
Read Input Tokens min:0Input tokens read from the prompt cache, priced at the model's cache-read rate.
- inputType: integer
Tokens min:0Input tokens, not counting cache reads or cache writes.
- outputType: integer
Tokens min:0Output tokens, including any reasoning tokens.
- reasoningType: integer
Output Tokens min:0How many of
outputTokenswere reasoning tokens. Kept with the record; priced as part ofoutputTokens.