WordPress plugin intelligence profile

AI Provider for Grok

AI Provider for Grok (xAI) for the WP AI Client SDK.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.0.4
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.9 · PHP 7.4
Directory statusactive
Last directory update17 Oct 202617d ago
Active installations100Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records AI Provider for Grok version 1.0.4 as active, updated 17d ago and tested up to WordPress 7.1.

Overview

About this plugin

This plugin provides Grok (by xAI) integration for the WP AI Client SDK. It enables WordPress sites to use Grok models for text generation and related AI capabilities.

Features:

  • Text generation with Grok models
  • Function calling support
  • Vision input support (for compatible models)
  • Automatic provider registration

Available models are dynamically discovered from the Grok API.

Requirements:

  • PHP 7.4 or higher
  • WP AI Client plugin must be installed and activated
  • Grok API key from xAI
  • Purchased API tokens from x.ai — a valid token balance is required for API requests to work

Usage

The provider automatically registers itself on the init hook. Once both plugins are active and your API key is configured, you can start generating text:

Basic Text Generation

' )->using_provider( 'grok' )->generate_text();

With System Instructions

2 )->using_max_tokens( 500 )->generate_text();

Vision (Image Input)

jpg', 'image/jpeg' )->generate_text();

Requires a Grok model with vision capabilities.

JSON Output

$json = AI_Client::prompt( 'Analyze this topic: WordPress plugins' )->using_provider( 'grok' )->as_json_response( $schema )->generate_text();

For full usage examples including chat history, function calling, and feature detection, see the README on GitHub.

External services

This plugin connects to the xAI Grok API to provide AI-powered text generation capabilities within WordPress. The xAI Grok API is a third-party service operated by xAI Corp.

What data is sent and when

  • API key: Your xAI API key is sent with every request for authentication.
  • Model listing: When the plugin checks provider availability or lists available models, it sends a request to the xAI API to retrieve the current list of Grok models.
  • Text generation prompts: When your site uses the plugin to generate text, the prompt text (and any attached images or files, system instructions, and conversation history) is sent to the xAI API for processing.

ai/v1

Data is only sent when the plugin is actively used to generate text or when checking model availability. No data is sent passively or in the background.

Service links

  • xAI website: https://x.ai
  • xAI API documentation: https://docs.x.ai/developers/models
  • xAI Terms of Service: https://x.ai/legal/terms-of-service
  • xAI Privacy Policy: https://x.ai/legal/privacy-policy

Contributing

We welcome contributions! You can help by:

  • Reporting bugs or suggesting features via GitHub Issues
  • Submitting pull requests on GitHub

Please read our Contributing Guide before submitting a pull request.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • artificial intelligence
  • ai
  • connector
  • grok
  • xai
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.9 · PHP 7.4
Update activity17 Oct 202617d ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version1.0.31.0.4
WordPress compatibility6.9.77.1.3
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.