100% free community tier · Zero prepayment required · HTTP 429 upon quota exhaustion
https://api-inference.modelscope.cn/v1 💡 Directly paste the address above as Base URL into any OpenAI-compatible client (NextChat, Cherry Studio, Immersive Translate, etc.).
Qwen/Qwen2.5-72B-Instruct deepseek-ai/DeepSeek-R1-Distill-Qwen-32B deepseek-ai/DeepSeek-V3 Qwen/Qwen2.5-7B-Instruct ZhipuAI/GLM-4-9B-Chat ModelScope is China's largest open-source AI model community, initiated by Alibaba Cloud in partnership with leading AI institutions. It hosts thousands of top open weights including Qwen, DeepSeek, GLM, Baichuan, and MiniMax.
ModelScope provides developers with a generous Serverless API Inference free tier: 200 MoLi daily for logged-in users, plus 50 MoLi when linking a verified Alibaba Cloud account (250 MoLi/day total). This translates to 125~500 free inference calls daily with full OpenAI SDK compatibility and native browser CORS support!
Using ModelScope API Inference requires real-name identity verification via the linked Alibaba Cloud account (typically through personal Alipay with a Chinese ID). This is the primary barrier for non-mainland international developers.
MoLi is ModelScope's unified inference currency: lightweight models cost 0.5 MoLi/req (~500 calls/day), mainstream models cost 1 MoLi/req (~250 calls/day), and 72B flagships cost 2 MoLi/req (~125 calls/day). Daily MoLi grants expire in 24 hours at 00:00 UTC+8 and do not roll over.
ModelScope API Inference gateway returns access-control-allow-origin: * on OPTIONS preflights. Web single-page apps (SPAs) and browser extensions can invoke the API directly without proxy servers.
The free API Inference tier is strictly intended for developer testing, academic research, and prototype evaluation. It carries no SLA and employs dynamic concurrency throttling, returning HTTP 429 when under peak platform load.
Calls must supply the full ModelScope model ID including the namespace prefix (e.g. Qwen/Qwen2.5-72B-Instruct, deepseek-ai/DeepSeek-V3), rather than abbreviated names like qwen2.5-72b.
Register at modelscope.cn with email or mobile phone, and link your verified Alibaba Cloud account in settings to claim the full 250 MoLi/day quota.
Go to Console ↗Navigate to User Center -> Access Tokens (API Key) and copy your automatically generated token.
Go to Console ↗Set Base URL to https://api-inference.modelscope.cn/v1, insert your token, specify model Qwen/Qwen2.5-72B-Instruct, and start testing for free!
from openai import OpenAI
client = OpenAI(
api_key="your_api_key_here", # 填入申请的 Key
base_url="https://api-inference.modelscope.cn/v1"
)
response = client.chat.completions.create(
model="Qwen/Qwen2.5-72B-Instruct",
messages=[
[object Object]
]
)
print(response.choices[0].message.content)