Tarseek API
Usage & token accounting
Successful chat completions include a usage object with:
prompt_tokensfor input tokenscompletion_tokensincluding visible outputcompletion_tokens_details.reasoning_tokenswhen reportedprompt_tokens_details.cached_tokensfor prompt cache hits when reportedtotal_tokenscost— the exact USD credit debit for the successful requestcost_details.currency— currentlyUSD
A provider response without usage fails as provider_response_error and is not charged. Streaming returns the final usage and cost chunk when stream_options.include_usage is true.
