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:
Available models are dynamically discovered from the Z.AI API.
Requirements:
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:
$text = AI_Client::prompt( 'Explain quantum computing.' )->using_provider( 'zai' )->generate_text();
$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 = 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.
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.