Default model
Supported models
Any model available through the xAI API:grok-4.3(default, flagship)grok-3.5grok-3grok-3-mini- Any other model ID the API accepts
Authentication
Environment variable:Example usage
Tool-use support
Yes. Compatible with all 39 tool-use attacks in the framework — agent exploitation, MCP exploitation, multi-agent protocol attacks, and tool-injection vectors. Filter the attack catalog with:Notes
- The provider uses the OpenAI SDK pointed at xAI’s API (
base_url="https://api.x.ai/v1") - Max output tokens per request: 4,096
- System prompts are passed as a
systemrole message - Retry with exponential backoff is automatic on API failures (3 attempts)
- Grok is less RLHF-aligned than many frontier models, so safety-test results may differ meaningfully from Claude or GPT