Grok Quick Response (All Models)
Responses API
Grok All-Model API - Responses Quickstart
- Call xAI Grok text models using the OpenAI Responses API format (pick the model via the
modelparameter) - Reasoning + tool-use models;
grok-4.5has a 500K-token context window - This endpoint unlocks xAI server-side tools: web search, X search, code execution, attachment search, and collections search (billed per successful call)
- 💡 Need tools and all parameters? See the full parameter documentation
POST
Grok Quick Response (All Models)
BaseURL: The default BaseURL is
https://direct.evolink.ai, which has better support for text models and long-lived connections. https://api.evolink.ai is the primary endpoint for multimodal services and serves as a fallback address for text models.Authorizations
##All APIs require Bearer Token authentication##
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Body
application/json
Response
Response generated successfully
Unique identifier for the response
Example:
"55d44212-8d5e-90cc-975f-36d341ce21f5"
Response type
Available options:
response Example:
"response"
Response status
Available options:
completed, incomplete, failed Example:
"completed"
Model name actually used
Example:
"grok-4.5"
Creation timestamp
Example:
1786538000
Output items. Grok reasoning models typically return reasoning items (summarized thinking) followed by a message item with the final answer.
Token usage statistics. Prompts of 200K tokens or more are billed at 2x for all token types.