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

Zactonz AI Connector for xAI Grok registers xAI as a connector for the WordPress AI Client. It is built for the Settings › Connectors screen and for the plugin-directory connector search, so when WordPress asks for a connector you can add xAI Grok in a couple of clicks. Once active, the Grok models on your xAI account are available to AI features in WordPress.

xAI publishes the Grok family for text, vision and image generation from one catalogue. The connector reads xAI's richer model endpoint, which reports each model's input and output modalities, so a Grok model arrives in WordPress with the capabilities xAI declares for it, and image models are wired to the image generation endpoint rather than to chat.

Features#

  • Text generation with every Grok chat model your credentials can reach.
  • Automatic model discovery, with each model's input and output modalities taken from the xAI catalogue.
  • Vision input on the models that accept images.
  • Tool calling on the models that support functions.
  • Structured output against a JSON schema, not only JSON mode, because xAI accepts a schema.
  • Image generation with Grok's image models, through the WordPress AI Client's image generation contract.
  • Reasoning effort control for the default text model, offering only the levels xAI documents.
  • Cancellable server-sent event streaming for content, reasoning and tool-call chunks.
  • Configurable request timeouts for text and images.
  • API key supplied by a PHP constant or an environment variable instead of the database.
  • An API base URL override for a proxy or gateway, within the hosts and ports WordPress allows outbound requests to.
  • Redacted diagnostics and a WordPress Site Health connectivity test.

What the model list leaves out, and why#

xAI serves its video and voice models from the same catalogue as its chat models, and publishes no task flags that would separate them. The connector therefore goes by what each model declares it produces: a model whose output is neither text, an image nor an embedding is not offered as a text model, whatever else it reports. The video and voice models are left out of the picker rather than offered as something WordPress cannot call, and the same rule will catch the next kind of model xAI adds without a code change.

Reasoning#

xAI ships reasoning and non-reasoning snapshots of the same Grok version, so the connector tells them apart by name and flags only the reasoning ones. The reasoning control in Settings › xAI Grok offers exactly the levels xAI documents, plus Model default, which leaves the parameter off the request.

A note on structured output#

xAI accepts response_format as plain text, as JSON mode and as a JSON schema. The connector therefore advertises schema support for Grok models and sends the schema a WordPress feature asks for, rather than falling back to JSON mode and hoping the shape comes out right.

Part of a family#

This connector is one of the Zactonz AI Connector plugins, which add the providers WordPress core leaves out. They follow one set of conventions, so every connector behaves the same way in the admin. Zactonz AI Connector for Ollama covers local, self-hosted and Ollama Cloud models; Zactonz AI Connector for OpenRouter covers hundreds of hosted models behind one key; Zactonz AI Connector for Groq covers very low latency inference on GroqCloud; Zactonz AI Connector for DeepSeek covers DeepSeek's long-context models; Zactonz AI Connector for Mistral AI covers Mistral AI's open-weight and commercial models with capabilities read from its catalogue. All of them are listed under WordPress.

Not affiliated#

This connector is developed by Zactonz Technologies and is not affiliated with, endorsed by or sponsored by xAI. xAI and Grok are trademarks of X.AI Corp.