> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/docs/en-us/pre-basic/providers/minimax-coding-plan.md).

# 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 a very low fixed cost (starting at ¥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**: The quota is refreshed by time period (e.g., 40 prompts every 5 hours), rather than token-based billing, so you don't need to worry about burning through 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 is active.

   <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&amp;token=d641fe70-c879-45e6-bb9f-e3acbb0b47af" alt=""><figcaption></figcaption></figure>
3. Switch between **Coding Plan** Copy your dedicated `API Key`(starts with `sk-` ).

<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&amp;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**, and find **MiniMax**.

{% hint style="info" %}
If the list is long, you can enter `mini` to quickly locate it.
{% endhint %}

#### Step 2: Fill in the configuration

**does not require** You don't need to modify the complex API address; use the default configuration and fill it in according to the instructions below:

<table><thead><tr><th width="128.20703125">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>API Key</strong></td><td>Paste your Coding Plan dedicated key<br><em>(Note: It must be the Key generated after purchasing the plan; do not include 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>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%2Fgit-blob-3988520009aa1652c86c9300fd777361ebe5770a%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

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

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

1. Click at the bottom of the configuration page **Manage** button.

<figure><img src="https://1658303467-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-55fc025970af285efc595e4ead12329b6b645d17%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

2. Find and add **`MiniMax M2.1`**.

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

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

#### 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** button.
2. If it shows green **Success**, it means your Coding Plan plan has been successfully connected!

### 3. Usage and restrictions

The billing model of Coding Plan is completely different from that of the regular API, so be sure to understand the following mechanism:

{% 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 quotas.

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

### 4. Common troubleshooting

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

This is not a software failure, but a **Coding Plan rate limit**.

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

{% hint style="warning" %}
**Encounter `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 %}

***

### Get help and submit feedback

If you encounter any questions, bugs, or have suggestions for feature improvements during configuration or use, please refer to [Feedback and Suggestions](/docs/en-us/question-contact/suggestions.md) for the official channels provided.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cherryai.com.cn/docs/en-us/pre-basic/providers/minimax-coding-plan.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
