Zactonz AI Connector for xAI Grok

v1.0.0

xAI Grok connector for the WordPress AI Client. Grok text, vision, tool calling, structured output with a real JSON schema, reasoning effort and image generation, with each model's modalities read from xAI's own catalogue.

WordPress 7.0+PHP 7.4+An xAI account and API key Updated 22 Oct 2026

Changelog

1.0.0 — 22 October 2026#

  • Initial release.
  • Registers xAI Grok with the WordPress AI Client and the Settings › Connectors screen.
  • Discovers models from xAI's model endpoint, reading each model's input and output modalities rather than inferring them from its name.
  • Leaves out the video and voice models xAI returns from the same endpoint, by the output each one declares.
  • Tells reasoning snapshots from non-reasoning snapshots of the same Grok version by name.
  • Structured output against a JSON schema, which xAI accepts.
  • Image generation with Grok's image models through xAI's image generation endpoint.
  • Reasoning effort control for the default text model, offering only xAI's documented levels and sent only with requests to that model.
  • Cancellable server-sent event streaming for content, reasoning and tool-call chunks.
  • Redacted diagnostics report and an asynchronous WordPress Site Health connectivity test.
  • API key from a PHP constant or an environment variable.