Skip to content

Dify Integration

Dify is an open-source LLM application development platform that supports external models via its OpenAI-API-compatible provider integration.

  1. Environment: Ensure you have an active Dify instance (Cloud SaaS or self-hosted via Docker).
  2. Obtain API Key: Go to AlphaTech Sign Up & API Keys to generate your API Key (sk-xxxx).
  3. Select Models: Browse Models and pricing to find active model IDs (e.g. deepseek-v4.1-flash, gpt-6-luna, claude-new-sonnet-5).

Log into your Dify workspace, click on your user avatar at the top right, select Settings, and choose Model Provider from the left navigation.

Menu Path: Top-Right Avatar -> Settings -> Model Provider -> OpenAI-API-compatible

Find the OpenAI-API-compatible card and click Add Model.

Fill in the modal form:

  • Model Type: Select LLM.
  • Model Name: Enter the exact model ID (e.g., deepseek-v4.1-flash).
  • API endpoint URL: Enter https://alphatech.net.cn/v1 (must include /v1).
  • API Key: Enter your AlphaTech sk-xxxx key.
  • Advanced Features: Toggle Function Calling or Vision based on model capabilities.
API endpoint URL: https://alphatech.net.cn/v1
API Key: sk-xxxx
Model Name: deepseek-v4.1-flash

Click Save. To configure additional models, repeat these steps under the same provider card.

  1. Create a new Chat App or Workflow in Dify.
  2. In the orchestration panel, pick your newly configured AlphaTech model (e.g., deepseek-v4.1-flash).
  3. In the right preview panel, send a test query:
Explain what an AI Agent is in one sentence.

If the model returns a streaming response and your AlphaTech console log records the request, integration is verified.

  • Check that the API endpoint URL includes /v1 (https://alphatech.net.cn/v1).
  • For self-hosted Docker deployments, ensure the container has unrestricted outbound HTTPS internet access.

Dify forwards the model name directly. Verify the exact spelling matches Models and pricing.

3. Do Claude models require an Anthropic provider?

Section titled “3. Do Claude models require an Anthropic provider?”

No. AlphaTech’s OpenAI-compatible endpoint supports Claude models (like claude-new-sonnet-5) out of the box. Add them under the same OpenAI-API-compatible provider in Dify.


Reference: Dify Model Configuration Documentation
Last verified on 2026-11-04

需要进一步了解企业方案,或确认服务状态?