Tarseek

Tarseek API

Usage & token accounting

Successful chat completions include a usage object with:

  • prompt_tokens for input tokens
  • completion_tokens including visible output
  • completion_tokens_details.reasoning_tokens when reported
  • prompt_tokens_details.cached_tokens for prompt cache hits when reported
  • total_tokens
  • cost — the exact USD credit debit for the successful request
  • cost_details.currency — currently USD

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.