menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Grok 3 API...
source image

Dev

1M

read

4

img
dot

Image Credit: Dev

Grok 3 API - Reasoning Tokens are Counted Differently

  • OpenAI includes reasoning tokens in usage.completion_tokens
  • xAI doesn't include reasoning tokens in usage.completion_tokens
  • To 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.

Read Full Article

like

Like

For uninterrupted reading, download the app