Description
This plugin provides a third-party Mistral integration for the PHP AI Client SDK. It enables WordPress sites to use Mistral models for text generation and related AI capabilities.
It is not affiliated with, endorsed by, or sponsored by Mistral AI.
Features:
- Text generation with Mistral models
- Image generation with Mistral mistral-medium-2505 model
- Function calling support (for compatible models)
- Vision input support (for compatible models)
- Automatic provider registration
Available models are dynamically discovered from the Mistral API.
Requirements:
- PHP 7.4 or higher
- PHP AI Client plugin must be installed and activated
- Mistral API key
External services
This plugin connects to the Mistral AI API (https://api.mistral.ai/v1) to provide AI text generation and image generation capabilities.
Data is sent to the Mistral API when your application code makes AI generation requests through the PHP AI Client. The data sent includes your prompts, model configuration, and API key. No data is sent automatically — requests only occur when explicitly triggered by code using the PHP AI Client SDK.
This service is provided by Mistral AI (https://mistral.ai/):
– Terms of Service: https://mistral.ai/terms/
– Privacy Policy: https://mistral.ai/terms/#privacy-policy
Installation
- Ensure the PHP AI Client plugin is installed and activated
- Upload the plugin files to
/wp-content/plugins/ai-provider-for-mistral/ - Activate the plugin through the ‘Plugins’ menu in WordPress
- Configure your Mistral API key via the
MISTRAL_API_KEYenvironment variable or constant
FAQ
-
How do I get a Mistral API key?
-
Visit the Mistral Console to create an account and generate an API key.
-
Does this plugin work without the PHP AI Client?
-
No, this plugin requires the PHP AI Client plugin to be installed and activated. It provides the Mistral-specific implementation that the PHP AI Client uses.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“AI Provider for Mistral” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “AI Provider for Mistral” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.1.1
- Fix an issue with the image generation model
1.1.0
- Refactor to follow wp.org plugin guidelines
1.0.2
- Add provider description and logo for connector screen
1.0.1
- Clean up plugin distribution
1.0.0
- Adjust the tool calling to work with Mistral API.
- Redesign banners and icons
0.3.3
- Fix image generation model loading when using as a plugin.
0.3.2
- Add support for image generation
- Fix issue in output schema
0.3.1
- Add support for output schema
0.3.0
- Rename plugin to “AI Provider for Mistral” (new slug: ai-provider-for-mistral, new namespace: AiProviderForMistral)
- Throw TokenLimitReachedException when Mistral returns finish_reason “length”
0.2.0
- Rewrite the plugin to use better naming that reflects that this is independent product and it is not official Mistral product.
- Add unit and integration tests
0.1.1 – 0.1.3
Improve package / plugin distribution
0.1.0
- Initial release
- Support for Mistral text generation models
- Function calling support for compatible models
- Vision input support for compatible models
