Key Info

A walkthrough of AI request billing explains why tokens not visible in the final answer can still be charged, and offers concrete ways to reduce token consumption and verify actual usage.

Highlights

  • Cost optimization tips: use Prompt Caching where supported (cached tokens billed at the cheaper Cache Read rate), keep input context concise instead of resending full history, cap output with max_output_tokens on the Responses API (note the cap includes reasoning tokens), and match model tier to task difficulty.
  • Verify usage via the Usage Detail page, which records creation time, interaction type, model, token usage, Credits consumed, and response time per request.
  • On the chat page, hover over the model name at the bottom-right of a reply to see that call's cost details.
  • Developers can check API usage fields: Chat Completions returns prompt_tokens, completion_tokens, total_tokens; Responses API returns input_tokens, output_tokens, total_tokens, with reasoning tokens available via output_tokens_details.reasoning_tokens.