| 开发者 | mralaminahamed |
|---|---|
| 更新时间 | 2026年9月12日 06:02 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
image-01, with aspect ratio, orientation and multiple candidatesspeech-2.8, speech-2.6, speech-02 and speech-01 voices, with a choice of voice and of MP3, WAV, FLAC or Opus outputMINIMAX_API_KEY for server-level configuration, bypassing the database entirelyimage-01 for images and eight speech-* voices for text to speech.
See the full model catalogue for every model ID. Not sure which to pick? See the FAQ below.
Requirements
minimax provider and supports the generation options MiniMax actually honours (temperature, max tokens, top P, system instruction, and function declarations). Presence and frequency penalties and stop sequences are deliberately not declared, because MiniMax documents them as ignored.
The source code is on GitHub — bug reports and pull requests are welcome:
/wp-content/plugins/alamin-ai-provider-for-minimax/.wp plugin install alamin-ai-provider-for-minimax --activateMiniMax is an AI company building high-performance large language models. Their MiniMax M2 and M3 series offer frontier-level text generation capabilities with strong multilingual support and competitive pricing. Learn more at minimax.io.
Go to Settings > Connectors in your WordPress admin and enter your MiniMax API key there. All AI-enabled plugins on your site will automatically use it. Alternatively, set the MINIMAX_API_KEY environment variable on your server.
No. WordPress 7.0 and higher include the AI Client SDK natively — no additional plugin is required.
The plugin falls back to a hardcoded list of 8 MiniMax models so the AI Client continues to function and AI-enabled plugins stay operational.
Yes. WordPress lets you install multiple provider plugins. You can switch the active provider from Settings > Connectors at any time without reconfiguring any plugin.
Your API key is stored in the WordPress options table, which is protected by your database credentials. For higher security, set the MINIMAX_API_KEY environment variable on your server — this keeps the key entirely out of the database.
Billing is handled entirely by MiniMax. Your usage is billed according to MiniMax's pricing based on tokens consumed. WordPress and this plugin do not charge anything.
Temperature, max tokens, top P, thinking mode, service tier, system instruction, and function declarations. Presence and frequency penalties and stop sequences are not offered: MiniMax ignores them, so a control for them would do nothing.
Yes. MiniMax models perform well across multiple languages, particularly English and Chinese. They are a strong choice for WordPress sites targeting multilingual or Chinese-language audiences.
Yes, if you have a WooCommerce plugin that integrates with the WordPress AI Client. Once this provider is active and your API key is set, any AI-enabled WooCommerce plugin can generate product descriptions, SEO meta, and more.
Yes. Any Gutenberg plugin or block that uses the WordPress AI Client will automatically use this provider once configured.
This plugin implements the standard WordPress AI Client provider interface. Developers building plugins or themes on top of the WordPress AI Client do not need to do anything special — if this provider is active, it will be available automatically.
speech-* models are now offered as text-to-speech models, served from MiniMax's own /v1/t2a_v2 endpoint. Choose a voice, an output format (MP3, WAV, FLAC or Opus) and inline audio or an expiring URL. Speed, volume, pitch, emotion, sample rate, bitrate and language boost are reachable through custom options or the new minimax_convert_text_to_speech_params filter. Only the synchronous endpoint is implemented, so its 10,000-character limit is refused up front rather than reported by MiniMax as an invalid parameter.minimax_settings option and the minimax_models_cache transient, which it used to leave behind for good. Your API key is deliberately left alone: it belongs to the WordPress Connectors screen and, in the shared case, to every AI provider on the site.
Changed
vendor/ directory. There was never a runtime dependency to justify Composer here.
image-01 was already offered as a text model and the speech models would have added eight more.minimax_settings, so saving the form changed a database row and nothing else. A caller's own value still wins; the saved values fill in what was left unset.minimax_generate_text_params filter, for anything this plugin does not model.image_url content part — but was never declared, so image prompts were routed to other providers. The M2 series is text only and is declared as such.image-01 is now offered as an image model, served from MiniMax's own /v1/image_generation endpoint. Aspect ratio, orientation, number of candidates, and a choice between a URL and inline base64 are all supported. Reach seed, prompt_optimizer and subject_reference through the new minimax_generate_image_params filter.messages array and the AI Client already sends one), but the capability was never declared and the AI Client routes on the declaration, so conversation requests were going to other providers. Every official WordPress AI provider declares this.MiniMax\MiniMaxAiProvider\ (was AlAminAhamed\MiniMaxAiProvider\).MiniMax prefix, which the namespace already carries: MiniMaxProvider is Provider, MiniMaxSettings is Settings, MiniMaxModelMetadataDirectory is ModelMetadataDirectory, MiniMaxTextGenerationModel is TextGenerationModel, and MiniMaxProviderAvailability is ProviderAvailability.AI_Provider_For_MiniMax singleton in class-ai-provider-for-minimax.php, so every hook the plugin registers is visible in one file. Matches the layout used across this author's other plugins.MINIMAX_VERSION, MINIMAX_URL and MINIMAX_PATH constants; only MINIMAX_PLUGIN_FILE existed before.
Both renames are internal. No hook, option, setting or model id changes, and nothing a site has configured is affected — but any code referencing these classes directly needs updating.presencePenalty, frequencyPenalty and stopSequences are no longer declared as supported model options. The AI Client uses those declarations to decide which model can satisfy a request, so claiming them routed callers here and had their request quietly ignored. A caller that needs stop sequences is now correctly routed elsewhere.connectors_ai_minimax_api_key) now correctly used for live model list fetching — previously fell back to the hardcoded model list even when the Connectors key was set.get_settings() now returns all 6 default fields when the saved option is corrupt or missing; previously returned only temperature and max_tokens.templates/admin/ for cleaner separation of logic and presentation.
src/ to includes/ per WordPress plugin conventions.Requires at least to 7.0.MINIMAX_API_KEY environment variable.