Model API guides / xAI Grok
xAI Grok API integration
xAI model family
Grok models can be integrated with an OpenAI-compatible client when the corresponding channel and model are enabled. Verify a basic text request before using additional tools.
Check model access
Model availability depends on the channels enabled for your account and the scope of your TokenPilot key. Request the model list and copy an exact ID before calling the model.
curl "https://api.tokentpilot.com/v1/models" \
-H "Authorization: Bearer $TOKENPILOT_API_KEY"
Choose a compatible endpoint
/v1/chat/completions
Check the exact model ID and whether the channel exposes tool, vision or media options before forwarding provider-specific parameters.