Skip to main content
POST
/
v1
/
chat
/
completions
grok-3-reasoner-r (text to text)
curl --request POST \
  --url https://api.example.com/v1/chat/completions
Grok’s openai format for the text to text API.
curl -X POST "https://gptproto.com/v1/chat/completions" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-3-reasoner-r",
  "messages": [
    {
      "role": "user",
      "content": "Who are you?"
    }
  ],
  "stream": false
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Parameters

ParameterTypeRequiredDefaultDescription
modelstring✅ Yesgrok-3-reasoner-rThe model to use for the request. grok-3-reasoner-r
messagesarray✅ Yes-Array of message objects for the conversation * role:user,The role of the message. * role:assistant,The role of the message. * role:system,The role of the message.
contentarray✅ Yes-text
textstring✅ Yes-* type:text,The positive prompt for the generation.
streamboolean❌ NotrueWhether to stream the response