CostUsage

Token counts for one model call. Each is a whole number, at least 0.

  • Input tokens written to the prompt cache, priced at the model's input rate.

  • Input tokens read from the prompt cache, priced at the model's cache-read rate.

  • Input tokens, not counting cache reads or cache writes.

  • Output tokens, including any reasoning tokens.

  • How many of outputTokens were reasoning tokens. Kept with the record; priced as part of outputTokens.