Zactonz AI Connector for OpenRouter

v1.0.1

OpenRouter connector for the WordPress AI Client. Hundreds of models from dozens of labs behind one API key, with each model's capabilities taken from the OpenRouter catalogue.

WordPress 7.0+PHP 7.4+An OpenRouter account and API key Updated 5 Oct 2026

Zactonz AI Connector for OpenRouter registers OpenRouter as a connector for the WordPress AI Client. It is built for the Settings › Connectors screen and for the plugin-directory connector search, so when WordPress asks for a connector you can add OpenRouter in a couple of clicks. Once active, any model your OpenRouter key can reach is available to every AI feature in WordPress.

OpenRouter is a routing gateway that exposes hundreds of models from dozens of labs behind one OpenAI-compatible API and one bill. The connector reads the OpenRouter catalogue directly and takes each model's capabilities from what OpenRouter publishes about it, so vision, tool calling and structured output are offered where the catalogue says the model supports them. Where OpenRouter publishes nothing for a model, the connector falls back to the model identifier.

Features#

  • Text generation with every OpenRouter chat model your credentials can reach.
  • Automatic model discovery, taking each model's capabilities from the OpenRouter catalogue wherever it publishes them.
  • A separate default model per capability, or automatic selection by the WordPress AI Client.
  • Vision input on models that accept images.
  • Tool calling on models that report function support.
  • Structured output with a JSON schema on models that support it.
  • Reasoning effort control for the default text model.
  • Cancellable server-sent event streaming for content, reasoning and tool-call chunks.
  • A configurable request timeout for text generation.
  • API key supplied by a PHP constant or an environment variable instead of the database.
  • An API base URL override for a proxy or gateway, within the hosts and ports WordPress allows outbound requests to.
  • Redacted diagnostics and a WordPress Site Health connectivity test.

Part of a family#

This connector is one of the Zactonz AI Connector plugins, which add the providers WordPress core leaves out. They follow one set of conventions, so every connector behaves the same way in the admin. Zactonz AI Connector for Ollama covers local, self-hosted and Ollama Cloud models; Zactonz AI Connector for Groq covers very low latency inference on GroqCloud; Zactonz AI Connector for DeepSeek covers a very long context window and thinking mode; Zactonz AI Connector for Mistral AI covers Mistral AI's open-weight and commercial models with capabilities read from its catalogue. All of them are listed under WordPress.

Not affiliated#

This connector is developed by Zactonz Technologies and is not affiliated with, endorsed by or sponsored by OpenRouter. OpenRouter is a trademark of OpenRouter, Inc.