> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixroute.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Dify

> Dify Platform Integration Guide

## Introduction

Dify is a visual AI application building platform. With **MixRoute API** , you can use cost-effective LLM services in Dify.

## Integration Steps

### Step 1: Prepare API Account

Register at [https://api.mixroute.ai/，Check](https://api.mixroute.ai/，Check) out [Quick Start](/zh-hant/quickstart).

### Step 2: Open Dify Model Provider Settings

1. Open Dify platform, go to Settings
2. Select "Model Providers" in left menu

<Frame>
  <img src="https://mintcdn.com/personal-a5418d9f/iZ6FhpT4JV2kTLlz/images/dify-en-1.png?fit=max&auto=format&n=iZ6FhpT4JV2kTLlz&q=85&s=b0ca81e0c52f8b18aa25d4bc02ad6bb8" alt="Dify En 1" width="3118" height="1732" data-path="images/dify-en-1.png" />
</Frame>

### Step 3: Install Compatible Plugin

1. Find "OpenAI-API-compatible" plugin
2. Click Install

<Frame>
  <img src="https://mintcdn.com/personal-a5418d9f/iZ6FhpT4JV2kTLlz/images/dify-en-2-1.png?fit=max&auto=format&n=iZ6FhpT4JV2kTLlz&q=85&s=7db6ad3e8803e8c36ef9db7e2503d818" alt="Dify En 2 1" width="3120" height="1735" data-path="images/dify-en-2-1.png" />
</Frame>

### Step 4: Configure Parameters

Click "Add Model" and configure:

| Setting | Value |
| - | - |
| API Key | From Mixroute Api console |
| Model Name | e.g., `gpt-5.5`, `gemini-3.5-flash` |
| API Endpoint | `https://api.mixroute.ai/v1` |

<Frame>
  <img src="https://mintcdn.com/personal-a5418d9f/iZ6FhpT4JV2kTLlz/images/dify-en-get-key.png?fit=max&auto=format&n=iZ6FhpT4JV2kTLlz&q=85&s=29517f723398ca9647ac5e16e57e1481" alt="Dify En Get Key" width="2281" height="883" data-path="images/dify-en-get-key.png" />
</Frame>

<Warning>
  Ensure "Model Name" and "Model Name in API endpoint" fields match!
</Warning>

<Frame>
  <img src="https://mintcdn.com/personal-a5418d9f/iZ6FhpT4JV2kTLlz/images/dify-en-model-2.png?fit=max&auto=format&n=iZ6FhpT4JV2kTLlz&q=85&s=5cde19213993256860e5596e08bf8582" alt="Dify En Model 2" width="962" height="448" data-path="images/dify-en-model-2.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/personal-a5418d9f/iZ6FhpT4JV2kTLlz/images/dify-en-4-1.png?fit=max&auto=format&n=iZ6FhpT4JV2kTLlz&q=85&s=0500850febee2e43494350a56a30cae8" alt="Dify En 4 1" width="1431" height="570" data-path="images/dify-en-4-1.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/personal-a5418d9f/iZ6FhpT4JV2kTLlz/images/dify-en-5-1.png?fit=max&auto=format&n=iZ6FhpT4JV2kTLlz&q=85&s=4bc580c83a53d021f908773dbf23ec83" alt="Dify En 5 1" width="1429" height="1377" data-path="images/dify-en-5-1.png" />
</Frame>

### Step 5: Save Configuration

Click "Save" to complete the setup.

### Step 6: Test the Integration

1. Create a new workflow or chatbot
2. Select the model you just configured
3. Run a test to verify everything works

<img src="https://mintcdn.com/personal-a5418d9f/iZ6FhpT4JV2kTLlz/images/dify-en-6.png?fit=max&auto=format&n=iZ6FhpT4JV2kTLlz&q=85&s=67e53b7bcb392684d867ad6b02282cee" alt="Dify En 6" width="1598" height="1493" data-path="images/dify-en-6.png" />

## Advantages

<CardGroup cols={2}>
  <Card title="Cost Effective" icon="coins">
    Competitive pricing
  </Card>

  <Card title="Stable Performance" icon="gauge">
    Same response quality
  </Card>

  <Card title="Easy Integration" icon="plug">
    Simple plugin setup
  </Card>

  <Card title="Full Features" icon="check">
    Chat, embeddings, speech-to-text
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.