{"id":328828,"date":"2026-06-21T17:27:51","date_gmt":"2026-06-21T17:27:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/ai-provider-for-xai\/"},"modified":"2026-06-21T17:26:30","modified_gmt":"2026-06-21T17:26:30","slug":"ai-provider-for-xai","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/ai-provider-for-xai\/","author":20437248,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.0","requires":"6.9","requires_php":"7.4","requires_plugins":null,"header_name":"AI Provider for xAI","header_author":"Khokan Sardar","header_description":"AI Provider for xAI (Grok) for the WordPress AI Client.","assets_banners_color":"6e7576","last_updated":"2026-06-21 17:26:30","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/itzmekhokan\/ai-provider-for-xai","header_author_uri":"https:\/\/profiles.wordpress.org\/khokansardar\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":29,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"khokansardar","date":"2026-06-21 17:26:30"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3580878,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3580878,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3580878,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3580878,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3580878,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250},"banner.svg":{"filename":"banner.svg","revision":3580878,"resolution":false,"location":"assets","locale":false}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[2353,247056,226124,257829],"plugin_category":[],"plugin_contributors":[214111],"plugin_business_model":[],"class_list":["post-328828","plugin","type-plugin","status-publish","hentry","plugin_tags-ai","plugin_tags-grok","plugin_tags-llm","plugin_tags-xai","plugin_contributors-khokansardar","plugin_committers-khokansardar"],"banners":{"banner":"https:\/\/ps.w.org\/ai-provider-for-xai\/assets\/banner-772x250.png?rev=3580878","banner_2x":"https:\/\/ps.w.org\/ai-provider-for-xai\/assets\/banner-1544x500.png?rev=3580878","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/ai-provider-for-xai\/assets\/icon.svg?rev=3580878","icon":"https:\/\/ps.w.org\/ai-provider-for-xai\/assets\/icon.svg?rev=3580878","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>The plugin connects to xAI's OpenAI-compatible Chat Completions API. Bring your own API key from the <a href=\"https:\/\/console.x.ai\/\">xAI console<\/a>.<\/p>\n\n<p>Supported capabilities:<\/p>\n\n<ul>\n<li>Text generation (chat) with the Grok model family<\/li>\n<li>Multimodal (image) input for vision-capable models, such as the Grok 4 family<\/li>\n<li>Function calling and JSON \/ structured output<\/li>\n<\/ul>\n\n<h3>External services<\/h3>\n\n<p>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.<\/p>\n\n<p>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 \u2014 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.<\/p>\n\n<p>This service is provided by xAI. Please review their terms and privacy policy:<\/p>\n\n<ul>\n<li>Terms of Service: https:\/\/x.ai\/legal\/terms-of-service-enterprise<\/li>\n<li>Privacy Policy: https:\/\/x.ai\/legal\/privacy-policy<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20work%20on%20its%20own%3F\"><h3>Does this plugin work on its own?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"where%20do%20i%20get%20an%20api%20key%3F\"><h3>Where do I get an API key?<\/h3><\/dt>\n<dd><p>Create an API key in the <a href=\"https:\/\/console.x.ai\/\">xAI console<\/a>. The key is configured through the AI Client \/ Connectors interface, not in this plugin directly.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release. Adds xAI (Grok) text generation support to the WordPress AI Client.<\/li>\n<\/ul>","raw_excerpt":"AI Provider for xAI (Grok) for the WordPress AI Client.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/328828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=328828"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/khokansardar"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=328828"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=328828"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=328828"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=328828"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=328828"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=328828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}