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

# Dify-Integration

> APIAny.AI API-Key, Base-URL und empfohlene Modelle in Dify konfigurieren.

[Dify](https://dify.ai/) lässt sich über OpenAI-kompatible Einstellungen mit APIAny.AI verbinden. Nach der Einrichtung kannst du Chat-, Reasoning-, Übersetzungs- und multimodale Modelle aus demselben Client nutzen.

## Voraussetzungen

* Dify ist installiert.
* Du hast in der [APIAny.AI-Konsole](https://apiany.ai/de/dashboard/api-keys) einen API-Key erstellt.
* Du hast eine Modell-ID ausgewählt, zum Beispiel `gpt-5.4-mini` oder `gpt-4o-mini`.

## Konfigurationswerte

| Feld         | Wert                    |
| ------------ | ----------------------- |
| Model type   | `OpenAI-API-compatible` |
| API endpoint | `https://apiany.ai/v1`  |
| API Key      | Dein APIAny.AI API-Key  |
| Modell       | `gpt-5.4-mini`          |

## Einrichtung

1. Öffne die Modelleinstellungen in deinem Dify-Workspace.
2. Füge ein OpenAI-API-kompatibles Modell hinzu.
3. Gib den API-Endpunkt, den API-Key und die Modell-ID ein.
4. Erstelle eine App, wähle das Modell aus und führe eine Vorschau aus.

## Empfohlene Modelle

| Modell-ID           | Am besten geeignet für                                                                      |
| ------------------- | ------------------------------------------------------------------------------------------- |
| `gpt-5.5`           | Beste erste Wahl für komplexes Reasoning, Coding und produktive Workflows.                  |
| `gpt-5.4`           | Starkes Allzweckmodell für anspruchsvolle Chat- und Agent-Aufgaben.                         |
| `gpt-5.4-mini`      | Ausgewogenes Verhältnis aus Geschwindigkeit, Qualität und Kosten für den täglichen Einsatz. |
| `gpt-4o-mini`       | Schnelle und günstige Wahl für einfache Chats, Übersetzungen und leichtgewichtige Aufgaben. |
| `claude-sonnet-4-6` | Claude-kompatible Modell-ID für längere Texte und Coding-Workflows.                         |
| `gemini-3.5-flash`  | Gemini-kompatible Modell-ID für schnelle multimodale Nutzung.                               |

## Screenshots der Einrichtung

Die folgenden Screenshots zeigen die wichtigsten Konfigurationsbildschirme in Dify. API-Namen und Endpunkte wurden für APIAny.AI angepasst.

### Schritt 1

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/dify/main-interface.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=3676d9c2db6f6f0b4adb3f09809cb65d" alt="Dify-Einrichtung Screenshot 1" width="2560" height="1270" data-path="images/integrations/dify/main-interface.png" />

### Schritt 2

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/dify/model-provider-menu.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=19eac28459d7284995b5d79ef96a51b9" alt="Dify-Einrichtung Screenshot 2" width="2560" height="1270" data-path="images/integrations/dify/model-provider-menu.png" />

### Schritt 3

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/dify/openai-custom-api.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=aa90e9be6a3eeba69a9da3d8d5266757" alt="Dify-Einrichtung Screenshot 3" width="2560" height="1270" data-path="images/integrations/dify/openai-custom-api.png" />

### Schritt 4

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/dify/openai-custom-setting.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=d2176c70092360b9af47d1a356e584bf" alt="Dify-Einrichtung Screenshot 4" width="2560" height="1270" data-path="images/integrations/dify/openai-custom-setting.png" />

### Schritt 5

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/dify/openai-model-list.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=dda928b6b2aa003af4cbba41c3adfe91" alt="Dify-Einrichtung Screenshot 5" width="2560" height="1270" data-path="images/integrations/dify/openai-model-list.png" />

### Schritt 6

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/dify/custom-model-section.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=d8619632233a45adbd843cd99b8ab1ce" alt="Dify-Einrichtung Screenshot 6" width="2560" height="1270" data-path="images/integrations/dify/custom-model-section.png" />

### Schritt 7

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/dify/add-provider-dialog.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=03ee6d48a8acb5bffec264e8a9907544" alt="Dify-Einrichtung Screenshot 7" width="2560" height="1270" data-path="images/integrations/dify/add-provider-dialog.png" />

### Schritt 8

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/dify/create-app.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=f03426e287fc6538f5899656f4df5274" alt="Dify-Einrichtung Screenshot 8" width="2560" height="1270" data-path="images/integrations/dify/create-app.png" />

### Schritt 9

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/dify/model-selection.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=3814bf1fd1f3e32dc804586b3aa2c844" alt="Dify-Einrichtung Screenshot 9" width="2560" height="1270" data-path="images/integrations/dify/model-selection.png" />

### Schritt 10

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/dify/model-parameters.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=0b0a71d9d300ce4efe44bec27fcefb06" alt="Dify-Einrichtung Screenshot 10" width="2560" height="1270" data-path="images/integrations/dify/model-parameters.png" />

### Schritt 11

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/dify/prompt-editor.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=e654b459aadb92fa145b8324cc44c2fd" alt="Dify-Einrichtung Screenshot 11" width="2560" height="1270" data-path="images/integrations/dify/prompt-editor.png" />

### Schritt 12

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/dify/app-preview.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=5592a79edc0ea94c7916c10a78476e05" alt="Dify-Einrichtung Screenshot 12" width="2560" height="1270" data-path="images/integrations/dify/app-preview.png" />

### Schritt 13

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/dify/publish-options.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=aa7afdb6bd29a1069ad85e4021b16e78" alt="Dify-Einrichtung Screenshot 13" width="2560" height="1270" data-path="images/integrations/dify/publish-options.png" />

### Schritt 14

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/dify/app-logs.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=2130323a0e4b10b4247970e75e0c550a" alt="Dify-Einrichtung Screenshot 14" width="2560" height="1270" data-path="images/integrations/dify/app-logs.png" />

## Fehlerbehebung

### 401- oder Authentifizierungsfehler

Stelle sicher, dass der API-Key vollständig kopiert wurde, keine zusätzlichen Leerzeichen enthält und in der APIAny.AI-Konsole aktiviert ist.

### Das Modell erscheint nicht in der App

Gib die Modell-ID manuell ein und prüfe, ob sie im [Modellkatalog](/de/models/chat-models) verfügbar ist. Manche Tools rufen Modelllisten nicht automatisch ab.

### Welche Base-URL soll ich verwenden?

OpenAI-kompatible Einstellungen verwenden in der Regel `https://apiany.ai/v1`; Claude-kompatible Einstellungen verwenden in der Regel `https://apiany.ai`; Tools, die einen vollständigen Endpunkt erwarten, verwenden `https://apiany.ai/v1/chat/completions`.
