Default model

Supported models

Any model available through the xAI API:
  • grok-4.3 (default, flagship)
  • grok-3.5
  • grok-3
  • grok-3-mini
  • Any other model ID the API accepts

Authentication

Environment variable:
Config command:
Get your API key from the xAI Console.

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 system role 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