mralaminahamed / ai-provider-for-minimax
AI Provider for MiniMax — an independent MiniMax integration for the WordPress AI Client.
Package info
github.com/mralaminahamed/ai-provider-for-minimax
Type:wordpress-plugin
pkg:composer/mralaminahamed/ai-provider-for-minimax
Fund package maintenance!
Requires
- php: >=7.4
- ext-json: *
- wordpress/wp-ai-client: ^0.4
Requires (Dev)
- brain/monkey: ^2.7
- dealerdirect/phpcodesniffer-composer-installer: ^1.2
- php-stubs/wordpress-stubs: ^6.0
- phpcompatibility/phpcompatibility-wp: ^2.1.8
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.1.30
- phpunit/phpunit: ^9.6
- szepeviktor/phpstan-wordpress: ^2.0
- wp-coding-standards/wpcs: ^3.3.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-11 22:00:58 UTC
README
AI Provider for MiniMax
A MiniMax provider for the WordPress AI Client — register the models, hand over an API key, and anything that already speaks AI Client can call them.
Note
Not affiliated with MiniMax. You supply your own API key, and requests are billed to your own account.
Quick Start
Install from the WordPress admin — Plugins → Add New, search for "AI Provider for MiniMax", then Install Now and Activate. Add your API key on the plugin's settings screen.
To run it from source instead:
git clone https://github.com/mralaminahamed/ai-provider-for-minimax.git
cd alamin-ai-provider-for-minimax
composer install
composer stubs:install
Needs the WordPress AI Client — this plugin implements its provider contract and does nothing on its own. Minimum WordPress, PHP, and tested-up-to versions are shown in the badges above; readme.txt and the plugin header are the source of truth.
What It Does
The AI Client defines what a provider looks like; it does not ship every provider. This is the MiniMax implementation — it declares the models, reports whether the site is configured to reach them, and performs the requests.
There is no interface of its own to learn. Install it and MiniMax's models appear to whatever already speaks AI Client, which is the point: the calling code does not learn a new API, and does not learn this plugin's name.
Features
| Feature | Description |
|---|---|
| Model catalogue | MiniMax text and multimodal models, with per-model capabilities declared to the AI Client |
| Cheap availability | Whether the provider is usable is answered without a network call |
| Key storage | Stored server-side under connectors_ai_minimax_api_key; never sent to the browser |
| Provider metadata | What the AI Client displays and reasons about |
| Static analysis | PHPStan at level max |
Development
composer install # Dependencies + dev tooling composer stubs:install # WordPress and AI Client stubs, for static analysis composer test # PHPUnit (92 tests) composer test-f -- --filter SomeTest composer phpcs # WordPress coding standards lint composer phpcbf # Auto-fix coding standards composer phpstan # Static analysis (level max) composer analyze # phpcs + phpstan composer lint:review # Stricter directory-review ruleset composer makepot # Translations composer release # Build and package
Architecture
flowchart LR
A["AI Client consumer"] -->|"is this usable?"| B["Availability<br/>no network call"]
A -->|"run a request"| C["Provider"]
C --> D["Models<br/>catalogue + capabilities"]
C --> E["Settings<br/>API key"]
C --> F["MiniMax API"]
Loading
PHP lives under the PSR-4 namespace MiniMax\MiniMaxAiProvider\:
alamin-ai-provider-for-minimax.php
includes/
Provider/ AI Client provider implementation — the request entry point
Models/ Model identifiers and per-model capabilities
Metadata/ Provider metadata the AI Client displays
Availability/ Whether the provider is usable right now
Settings/ API key storage and the settings screen
templates/ Settings markup
tests/phpunit/ PHPUnit (92 tests)
The split worth knowing is Availability against Provider. Availability answers "can this be used" without making a network call, so a consumer can enumerate every installed provider cheaply and only reach the network when it actually intends to send a request.
Security
- The API key is stored server-side and never reaches the browser, a log, an error message, or a REST response
- Requests go to MiniMax only, with your key, billed to your account
- No analytics, telemetry, or phone-home
Report vulnerabilities privately — see the security policy.
Changelog
The complete version history lives in CHANGELOG.md. readme.txt carries only the most recent releases, and is rendered on the WordPress.org changelog page.
Contributing
Bug reports, feature requests, and pull requests are welcome. Read the contributing guide before opening a pull request, and file issues on the issue tracker.
Maintainer
Al Amin Ahamed — alaminahamed.com · @mralaminahamed