Quick Access
This article describes how to quickly integrate with Token Plan. The entire process from subscription to invocation can be completed in just 3 steps.
Step 1: Subscribe to the Token Plan
Go to Token Plan and select a suitable subscription plan.
Step 2: Obtain the voucher
After successful subscription, please go to Token Plan to obtain the following credentials:
Note: For Team Edition, please first complete member invitation and seat allocation
-
API Key: On the Token Plan page, obtain your exclusive API Key (in the format of
tp-xxxxxorttp-xxxxx). -
Base URL: You will need to configure one of the following Base URLs in your AI programming tool later (The protocol varies by tool, and the Base URL shall be subject to what is displayed on the Token Plan page). For specific operations, please refer to the user guide document of the corresponding AI programming tool.
-
OpenAI Compatible Protocol
-
China Cluster:
https://token-plan-cn.xiaomimimo.com/v1 -
Singapore Cluster:
https://token-plan-sgp.xiaomimimo.com/v1 -
European Cluster:
https://token-plan-ams.xiaomimimo.com/v1
-
-
Anthropic Compatibility Protocol
-
China Cluster:
https://token-plan-cn.xiaomimimo.com/anthropic -
Singapore Cluster:
https://token-plan-sgp.xiaomimimo.com/anthropic -
European Cluster:
https://token-plan-ams.xiaomimimo.com/anthropic
-
-
The API Key for the Token Plan (tp-xxxxx or ttp-xxxxx) and the API Key for pay-as-you-go API calls (sk-xxxxx) are independent of each other and cannot be used interchangeably.
Step 3: Integrate with AI programming tools
Go to AI Tools Overview to view the configuration guide corresponding to the tools you are using (such as OpenCode, OpenClaw, etc.).
Rapid Verification (Optional)
Once the configuration is complete, you can quickly verify whether the integration is successful via the following methods.
Method 1: Verification via AI programming tools
Enter a simple programming requirement into the configured AI programming tool, for example:
Please write a quick sort algorithm for me in Python
If the tool returns a normal code, it indicates that the integration is successful.
Method 2: Direct verification via API call
Use the curl command to directly call the API and verify whether the credentials are valid.
In the following examples, BASE_URL and MIMO_API_KEY are both placeholders. Please replace them with the actual credentials obtained from the Console when in use.
OpenAI Compatible Protocol
curl --location --request POST 'BASE_URL/chat/completions' \
--header "api-key: $MIMO_API_KEY" \
--header "Content-Type: application/json" \
--data-raw '{
"model": "mimo-v2.6-pro",
"messages": [
{
"role": "system",
"content": "You are MiMo, an AI assistant developed by Xiaomi. Today is date: Tuesday, December 16, 2025. Your knowledge cutoff date is December 2024."
},
{
"role": "user",
"content": "please introduce yourself"
}
],
"max_completion_tokens": 1024
}'
Anthropic Compatibility Protocol
curl --location --request POST 'BASE_URL/v1/messages' \
--header "api-key: $MIMO_API_KEY" \
--header "Content-Type: application/json" \
--data-raw '{
"model": "mimo-v2.6-pro",
"max_tokens": 1024,
"system": "You are MiMo, an AI assistant developed by Xiaomi. Today is date: Tuesday, December 16, 2025. Your knowledge cutoff date is December 2024.",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "please introduce yourself"
}
]
}
]
}'
Frequently Asked Questions
Question: What is the difference between the API Key for Token Plan and the API Key for pay-as-you-go API calls?
Answer: The API Key format for Token Plan is tp-xxxxx or ttp-xxxxx, which is only applicable to the Token Plan subscription service; the API Key format for pay-as-you-go API calls is sk-xxxxx, which is used for pay-as-you-go billing. The two are independent of each other and cannot be used interchangeably.
Question: What is the difference between the Base URL of Token Plan and the Base URL of pay-as-you-go API calls?
Answer: The Base URL format of the Token Plan varies, subject to Token Plan page display.
Question: Can the API Key still be used after the subscription expires?
Answer: No. The API Key of the Token Plan is only valid during the subscription period, and you need to renew the subscription to continue using it after it expires.