header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/jsonRequired
Example
{"model":"grok-4-1-fast-non-reasoning","messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Hi","role":"user"}],"max_tokens":4096,"stream":false,"temperature":1}
{"id":"1f23440e-62e0-2765-4bc7-ee9d245e6dfb","model":"grok-4-1-fast-non-reasoning","object":"chat.completion","created":1766999304,"choices":[{"index":0,"message":{"role":"assistant","content":"Hi! How can I help you today?"},"finish_reason":"stop"}],"usage":{"prompt_tokens":174,"completion_tokens":9,"total_tokens":183,"prompt_tokens_details":{"cached_tokens":162,"text_tokens":174,"audio_tokens":0},"completion_tokens_details":{"text_tokens":9,"audio_tokens":0,"reasoning_tokens":0},"input_tokens":0,"output_tokens":0,"input_tokens_details":null},"system_fingerprint":"fp_9d01d9ad3c"}