releases.shpreview
xAI/Release Notes/Cost Tracking

Cost Tracking

Every API response now includes the exact cost of the request via a cost_in_usd_ticks field in the usage object. Works across chat completions, Responses API, image generation, video generation, and streaming.

Fetched May 26, 2026