The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join

AI Provider for Z.AI

AI Provider for Z.AI banner
Active installs
40+
Last updated
4 months ago
Version
1.0.0
Tested up to
WP 7.1.5

About this plugin

This plugin provides Z.AI integration for the WP AI Client SDK. It enables WordPress sites to use Z.AI GLM models for text generation and related AI capabilities.

Features:

  • Text generation with Z.AI GLM models (glm-4.5, glm-4.6, glm-4.7, glm-5, and more)
  • Chat history support
  • Function calling support
  • JSON output support
  • Automatic provider registration

Available models are dynamically discovered from the Z.AI API.

Requirements:

  • PHP 7.4 or higher
  • WP AI Client plugin must be installed and activated
  • Z.AI API key from z.ai

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

$text = AI_Client::prompt( 'Explain quantum computing.' )->using_provider( 'zai' )->generate_text();

With System Instructions

$text = AI_Client::prompt( 'Summarize the history of WordPress.' )->using_provider( 'zai' )->using_system_instruction( 'Be concise and accurate.' )->using_temperature( 0.2 )->using_max_tokens( 500 )->generate_text();

JSON Output

$json = AI_Client::prompt( 'Analyze this topic: WordPress plugins' )->using_provider( 'zai' )->as_json_response( $schema )->generate_text();<h3>External services</h3>

This plugin connects to the Z.AI API to provide AI-powered text generation capabilities within WordPress. Z.AI is a third-party service.

What data is sent and when

  • API key: Your Z.AI API key is sent with every request for authentication.
  • API type auto-detection: When you save or change your API key, the plugin sends one minimal test request (a one-word prompt) to each Z.AI endpoint to determine which API type your key belongs to. This happens only at the moment the key is saved.
  • Model listing: When the plugin checks provider availability or lists available models, it sends a request to the Z.AI API to retrieve the current list of GLM models.
  • Text generation prompts: When your site uses the plugin to generate text, the prompt text (and any system instructions and conversation history) is sent to the Z.AI API for processing.

Communication is sent to the Z.AI API at one or both of the following base URLs (the API-type auto-detection contacts both; all other requests use the detected one):

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

Analytics

Live from WordPress.org, refreshed daily. Last refresh Dec 1, 2026.

  • Passes every health check below.
3/3

Health checks

Everything a careful site owner looks at before installing.

  • Actively maintained Last release 4 months ago
  • Tested with current WordPress Tested up to 7.1.5
  • Support questions answered Nothing open in the last two months
  • Well rated No ratings yet
Active installs
40+ WordPress.org rounds this down
This week
74 downloads +37% vs the week before
Last 30 days
237 downloads 8 a day, typically
All time
933 downloads On WordPress.org since 2026
Downloads per week Every update counts as a download on WordPress.org, so release weeks spike.
Latest week
74
Typical week
25
Peak
74 Week of Nov 24
View as table
WeekDownloads
Week of Nov 2474
Week of Nov 1754
Week of Nov 1051
Week of Nov 339
Week of Oct 2756
Week of Oct 2070
Week of Oct 1359
Week of Oct 666
Week of Sep 2971
Week of Sep 2227
Week of Sep 1528
Week of Sep 819
Week of Sep 128
Week of Aug 2519
Week of Aug 1824
Week of Aug 1138
Week of Aug 420
Week of Jul 2820
Week of Jul 2115
Week of Jul 1430
Week of Jul 725
Week of Jun 3027
Week of Jun 2320
Week of Jun 1656
Week of Jun 90
Week of Jun 20
Week of May 261
Week of May 193
Week of May 120
Week of May 51
Week of Apr 284
Week of Apr 212
Week of Apr 140
Where it stands Rank among the plugins WPFolks tracks every day.

Not ranked yet. Install, download and rating ranks cover the 5,000 most popular plugins on WordPress.org, and Trending needs about 100 downloads on a typical day.

Active installs over time Recorded by WPFolks every day since Oct 14, 2026.

Reviews

From folks on WPFolks

No reviews from folks yet. Used it? Be the first to say how it went.

Log in to leave a review

Proudly supported by