Title: AI Provider for xAI
Author: Khokan Sardar
Published: <strong>June 21, 2026</strong>
Last modified: June 21, 2026

---

Search plugins

![](https://ps.w.org/ai-provider-for-xai/assets/banner-772x250.png?rev=3580878)

![](https://ps.w.org/ai-provider-for-xai/assets/icon.svg?rev=3580878)

# AI Provider for xAI

 By [Khokan Sardar](https://profiles.wordpress.org/khokansardar/)

[Download](https://downloads.wordpress.org/plugin/ai-provider-for-xai.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/ai-provider-for-xai/#description)
 * [Reviews](https://wordpress.org/plugins/ai-provider-for-xai/#reviews)
 * [Development](https://wordpress.org/plugins/ai-provider-for-xai/#developers)

 [Support](https://wordpress.org/support/plugin/ai-provider-for-xai/)

## 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](https://console.x.ai/).

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](https://console.x.ai/). 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.

Contributors

 *   [ Khokan Sardar ](https://profiles.wordpress.org/khokansardar/)

[Translate “AI Provider for xAI” into your language.](https://translate.wordpress.org/projects/wp-plugins/ai-provider-for-xai)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ai-provider-for-xai/),
check out the [SVN repository](https://plugins.svn.wordpress.org/ai-provider-for-xai/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/ai-provider-for-xai/)
by [RSS](https://plugins.trac.wordpress.org/log/ai-provider-for-xai/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release. Adds xAI (Grok) text generation support to the WordPress AI 
   Client.

## Meta

 *  Version **1.0.0**
 *  Last updated **7 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.9 or higher **
 *  Tested up to **7.0**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [AI](https://wordpress.org/plugins/tags/ai/)[grok](https://wordpress.org/plugins/tags/grok/)
   [LLM](https://wordpress.org/plugins/tags/llm/)[xai](https://wordpress.org/plugins/tags/xai/)
 *  [Advanced View](https://wordpress.org/plugins/ai-provider-for-xai/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/ai-provider-for-xai/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ai-provider-for-xai/reviews/)

## Contributors

 *   [ Khokan Sardar ](https://profiles.wordpress.org/khokansardar/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/ai-provider-for-xai/)