Purchase and use MaxCompute model computing service
To use models in MaxCompute for data processing or offline inference without managing your own GPU resources, purchase the MaxCompute model computing service to meet your model inference and performance requirements.
Supported regions and models
Supported regions: The model computing service is available only in the following regions.
Chinese mainland: China (Beijing), China (Shanghai), China (Hangzhou), China (Shenzhen), China (Ulanqab)
International: Singapore
Supported models
Model
Type
Description
qwen4-maxSupports multimodal data input
A new-generation flagship multimodal model from Qwen with native vision capabilities and a multi-million token context window. It delivers significant performance improvements in programming and complex tasks and is ideal for scenarios such as code development and office automation.
qwen3.8-maxSupports multimodal data input
A flagship model from the Qwen 3.8 series and a 2.4 trillion-parameter Mixture of Experts (MoE) model. It features significantly enhanced programming and office capabilities and can autonomously program for over ten days to deliver complete projects. It is suitable for highly complex scenarios such as autonomous programming, advanced office automation, scientific research, and long-duration tasks.
qwen3.8-flashSupports multimodal data input
A lightweight, high-speed model from the Qwen 3.8 series with an MoE architecture (125B/6B) and a native multi-million token context window. It excels at agent-based programming and multimodal understanding of content including images, text, and videos. The model is compatible with mainstream interfaces, cost-effective, and ideal for high-concurrency, low-latency scenarios.
qwen3.7-maxText input only
A flagship model from the Qwen 3.7 series, with comprehensive upgrades in inference, code generation, and multilingual understanding. It is suitable for highly complex tasks.
qwen3.7-plusSupports multimodal data input
A balanced model from the Qwen 3.7 series that offers a good trade-off between performance and cost. It is suitable for various enterprise scenarios such as long-text analysis and multi-turn conversations.
qwen3.7-flashSupports multimodal data input
A native vision-language, lightweight, and high-speed model from the Qwen 3.7 series. It offers enhanced multimodal understanding and agent execution capabilities, and is suitable for high-concurrency, low-latency online services and lightweight multimodal tasks.
qwen3.7-text-embeddingText input only
A unified multilingual text embedding model trained based on Qwen 3.7. Compared with text-embedding-v4, this model provides significant performance improvements in text retrieval, clustering, and classification.
qwen3-vl-embeddingSupports multimodal data input
A Qwen multimodal embedding model that supports vector representations for mixed image and text inputs. It is suitable for scenarios such as cross-modal retrieval and image-text matching.
text-embedding-v4Text input only
A high-precision text embedding model suitable for scenarios such as semantic search, clustering, and similarity calculation.
qwen3.6-plusSupports multimodal data input
A balanced model from the Qwen 3.6 series that offers a good trade-off between performance and cost. It is suitable for general business scenarios such as dialogue, summarization, and analysis.
qwen3.6-flashSupports multimodal data input
A lightweight and high-speed model from the Qwen 3.6 series. It features fast response speeds and low costs, making it suitable for high-concurrency, low-latency online service scenarios.
deepseek-v4-proText input only
The fourth-generation flagship inference model from DeepSeek. It excels at highly difficult tasks such as mathematics, coding, and complex logical reasoning.
deepseek-v4-flashText input only
The fourth-generation lightweight model from DeepSeek. It offers fast inference speeds and is highly cost-effective, making it suitable for scenarios such as daily conversations and lightweight inference tasks.
qwen3.5-397b-a17bSupports multimodal data input
An MoE architecture model from the Qwen 3.5 series with efficient parameter activation, a vast knowledge base, and multi-step reasoning capabilities. It is designed for complex logical deduction, full-stack code generation, and in-depth knowledge Q&A.
qwen3.5-omni-plusSupports multimodal data input
Qwen3.5-Omni is the latest-generation omni-modal large model from Qwen. It is suitable for scenarios such as text creation, voice assistants, and multimedia analysis, and provides a natural and smooth multimodal understanding and interaction experience.
qwen3-asr-flashSupports multimodal data input
A lightweight speech recognition model from the Qwen 3 series. It provides real-time transcription with low latency and high concurrency, making it suitable for real-time audio processing scenarios such as generating meeting minutes, live stream subtitles, and recognizing voice commands.
tongyi-embedding-vision-plusSupports multimodal data input
Tongyi-Embedding-Vision is a visual multimodal representation model built on a large language model (LLM). It is suitable for a variety of downstream tasks, including image-to-image search, text-to-image search, text-to-video search, video-to-video search, text-to-text search, and text-to-mixed-media search.
qwen3-max(Decommissioned)Text input only
A high-performance large language model from the Qwen series, suitable for complex inference and content generation scenarios.
ImportantThe qwen3-max model has been decommissioned. To ensure service continuity, migrate your related services to a new model as soon as possible. For more information, see Model Decommissioning Policy.
Billing
For details, see Model Compute Fee (Token Fee).
Before you begin
You only need to activate the service once per region. After activation, the service is available by default to all projects in that region.
Log in to the MaxCompute console and select a region in the upper-left corner.
In the left-side navigation pane, choose .
On the Quotas page, click New Quota.
On the purchase page, for Product Type, select Model Computing Service.
On the MaxCompute model computing service page, select a region, agree to the service agreement, and then activate the service.
After the purchase is complete, return to the console. A Pay-as-you-go quota named
ai_InferenceQuotaappears on the Quota Management page.
Grant permissions
By default, no accounts (including Alibaba Cloud accounts) or roles have the permission to specify a quota at the job level. You must explicitly grant the required permissions before you can use this feature.
Create a role
Log in to the MaxCompute console and select a region in the upper-left corner.
In the left-side navigation pane, choose .
On the Tenants page, click the Roles tab.
On the Roles tab, click Add Role. In the Add Role dialog box, enter a custom Role Name, provide the Policy Content, and then click OK.
{ "Statement": [{ "Action": [ "odps:List", "odps:Usage"], "Effect": "Allow", "Resource": ["acs:odps:*:regions/*/quotas/*"]}], "Version": "1" }
Grant the role to accounts
Your Alibaba Cloud account or a RAM user with the Super_Administrator permission can grant these permissions. The authorization process varies depending on the account type.
Authorizing Alibaba Cloud accounts
Run the following commands to authorize an Alibaba Cloud account:
-- Add the Alibaba Cloud account to the tenant and grant a tenant role to the account.
ADD TENANT USER <Aliyun$xxxx>;
GRANT TENANT ROLE <role_name> TO USER <Aliyun$xxxx>;
-- View the permissions of a tenant role or user.
SHOW GRANTS FOR TENANT ROLE <role_name>;
SHOW GRANTS FOR TENANT USER <user_name>;
SHOW PRINCIPALS FOR TENANT [ROLE] <role_name>;Authorizing RAM users
Follow these steps to authorize a RAM user:
Log in to the MaxCompute console and select a region in the upper-left corner.
In the left-side navigation pane, choose .
On the Tenants page, click the Users tab.
On the Users tab, find the target RAM user and click Modify Role in the Actions column.
In the Edit Role dialog box, move the desired roles from the Available Roles section to the Added Roles section, and then click OK.
Usage
Use in MaxFrame jobs
To use the MaxCompute model computing service, specify a supported model in a MaxFrame AI Function.
Example: Use the qwen3.6-plus multimodal model for image understanding
For more syntax details and examples, see MaxFrame AI function.
Use in SQL jobs
To use the MaxCompute model computing service in a SQL job, specify a supported model in an AI Function. The following code provides an example:
SET odps.namespace.schema=true;
SELECT
prompt,
AI_GENERATE(
bigdata_public_modelset.default.`qwen3.7-max`,
DEFAULT_VERSION,
concat('Perform sentiment classification for the following review. The output must be exactly one of the following three options: Positive, Negative, Neutral. Review:', prompt)
) AS generated_text
FROM (
VALUES
('The weather is great today, and I''m in a good mood! It''s sunny and perfect for a walk.'),
('The weather is great today, and I''m in a good mood! It''s sunny.'),
('Technology is advancing rapidly, and AI is changing our lives.'),
('The prevention and control measures are excellent. Kudos to the healthcare workers!'),
('The quality of this product is very poor.')
) t (prompt);For more syntax details and examples, see AI_GENERATE.