inference.eu

Automation · Dify

Use Dify with open-source models hosted in the EU

Dify is an open-source platform for building AI apps, agents and workflows in a visual editor. Its OpenAI-API-compatible model provider plugin connects to any compatible API, so your Dify apps can run on open-weight models at inference.eu, processed in European data centres.

  1. 01API format: OpenAI
  2. 02EU data centres
  3. 03Covered by one DPA

Set it up in a few minutes

  1. 1

    Create an API key in your inference.eu account.

  2. 2

    In Dify, open Settings > Model Provider and install the OpenAI-API-compatible plugin from the marketplace.

  3. 3

    Click Add Model, choose LLM, and enter the inference.eu model id, your API key and the inference.eu base URL as API endpoint URL.

  4. 4

    Set Completion mode to Chat, enter the context size and max tokens, and enable Tool Call if the model supports function calling.

  5. 5

    Select the model in a chatbot, agent or workflow LLM node and run a test conversation.

yaml
# Settings > Model Provider > OpenAI-API-compatible > Add Model
# Values to enter in the form, one entry per model:
Model Type: LLM
Model Name: glm-5.3
Model display name: GLM-5.3 (inference.eu)
API Key: <your INFERENCE_EU_API_KEY>
API endpoint URL: https://api.inference.eu/v1
Completion mode: Chat
Model context size: 131072
Upper bound for max tokens: 8192
Function calling: Tool Call
Stream function calling: Supported
Vision support: Not supported

What Dify is

Dify is an open-source platform for building language model applications. In a visual editor you create chatbots, agents with tools, text generators and multi-step workflows, then publish them as web apps or APIs. It includes knowledge bases with document retrieval, prompt management, logs and annotations, and runs as Dify Cloud or as a self-hosted Docker deployment.

Models are added through model provider plugins. The official OpenAI-API-compatible plugin, maintained by the Dify team, connects to any service that implements the OpenAI API. That is how you make inference.eu models available to every app in your workspace.

How the configuration works

After installing the plugin, add each model separately. Choose LLM as model type, enter the inference.eu model id as Model Name, your key as API Key, and the inference.eu base URL ending in /v1 as API endpoint URL. Set Completion mode to Chat.

The remaining fields tell Dify what the model can do. Model context size and the upper bound for max tokens control how much text Dify sends and requests. Set Function calling to Tool Call for models that support tools, so Dify agents use native function calling. Once saved, the model appears in every model selector in the workspace.

Which models to choose

For chatbots, text generation and classification nodes, gpt-oss-120b is a fast default that keeps apps responsive. For agents and workflows that call tools, add kimi-k3 or glm-5.3 with Tool Call enabled. Both handle multi-step reasoning and long context well.

Knowledge base apps that answer from long documents benefit from glm-5.3 or kimi-k3 with a large context size. For apps that generate or review code, add qwen3-coder-480b-a35b-instruct. You can add several inference.eu models and choose a different one in each workflow node, for example a fast model for routing and a stronger one for the answer.

Troubleshooting

If saving the model fails with 401, the API key is wrong. A 404 usually means the endpoint URL is missing /v1 for LLM models or has an extra path. "Model not found" means the Model Name differs from the inference.eu id.

If an agent describes tool calls in text instead of running them, set Function calling to Tool Call and choose a model with dependable tool support. If answers are cut off, raise the upper bound for max tokens. If knowledge base answers miss content, check the context size matches the model. Self-hosted Dify needs outbound network access from the plugin daemon.

Keeping data in the EU

With inference.eu as the model provider, the prompts, retrieved knowledge and tool results your Dify apps send to the model are processed in EU data centres and never used for training. We sign a data processing agreement under Article 28 GDPR, publish our subprocessor list and bill in euros.

Dify stores apps, conversations, logs and knowledge bases in its own database and storage. Self-host Dify in the EU for full control, or check where your Dify Cloud workspace is hosted. Embedding and rerank models for knowledge bases are configured separately, so choose EU-hosted options for them too.

Dify: common questions

The questions buyers, developers and legal teams ask us most. Something missing? Ask us directly.

Ask a question

Move your AI workloads to EU infrastructure

Tell us which models you use and roughly how much traffic you have. We reply within one working day with pricing and next steps.

  • Reply within one working day
  • Pricing for your volume
  • DPA ready to sign