U PLAN
Quick Access
A fast way to understand how to subscribe to and integrate U Plan.
Getting Started
1
Claim or subscribe to a plan
Visit the U Plan subscription page, choose a tier, then claim or subscribe. Free requires clicking Claim Now and is not granted automatically.
2
Get plan-exclusive API Key
After a successful claim or subscription, go to Console > Subscription Management > U Plan to get the plan-exclusive API Key and Base URL. The Key is auto-assigned when the plan becomes active, unique per account, cannot be created or deleted by you, and always shows the full value.
API Key: get the plan-exclusive API Key on the Subscription Mgmt page.
Please note:
- This Key is plan-exclusive and is not interchangeable with pay-as-you-go API Keys. The platform supports pay-as-you-go and U Plan billing.
- This Key is valid only while the plan is active. See the point deduction and window rules in the U Plan Subscription Overview.
- Please keep your API Key secure to avoid resource loss.
3
Test API Call (Optional)
Quickly test through OpenAI API compatibility.
1. Install OpenAI SDK
Python
pip install openai2. Configure environment variables
export OPENAI_BASE_URL=https://maas-api.unisound.com/v1
export OPENAI_API_KEY=${YOUR_API_KEY}3. Call API
Python
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="u2-flash",
messages=[
{"role": "user", "content": "你好"},
],
)
print(response.choices[0].message.content)4
Use in AI Coding Tools
Refer to the following options to choose the AI coding tool you use most often.