While large language models have powerful natural language processing capabilities, they may need additional features for specific tasks, such as performing web searches or processing images. Model Studio provides a range of official plugins. You can select plugins to enhance the model's capabilities and expand its use cases.
First-time access to the plugins page
If your Alibaba Cloud account or RAM user (sub-account) does not have the AliyunServiceRoleForSFMAccessCloudAPI role, you cannot access plugins. Follow these instructions to grant the required permissions.
- Alibaba Cloud account
- RAM user (sub-account)
AliyunServiceRoleForSFMAccessCloudAPI, which is associated with the AliyunServiceRolePolicyForSFMAccessCloudAPI policy. This role authorizes Model Studio to access your Alibaba Cloud Marketplace products and make API calls based on the plugin configuration.Official plugins
The Component Market provides pre-built official plugins from Model Studio. You can call them directly without configuring their input and output parameters.
Plugin name | Tool ID | Description | Billing |
|---|---|---|---|
code_interpreter | Enables the model to run Python code for tasks like mathematical calculations, data analysis, visualization, and data processing. | Free | |
calculator | Lets the model perform complex mathematical calculations, such as "12313 * 13232". | Free | |
text_to_image | Lets the model generate images from text, such as "Draw a smiling dog." | Free for a limited time. Activation is required. |
Python Code Interpreter
Python Code Interpreter
| Sample input | Output without plugin | Output with plugin |
|---|---|---|
| The agent application cannot execute Python code; it can only provide a text description of the code. | The agent application can execute Python code for data visualization and analysis. | |
![]() | ![]() |
The Python Code Interpreter plugin does not support accessing external networks or uploading local files. The available dependencies are: json5~=0.9.6, jupyter_client~=8.1.0, ipykernel~=6.25.0, seaborn, sympy, pydantic~=1.10.8, pillow~=9.4.0, fastapi~=0.101.1, dynaconf~=3.2.1, oss2~=2.18.1, matplotlib, starlette~=0.27.0, uvicorn~=0.23.2, requests~=2.31.0, scipy, html2text, pandas, pdf2image, pdfminer-six, pypdf, python-pptx, and wordcloud.
Calculator
Calculator
Sample input | Output without plugin | Output with plugin |
|---|---|---|
12313*13232 | The agent application cannot reliably solve complex math problems and may return incorrect results. The correct answer is 162,925,616. | The agent application has strong calculation capabilities and can generate accurate results. |
Image Generation
Image Generation
Sample input | Output without plugin | Output with plugin |
|---|---|---|
Draw a smiling dog. | The agent application cannot draw images or graphics directly and can only describe the scene in text. | The agent application can draw images directly and can generate a picture of a dog based on the instructions. |
|
|
Combine plugins
Combine plugins
Call official plugins
Step 1. Authorize the workspace (if required). You must authorize an official plugin before you can use it in a sub-workspace. This step is not required for the default workspace.
- Go to the Plugins page, find the target plugin, and click View Details.
-
Click Authorization, select the sub-workspace to authorize, and click OK to complete the authorization.

Call a plugin
-
Method 1: From the Plug-in page, add a tool to an agent application.
An official plugin can only be added to an Agent Application in the same workspace.
- Find the target plugin and click Add to Agent.
- Select the tool and click Next.
- Select an agent application and click Confirm Add.
-
On the application details page, the tool now appears automatically.
You can also click Select Plug-in to add more tools. You can add up to 10 tools. The agent application selects and calls one or more tools based on the input.

- Test the tool by interacting with the model in the input box.
- After testing, publish the application.
- Method 2: Go to the Apps page. In a specific agent or workflow application, add the plugin, test its functionality, and then Publish the application. For more information, see Agent application plugin capabilities and Workflow application plugin node.
Get the tool ID
A tool ID identifies a specific tool. You must provide the correct tool ID when calling a tool by using an API.
- On the Plug-in page, find the target plugin and click View Details.
-
Under Plug-in Tool, get the tool ID.
In this example, the tool ID is
calculator.



