Description
This plugin provides the xAI (Grok) implementation for the WordPress AI Client. It registers xAI as an available AI provider, allowing other plugins built on the WordPress AI Client to generate text using xAI’s Grok models.
The plugin connects to xAI’s OpenAI-compatible Chat Completions API. Bring your own API key from the xAI console.
Supported capabilities:
- Text generation (chat) with the Grok model family
- Multimodal (image) input for vision-capable models, such as the Grok 4 family
- Function calling and JSON / structured output
External services
This plugin connects to the xAI API to provide text generation with xAI’s Grok models. It is required for the plugin’s core purpose: it registers xAI as a provider for the WordPress AI Client so that AI features can generate responses using Grok.
The plugin sends a request to xAI’s API (https://api.x.ai/v1) each time a consuming AI feature generates content through the xAI provider. Each request includes your xAI API key (for authentication) and the input you submit for generation — such as the prompt text, any chat messages, and any image input you provide for vision-capable models. No request is sent unless an AI feature actively triggers a generation, and no data is sent until you have configured an xAI API key. The plugin does not send any data on its own.
This service is provided by xAI. Please review their terms and privacy policy:
- Terms of Service: https://x.ai/legal/terms-of-service-enterprise
- Privacy Policy: https://x.ai/legal/privacy-policy
FAQ
-
Does this plugin work on its own?
-
No, this plugin requires the PHP AI Client (and a consuming AI feature plugin) to be installed and activated. It provides the xAI-specific implementation that the PHP AI Client uses.
-
Where do I get an API key?
-
Create an API key in the xAI console. The key is configured through the AI Client / Connectors interface, not in this plugin directly.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“AI Provider for xAI” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “AI Provider for xAI” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release. Adds xAI (Grok) text generation support to the WordPress AI Client.
