xAI developer release notesOfficial · official
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. For more details, see the Cost Tracking docs . Apr 28
Open original source