xAI Grok

Generated from:

Create a POST request to xAI Grok API for a chat completion with grok-4.20 model

Request

POST

URL

https://api.x.ai/v1/chat/completions

Headers

AuthorizationBearer {{XAI_API_TOKEN}}
Content-Typeapplication/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.