Zactonz AI Connector for xAI Grok
v1.0.0xAI 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.
FAQ
Where do I get an API key?#
Create one in the xAI console at console.x.ai.
Which models will I see?#
The Grok chat and image models your xAI account can reach. Each model's input and output modalities come from xAI's model endpoint, so vision appears on the models that accept images, image generation on the models that produce them, and reasoning on the snapshots xAI names as reasoning models.
Why are some Grok models missing from the picker?#
xAI lists its video and voice models from the same catalogue as its chat models. The WordPress AI Client has no contract for those outputs, so the connector leaves them out rather than offering something WordPress cannot call.
Can I ask for a JSON schema?#
Yes. xAI accepts a JSON schema, not only JSON mode, so the connector advertises schema support for Grok models and sends the schema a feature asks for. This differs from some other providers, which accept JSON mode only.
Which reasoning levels can I choose?#
Exactly the ones xAI documents, read from its reasoning guide, plus Model default, which leaves the parameter off the request. The control applies to the default text model and is sent only with requests to that model. Which levels a model accepts is up to xAI, so a model that does not reason, or that does not accept the level you chose, may ignore or refuse it; check xAI's documentation before relying on a particular level.
Can WordPress generate images with Grok?#
Yes. The WordPress AI Client that ships with WordPress 7.1 includes an image generation contract, and the connector offers Grok's image models to it, calling xAI's image generation endpoint. Choose a default image model and an image timeout in Settings › xAI Grok.
Are embeddings available?#
No. xAI does not offer embedding models, so the connector does not advertise the capability.
Does this replace the connectors in WordPress core?#
No. WordPress core ships its own connectors. This plugin adds xAI Grok alongside them, and you can keep several connectors active at once and pick a default model per capability.
Is my key ever displayed or logged?#
No. It is never rendered back into the settings screen, and it is excluded from the diagnostics report and from Site Health debug information.
Which WordPress and PHP versions are supported?#
WordPress 7.0 or newer and PHP 7.4 or newer. The connector is tested against the AI Client build that ships with WordPress 7.1 as well as the newest release.