FAQ for Dify on DMS

Updated at:

This document answers common questions about using Dify on DMS and provides solutions.

Billing and activation

Q: When I activate Dify on DMS, I receive the message "Insufficient balance. Please top up." for both subscription and pay-as-you-go billing methods. Why does this happen?

A: The activation and payment for Dify on DMS work as follows:

  • Pay-as-you-go: This billing method requires a cash balance in your Alibaba Cloud account for verification. The system checks this balance in advance.

  • Subscription: This billing method also deducts payment directly from your account balance. Therefore, at the time of purchase, your cash balance must be greater than or equal to the total order amount.

Solution: Ensure that your Alibaba Cloud account has a sufficient cash balance before you activate the service.


Q: After I delete my Data+AI workspace in DMS, why is my Dify instance still being billed?

A: Deleting the workspace releases only the compute resources of the Dify instance. It does not automatically release the underlying database instances on which the Dify instance depends. These database instances continue to run and incur charges.

Solution: If you no longer need these databases, you must manually release them from their respective product consoles.

Basic usage

Q: When I call the Dify API, I receive the error No dify api key found in request. How do I fix this?

A: This error indicates that the API key is missing from your request header.

Solution:

  1. Follow the instructions in Get the API key (DifyApiKey) for Dify on DMS to obtain your unique DifyApiKey.

  2. Add the obtained DifyApiKey to the header of your API request.


Q: Why can't I set the API key required by a plugin for my model provider in Dify?

A: This action requires the Owner or Administrator role. Your current account does not have the required permissions.

Solution:

  1. Contact your team administrator.

  2. The administrator must go to the Settings > Members page in Dify and change your role to Administrator.

  3. For more information about role permissions, see Team Members Management.


Q: What should I do if a plugin installation from Marketplace fails?

A: If the online installation fails, you can download the plugin and install it locally.

Solution:

  • To download the plugin locally, on the Publish Plugin tab, find your target plugin, click Details on its card, and then click the icon in the upper-right corner image.

  • Install using Local Plugin: In the upper-right corner, choose Install Plugin > Local Plugin, then follow the prompts to complete the installation.


Q: I have enabled an Internet NAT gateway for my Dify instance, but the instance still cannot access the Internet. How do I troubleshoot this issue?

A: This issue is usually caused by an incorrect VPC route table configuration. A NAT Gateway serves only as an egress point. You must also configure routing rules to direct traffic to that egress.

Troubleshooting and solution:

  1. Log on to the VPC console.

  2. In the navigation pane on the left, choose NAT Gateway > Internet NAT Gateway.

  3. In the Instance ID/Name column, click the instance ID of the Internet NAT gateway that is associated with your Dify instance.

  4. On the Basic Information tab, in the VPC routes that point to the NAT gateway section, check whether the Route Table column displays a route table that points to this NAT gateway.

    If not, click Go to configure and attach the correctly configured route table to the Internet NAT gateway.


Q: How can I view the VPC ID and network information, such as the CIDR block, for my Dify instance?

A: You can find this information in the Data+AI workspace in DMS.

Procedure:

  1. Go to the workspace that is associated with your Dify instance.

    1. Log in to DMS 5.0.

    2. Click the 2023-01-28_15-57-17.png icon in the upper-left corner of the console and choose Shortcut menu > Data+AI > Workspace.

      Note

      If you are using the non-simple mode console, choose Data+AI > Workspace from the top menu bar.

    3. Click the name of the target workspace.

  2. In the navigation pane on the left, choose image > Dify Resources.

    screenshot_2025-08-20_10-21-43

  3. On the Change configuration tab, in the Network information section on the right, perform the following steps as needed.

    • To view the VPC ID: Find the value in the VPC ID field.

    • To view the VPC CIDR block: Click the link next to the vSwitch ID. You are redirected to the vSwitch details page. In the vSwitch Basic Information section, find the IPv4 CIDR.