Creator Center
/Model/LiteLLM
app icon

LiteLLM

Verified by Dify
No ratings yet
0
L
langgenius/litellm

Connect Dify to a LiteLLM Proxy. One OpenAI-compatible endpoint gives access to 100+ model providers.

LiteLLM

Overview

Use a LiteLLM Proxy as the model provider for Dify. The proxy gives one OpenAI-compatible endpoint for 100+ model providers, with virtual keys, spend tracking, budgets, and fallbacks.

The plugin adds your proxy models to Dify as customizable models. It supports:

  • LLM (chat and completion), including streaming and tool calls
  • Text embedding

This plugin is for the LiteLLM Proxy server. It does not use the LiteLLM Python library.

Configure

  1. Start a LiteLLM Proxy. See the quick start. The default address is .
  2. Optional: create a virtual key for Dify.
  3. Install LiteLLM from the Dify Marketplace.
  4. Open Settings → Model Provider → LiteLLM and select Add Model.
  5. Choose the model type and enter these values:
    • Model Name: the alias from your proxy config, for example for an LLM or for an embedding model.
    • LiteLLM Proxy URL: for example . A trailing is optional.
    • API Key: a virtual key or the master key. Leave it empty if the proxy has no authentication.

Example proxy config:

The model names come from your own proxy config. The plugin does not include a model list. For more about the proxy, see LiteLLM Proxy as a provider.

If Dify runs in Docker, points to the Dify container. Use or the address of the proxy host.

Usage

  • Set Function Call Type to Tool Call for models that support tools. Agent nodes and tool calling need this setting.
  • Set Vision Support for models that accept images.
  • Set Model context size and Upper bound for max tokens to the limits of the model.
  • For embedding models, set Model max chunks per batch to the batch size that the model accepts.

Credential validation sends a small request () to or . The model must exist in the proxy config for the check to pass.

When a model answers with tool calls only, the proxy can leave out . The plugin treats it as an empty string.

Support

Open an issue in dify-official-plugins and include the Dify version, the plugin version, and the model alias. Never include API keys or prompt content.

License

Apache License 2.0. See the repository LICENSE.

CATEGORY
Model
VERSION
0.0.1
langgenius·Updated 10 days ago
REQUIREMENTS
LLM invocation
Maximum memory
256MB
Access domain

No outbound calls found

Security
Security Rating

Last checked 10/12/2026 09:33 PM · version 0.0.1

Give a rate
SHARE WITH