{
"input": [
{
"role": "system",
"content": "You are a highly intelligent AI assistant."
},
{
"role": "user",
"content": "What is 101*3?"
}
],
"model": "grok-3-mini",
"reasoning": {
"effort": "high"
},
"stream": false
}curl --location --request POST 'v1/responses' \
--header 'Authorization: Bearer $XAI_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"input": [
{
"role": "system",
"content": "You are a highly intelligent AI assistant."
},
{
"role": "user",
"content": "What is 101*3?"
}
],
"model": "grok-3-mini",
"reasoning": {
"effort": "high"
},
"stream": false
}'{}