Description
This plugin by Zactonz Technologies adds Mistral AI as an AI provider for the WordPress AI Client. It is built for the WordPress Settings > Connectors screen and for the plugin directory connector search, so a site owner who needs Mistral AI can find it, install it, paste a key, and have every AI feature in WordPress start using it.
Mistral AI publishes European open-weight and commercial models, hosts a few third-party ones alongside them, and reports per-model capabilities in its own API. This connector reads those capability flags directly, so chat, vision, function calling and reasoning each appear in WordPress with exactly the features Mistral says they have. Its embedding models are recognised as well, and will be offered as soon as the WordPress AI Client ships its embedding model contract. Transcription, speech, OCR, moderation and safety classification models are listed by the same endpoint and are left out, because the AI Client has nowhere to put them.
Disclaimer: this connector is developed by Zactonz Technologies and is not affiliated with, endorsed by, or sponsored by Mistral AI. Mistral AI is a trademark of Mistral AI SAS.
Features:
- Text generation with every Mistral AI chat model your credentials can reach
- Automatic model discovery, taking each model’s capabilities from the provider’s own catalogue wherever it publishes them
- 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
- Single and batch embedding generation, offered once the WordPress AI Client ships its embedding model contract
- Reasoning effort control for the default text model
- Cancellable server-sent event streaming for content, reasoning, and tool-call chunks
- Configurable request timeouts for text and embeddings
- 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 permits outbound requests to
- Redacted diagnostics and a WordPress Site Health connectivity test
Requirements:
- PHP 7.4 or higher
- WordPress 7.0 or higher
- A Mistral AI account and API key
External services
This plugin sends requests to Mistral AI, a third-party service, and does nothing without it. Requests go to the Mistral AI API at https://api.mistral.ai/v1, or to the API base URL you set in the connector settings.
What is sent and when: the API key you configure, and the prompts, images, tool definitions and generation settings that a WordPress AI feature passes to the AI Client, each time such a feature runs a request through this connector. The connector also requests the model catalogue when its settings screen loads, when a WordPress AI feature asks which models are available, and when you run diagnostics or the Site Health test. No other data is sent.
Service provider: Mistral AI (terms of service, privacy policy).
Installation
- Upload the plugin files to
/wp-content/plugins/zactonz-ai-connector-for-mistral-ai/, or install the plugin through the WordPress plugins screen. - Activate the plugin through the Plugins menu in WordPress.
- Go to Settings > Connectors and add your Mistral AI API key.
- Go to Settings > Mistral AI to review the discovered models and choose a default model per capability.
FAQ
-
Where do I get an API key?
-
Create one on the Mistral AI dashboard: https://console.mistral.ai/api-keys
-
Can I keep the key out of the database?
-
Yes. Define
MISTRAL_API_KEYinwp-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. -
Which models will I see?
-
Models and their capabilities are listed from the Mistral AI platform. Each model is offered as vision, tool-calling, structured-output or embedding capable according to what Mistral AI publishes about it, and the connector falls back to the model identifier only where Mistral AI publishes nothing.
-
Does this replace the connectors in WordPress core?
-
No. WordPress core ships its own connectors. This plugin adds Mistral AI alongside them, and you can keep several connectors active at once and pick a default model per capability.
-
Is my key ever displayed or logged?
-
No. The key is stored in its own option, is never rendered back into the settings screen, and is excluded from the diagnostics report and from Site Health debug information.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Zactonz AI Connector for Mistral AI” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Zactonz AI Connector for Mistral AI” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release.
- Registers Mistral AI with the WordPress AI Client and the Settings > Connectors screen.
- Discovers models from the provider and advertises only the capabilities the provider reports.
- Adds per-capability default model selection, reasoning effort, a configurable timeout, and an API base URL override.
- Streams text responses token by token through the WordPress HTTP API, aggregating content, reasoning, tool calls, and usage.
- Adds a redacted diagnostics report and a WordPress Site Health connectivity test.
- Supports an API key supplied by a PHP constant or an environment variable.
