# MiniMax Coding Plan

**Coding Plan** is a cost-effective coding subscription service launched by MiniMax (such as the Starter/Plus plans). By configuring this plan in Cherry Studio, you can use it at an extremely low fixed cost (starting from ¥29/month) `MiniMax-M2.1` model.

{% hint style="success" %}
**Core advantages**

* **Applicable users**: Users with a MiniMax Coding Plan subscription (Starter / Plus / Max).
* **Billing model**: Quota refreshes by time period (for example, 40 prompts every 5 hours), rather than token-based billing, so you don’t have to worry about consuming it too quickly.
  {% endhint %}

### 1. Preparation

Before you begin, make sure you have purchased the plan and obtained the key:

1. Log in [**MiniMax Open Platform**](https://platform.minimaxi.com/).
2. Go to [**Coding Plan** page](https://platform.minimaxi.com/subscribe/coding-plan?code=FYWiC6CtHy\&source=link), and make sure the plan has taken effect.

   <figure><img src="https://1658303467-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2F6K9pHCESFhsRcHLPZLTa%2Fimage.png?alt=media&#x26;token=d641fe70-c879-45e6-bb9f-e3acbb0b47af" alt=""><figcaption></figcaption></figure>
3. In **Coding Plan** copy your exclusive `an API Key`in `sk-` at the beginning).

<figure><img src="https://1658303467-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2FAmfluvn77ATFLUXQHqLJ%2Fimage.png?alt=media&#x26;token=75143e19-5676-4e1a-89a2-a8f2634b9910" alt=""><figcaption></figcaption></figure>

### 2. Configuration steps

#### Step 1: Locate the provider

In Cherry Studio, click the **Settings** > **Model Services**in the sidebar, and find **MiniMax**.

{% hint style="info" %}
If the list is long, you can type `mini` in the search box at the top to quickly locate it.
{% endhint %}

<figure><img src="https://1658303467-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2FcNSE2jhLYliX6BRwnBSx%2Fimage.png?alt=media&#x26;token=e289f1ec-0c81-404f-8bb6-15b03da5f126" alt=""><figcaption></figcaption></figure>

#### Step 2: Fill in the configuration

**API key by default.**&#x59;ou do not need to modify the complex API address; just use the default configuration and fill in according to the following instructions:

<table><thead><tr><th width="128.20703125">Parameter</th><th>Instructions</th></tr></thead><tbody><tr><td><strong>an API Key</strong></td><td>Paste your exclusive Coding Plan key<br><em>(Note: it must be the Key generated after purchasing the plan, with no extra spaces)</em></td></tr><tr><td><strong>API Address</strong></td><td>Keep default <code>https://api.minimaxi.com/v1</code></td></tr><tr><td><strong>Toggle switch</strong></td><td>Click the switch in the upper right corner to make sure it is <strong>green (ON)</strong></td></tr></tbody></table>

<figure><img src="https://1658303467-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2FLem4dFI2FIbxIfVFP065%2Fimage.png?alt=media&#x26;token=32648fbd-27a9-4ece-bf61-d359f3cdb31d" alt=""><figcaption></figcaption></figure>

#### Step 3: Add the specified model (key)

The Coding Plan only supports specific models. Choosing the wrong model will make it unusable or incur additional charges.

1. Click **Manage (Manage)** button in the upper-right corner.

<figure><img src="https://1658303467-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fu6ubRj4ptbEMzqU1rWTP%2Fimage.png?alt=media&#x26;token=bd84fe77-1245-47bb-989a-888cf4c98a5d" alt=""><figcaption></figcaption></figure>

2. at the bottom of the configuration page, find and add **`MiniMax M2.1`**.

{% hint style="warning" %}
**Be sure to choose the correct model!**

* ✅ **Recommended**:`MiniMax M2.1` (the designated main model for Coding Plan).
  {% endhint %}

<figure><img src="https://1658303467-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2FGAQgmlyV3iDLG1M69cbQ%2Fimage.png?alt=media&#x26;token=9fc5f4f6-ca17-4131-991d-eb6a2b4e747d" alt=""><figcaption></figcaption></figure>

#### Step 4: Save and verify <a href="#headingcab61b6e3e264a4b8e56bc83923488d2-di-si-bu-bao-cun-bing-yan-zheng-0" id="headingcab61b6e3e264a4b8e56bc83923488d2-di-si-bu-bao-cun-bing-yan-zheng-0"></a>

1. Click the **Check (Check)** button in the upper-right corner.

<figure><img src="https://1658303467-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fx6VeeXWy6yJFNak702Nu%2Fimage.png?alt=media&#x26;token=568783b3-9011-45a2-9e75-82bd27b8ebbb" alt=""><figcaption></figcaption></figure>

2. If it shows green **Success**, your Coding Plan subscription has been successfully connected!

<figure><img src="https://1658303467-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Ft6LdvunQr63IgJEg9v3I%2Fimage.png?alt=media&#x26;token=53a9ff7c-80b5-4aa2-96fd-999ecb9e1973" alt=""><figcaption></figcaption></figure>

### 3. Usage and limitations

The billing model of Coding Plan is completely different from that of a regular API. Be sure to understand the following mechanisms:

{% hint style="info" %}
**Quota refresh mechanism** The quota for Coding Plan is**periodically refreshed**. For example, the Starter plan:**Every 5 hours** provides **40** conversation credits.

* **If it stops responding**: it means your current 5-hour quota has been used up.
* **Solution**: Rest for a few hours and wait for the quota to recover automatically; no extra payment is needed.
  {% endhint %}

### 4. Common troubleshooting

{% hint style="danger" %}
**Encountering `429 Too Many Requests` error?**

This is not a software malfunction, but a trigger of **the Coding Plan rate limit**.

* This means the “number of messages sent” for the current period has been exhausted.
* Please wait patiently for the next 5-hour cycle to refresh.
  {% endhint %}

{% hint style="warning" %}
**Encountering `401 Unauthorized` error?**

* Check whether the API Key has extra spaces.
* Log in to the MiniMax official website to confirm whether your Coding Plan subscription has expired.
  {% endhint %}
