Generated from:
Create a POST request to xAI Grok API for a chat completion with grok-4.20 model
URL
https://api.x.ai/v1/chat/completions
Headers
| Authorization | Bearer {{XAI_API_TOKEN}} |
|---|---|
| Content-Type | application/json |
Body
{"messages":[{"role":"user","content":"Hello, how can you help me today?"}]}This request was generated from:
Create a POST request to xAI Grok API for a chat completion with grok-4.20 model
Generate your own →Type any API. Get a production-ready request. No login required.