Dify Integration
Dify is an open-source LLM application development platform that supports external models via its OpenAI-API-compatible provider integration.
Prerequisites
Section titled “Prerequisites”- Environment: Ensure you have an active Dify instance (Cloud SaaS or self-hosted via Docker).
- Obtain API Key: Go to AlphaTech Sign Up & API Keys to generate your API Key (
sk-xxxx). - Select Models: Browse Models and pricing to find active model IDs (e.g.
deepseek-v4.1-flash,gpt-6-luna,claude-new-sonnet-5).
Configuration Steps
Section titled “Configuration Steps”1. Open Model Provider Settings
Section titled “1. Open Model Provider Settings”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
2. Add Model
Section titled “2. Add Model”Find the OpenAI-API-compatible card and click Add Model.
3. Enter Connection Parameters
Section titled “3. Enter Connection Parameters”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-xxxxkey. - Advanced Features: Toggle Function Calling or Vision based on model capabilities.
API endpoint URL: https://alphatech.net.cn/v1API Key: sk-xxxxModel Name: deepseek-v4.1-flashClick Save. To configure additional models, repeat these steps under the same provider card.
Verifying the Setup
Section titled “Verifying the Setup”- Create a new Chat App or Workflow in Dify.
- In the orchestration panel, pick your newly configured AlphaTech model (e.g.,
deepseek-v4.1-flash). - 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.
Troubleshooting
Section titled “Troubleshooting”1. 404 or connection failure during test
Section titled “1. 404 or connection failure during test”- 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.
2. Model Not Found at runtime
Section titled “2. Model Not Found at runtime”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