OpenAI includes reasoning tokens in usage.completion_tokensxAI doesn't include reasoning tokens in usage.completion_tokensTo get the total tokens with OpenAI or Deepseek R1, use the completion_tokens field. With xAI, sum the two values to get correct totals.Grok API provides a compatible OpenAI endpoint but xAI deviates from OpenAI's reasoning tokens accounting approach.