mralaminahamed/ai-provider-for-minimax

AI Provider for MiniMax — an independent MiniMax integration for the WordPress AI Client.

Maintainers

Package info

github.com/mralaminahamed/ai-provider-for-minimax

Type:wordpress-plugin

pkg:composer/mralaminahamed/ai-provider-for-minimax

Fund package maintenance!

alaminahamed.com/donate

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-05-11 00:15 UTC

This package is auto-updated.

Last update: 2026-05-11 00:17:05 UTC


README

An independent, third-party MiniMax provider for the PHP AI Client SDK. Works as both a Composer package and a WordPress plugin. Not affiliated with, endorsed by, or sponsored by MiniMax.

Requirements

  • PHP 7.4 or higher
  • When using with WordPress, requires WordPress 7.0 or higher

Installation

As a Composer Package

composer require mralaminahamed/ai-provider-for-minimax

As a WordPress Plugin

  1. Download the plugin files
  2. Upload to /wp-content/plugins/alamin-ai-provider-for-minimax/
  3. Ensure the PHP AI Client plugin is installed and activated
  4. Activate the plugin through the WordPress admin

Usage

With WordPress

The provider automatically registers itself with the PHP AI Client on the init hook. Simply ensure both plugins are active and configure your API key:

// Set your MiniMax API key (or use the MINIMAX_API_KEY environment variable)
putenv('MINIMAX_API_KEY=your-api-key');

// Use the provider
$result = AiClient::prompt('Hello, world!')
    ->usingProvider('minimax')
    ->generateTextResult();

As a Standalone Package

use WordPress\AiClient\AiClient;
use AlAminAhamed\MiniMaxAiProvider\Provider\MiniMaxProvider;

// Register the provider
$registry = AiClient::defaultRegistry();
$registry->registerProvider(MiniMaxProvider::class);

// Set your API key
putenv('MINIMAX_API_KEY=your-api-key');

// Generate text
$result = AiClient::prompt('Explain quantum computing')
    ->usingProvider('minimax')
    ->generateTextResult();

echo $result->toText();

Supported Models

Available models are dynamically discovered from the MiniMax API. This includes MiniMax-M2 series models for text generation. The provider falls back to a default model list when the API is unavailable.

Configuration

The provider uses the MINIMAX_API_KEY environment variable for authentication. You can set this in your environment or via PHP:

putenv('MINIMAX_API_KEY=your-api-key');

License

GPL-2.0-or-later