Zactonz AI Connector for Groq

v1.0.2

Groq connector for the WordPress AI Client. Very low latency inference on GroqCloud, with every model on your account discovered automatically.

WordPress 7.0+PHP 7.4+A Groq account and API key Updated 29 Oct 2026

Installation & setup

Install the plugin#

From the dashboard, go to Plugins › Add New, search for Zactonz AI Connector for Groq and click Install Now, then Activate. WordPress also links here directly from Settings › Connectors when it needs a connector that is not installed yet.

With WP-CLI:

wp plugin install zactonz-ai-connector-for-groq --activate

To install manually, download the zip from the Download button above, upload the folder to /wp-content/plugins/zactonz-ai-connector-for-groq/ and activate it from the Plugins menu.

Connect to Groq#

  1. Create an API key in the GroqCloud console.
  2. Go to Settings › Connectors and paste the key into the Groq connector.
  3. Go to Settings › Groq to review the discovered models and choose a default model per capability, a reasoning effort for the default text model, and the request timeout.

The key is stored in the option WordPress registers for the connector, so the Connectors screen and the connector's own settings screen always show the same credential.

The Groq connector on the WordPress Connectors screen

Settings › Connectors: the Groq connector with its key saved, as WordPress shows it beside its own connectors.

Keep the key out of the database#

Define GROQ_API_KEY in wp-config.php, or set an environment variable of the same name. When either is present the connector uses it, the settings field is disabled, and nothing is written to the database.

define( 'GROQ_API_KEY', 'gsk_…' );

Use a proxy or gateway#

Settings › Groq has an API base URL field. Leave it empty to use https://api.groq.com/openai/v1, or point it at a gateway that speaks the same API.

AI features reach the gateway through the WordPress AI Client, which sends every request with wp_safe_remote_request(). WordPress refuses such requests to loopback and private network addresses and to any port other than 80, 443 and 8080, so a gateway on a LAN address or a non-standard port will not work unless the site allows that host with the http_request_host_is_external filter. The connector's own connection check and Site Health test do not apply that restriction, so with such a gateway they can report a healthy connection while AI features still cannot reach it. Use a public hostname on a standard port, or add the filter.

Check the connection#

Tools › Site Health includes a connectivity test for Groq, which runs in the background so it never holds the screen open. Settings › Groq has a diagnostics button that reports the endpoint, HTTP status, latency, the number of discovered models, any configured defaults missing from the current catalogue, and the AI Client version. The key never appears in the report.