Dify

AI agent and workflow builder

Dify is an open-source platform for developing, deploying, and operating AI applications. It provides visual tools for creating chatbots, agents, chatflows, workflows, and RAG applications, along with model-provider configuration, knowledge bases, plugins, APIs, web app publishing, monitoring, and cloud or self-hosted deployment.

Company LangGenius
Free plan Yes
Paid plans from $59/workspace/month
Ease of use Moderate

What you can do with Dify

Key features
✓
Build visual AI workflows

Connect user inputs, LLMs, retrieval, code, conditionals, iterations, templates, and outputs into multi-step applications

✓
Create AI agents

Configure agent applications that use models and tools to complete task-oriented interactions

✓
Build RAG knowledge applications

Import documents and connected sources into searchable knowledge bases for retrieval-augmented generation

✓
Connect model providers

Configure managed or custom credentials for providers such as OpenAI, Anthropic, Gemini, Cohere, Azure OpenAI, and local-model services

✓
Publish applications

Deploy created applications as hosted web apps or APIs for users and software systems

✓
Add plugins and tools

Extend applications through marketplace plugins, external tools, model integrations, webhooks, schedules, and supported MCP functionality

✓
Monitor application runs

Review logs, runtime data, feedback, usage, and connected observability data

✓
Self-host the platform

Deploy the Community Edition on infrastructure controlled by the organization, or use Dify Cloud and Enterprise deployment options

How Dify works

A user creates an application in Dify Studio, selects an application type, configures a model provider, and adds prompts, workflow nodes, tools, or knowledge sources. After testing and publishing the application, users can access it through a Dify web app or an API, while the builder monitors runs and updates the configuration.

INPUTS
Text promptsDocumentsPDF filesImagesURLsStructured variablesAudioCodeAPI requests
OUTPUTS
TextChat responsesStructured dataAPI responsesImagesAudioSpeechTranscriptsGenerated web applications

Who Dify is for

BEST FOR

Teams that need to prototype, configure, deploy, and monitor AI applications using visual workflows, RAG, agents, multiple model providers, and either managed cloud hosting or self-hosted infrastructure.

LESS SUITED FOR

Users looking for a finished end-user AI assistant, a consumer writing app, a mobile-first AI product, or a zero-configuration tool that produces results without building and configuring an application.

Strengths & limitations

+ Strengths

  • Combines visual workflows, agents, RAG, model-provider management, APIs, deployment, and monitoring in one platform
  • supports both cloud and self-hosted deployment
  • allows users to bring their own model-provider keys
  • supports multiple model vendors and local models
  • provides a free Cloud Sandbox and free self-hosted Community Edition
  • offers extensive customization through plugins and workflow nodes
  • includes enterprise options such as private deployment, SSO, RBAC, and support.

– Limitations

  • The product requires application design and configuration rather than simply answering a user's question
  • self-hosting requires infrastructure, upgrades, security management, and model-provider setup
  • Cloud quotas and model credits can constrain experimentation
  • total operating cost includes both Dify subscription costs and external model-provider usage when using BYOK
  • feature availability differs between Cloud, Community, and Enterprise editions
  • the modified open-source license requires careful review for some commercial multi-tenant deployments.

Pricing & access

FREE ACCESS Free plan available

Dify Cloud has a free Sandbox plan with one workspace, one team member, five apps, 200 one-time message credits, 50 knowledge documents, 50 MB of knowledge storage, 3,000 trigger events, limited triggers per workflow, standard workflow execution, 30 days of log history, and a monthly API rate limit. The Community Edition is free to self-host under the Dify Open Source License, subject to its additional licensing conditions.

PAID ACCESS $59/workspace/month

The Professional Cloud plan is listed at $59 per workspace per month with annual billing, or $590 per workspace per year. The Team plan is listed at $159 per workspace per month with annual billing, or $1,590 per workspace per year. Prices exclude applicable taxes. Model usage is governed by message credits or the user's own model-provider API keys. Enterprise private deployment pricing is custom.

FREE TRIAL No free trial listed
USAGE LIMITS Plan limits apply

Cloud limits vary by plan and include message credits, workspace members, apps, knowledge documents, knowledge storage, knowledge request rate, trigger events, workflow triggers, annotations, log history, and API rate limits. The free Sandbox includes 200 one-time message credits and 5,000 API requests per month. Paid plans provide recurring monthly message credits and higher quotas.

Platforms & access

✓ Web app
– Mobile app
– Desktop app
– Browser extension
✓ API
✓ Embeddable

Dify Cloud web application; self-hosted Community Edition deployed with Docker or other supported infrastructure; private enterprise deployment; published Dify applications can be exposed as web apps and APIs.

Product format: standalone

Product specs

Standard features
✓ Web access
✓ File upload
✓ Memory
✓ Custom agents
✓ Scheduled automation
✓ Knowledge base
✓ Website ingestion
✓ Code execution
– Computer actions
✓ Integrations
✓ Webhooks
✓ MCP support
✓ Bring your own key
✓ Model selection
✓ Collaboration
✓ Shared workspace
✓ Admin controls
✓ SSO
✓ Role permissions
✓ Analytics
✓ Templates
✓ No-code
✓ Project workspace
✓ Brand tools
✓ Performance scoring

Dify's central product experience is application construction rather than direct end-user chat. Its visual Studio supports chatbot, text generator, agent, chatflow, and workflow application types. Workflows can use input, LLM, retrieval, document extraction, code, conditional, iteration, template, scheduling, plugin, and webhook components. Applications can be published as web apps or APIs. Some capabilities, such as collaboration, SSO, advanced observability, branding, and higher quotas, depend on the Cloud plan, Enterprise deployment, or self-hosted configuration.

Categories & capabilities

Browse similar tools

Integrations & models

INTEGRATIONS Connected workflows

Dify supports model-provider integrations such as OpenAI, Anthropic, Google Gemini, Cohere, Azure OpenAI, Ollama, and other providers; knowledge-source integrations including Notion, web content synchronization, and external knowledge APIs; plugin and marketplace integrations; and observability integrations such as LangSmith, Langfuse, Opik, W&B Weave, and Arize Phoenix on supported configurations.

MODELS Models used

Dify is model-provider agnostic. Officially documented providers include OpenAI, Anthropic, Google Gemini, Cohere, Azure OpenAI, Ollama and other supported providers. Dify Cloud also supplies access to selected managed models from providers including OpenAI, Anthropic, Gemini, xAI, and Tongyi. The exact available model list varies by deployment, plan, provider, and date.

Privacy & data Data handling, AI training, retention and security
↓
Data handling

Dify Cloud collects account information, prompts, uploaded documents, knowledge-base content, application configurations, workflows, generated outputs, and usage information as needed to provide and operate the service. Dify Cloud states that data is encrypted in transit and at rest and stored in a managed cloud region. Self-hosting provides greater control over infrastructure and data location but transfers operational security responsibilities to the deployer.

AI training

LangGenius states that it does not train AI models itself and will not use AI interaction data for model training. When users supply their own model-provider API keys, data is transmitted to the selected provider and that provider's terms govern training use. For Dify-managed model providers, LangGenius states that subprocessors are contractually prohibited from using customer data for model training or their own purposes.

Data retention

LangGenius retains personal information for as long as necessary for the purposes described in its privacy policy, including while an account is active, and for legal, security, dispute-resolution, and business-record purposes. Specific content-retention periods can vary by service, account, deployment, backups, and customer configuration.

Security

Dify Cloud states that it uses encryption in transit and at rest, access controls, and hardened infrastructure. LangGenius reports SOC 2 and ISO 27001 certifications and provides enterprise security, private deployment, SSO, RBAC, and support options. Self-hosted security depends on the operator's infrastructure, configuration, updates, secrets management, and access controls. The Community Edition license includes additional conditions beyond Apache 2.0, including restrictions affecting multi-tenant service use and frontend branding.

About Dify

Dify is a visual development platform for creating AI applications rather than a finished general-purpose chatbot. Teams can use it to build agents, chatbots, RAG knowledge assistants, and multi-step workflows, then publish them as web applications or APIs. It is available through Dify Cloud, a free self-hosted Community Edition, and enterprise private deployment.

What Dify does

Dify gives developers, product teams, and technically capable business users a way to assemble AI applications without coding every component from scratch. In Dify Studio, a user chooses an application type, configures a model provider, writes prompts, connects knowledge sources or tools, tests the result, and publishes the application.

The platform is best understood as an AI application development and operations layer. Unlike a general-purpose chatbot, it does not primarily exist to answer the builder's questions directly. Its main purpose is to help someone create a repeatable AI-powered experience for other users, internal teams, or software systems.

Building workflows, agents, and knowledge applications

Dify's central feature is its visual workflow builder. A workflow can connect user inputs, language models, retrieval, code, conditional logic, iteration, templates, document extraction, plugins, schedules, webhooks, and outputs. This makes it suitable for processes such as classifying incoming text, retrieving relevant company documents, generating a response, and returning the result through an application or API.

Agent applications add a more task-oriented interaction model. An agent can use a configured model and connected tools to handle a sequence of actions. The exact behavior still depends on the selected model, prompts, tools, permissions, and workflow design; Dify does not remove the need to define and test those components.

For retrieval-augmented generation, users can import documents and other sources into knowledge bases. Applications can then retrieve relevant material before generating an answer. This supports internal knowledge assistants, document question-answering, customer-support applications, and other use cases where responses should be grounded in organization-specific content.

Models, tools, and deployment

Dify is model-provider agnostic. It supports integrations with providers such as OpenAI, Anthropic, Google Gemini, Cohere, Azure OpenAI, Ollama, and other supported services. Depending on the deployment, users can configure provider credentials, use managed model access, or bring their own API keys. The available models and quotas can vary by plan, provider, deployment, and date.

Applications can be published as hosted web apps or exposed through APIs. This allows a team to create an interface for end users while also integrating the same application into an existing software workflow. Plugins, external tools, webhooks, schedules, and supported MCP functionality extend what a workflow can connect to, although each integration may require separate configuration and credentials.

Dify also includes operational features for inspecting application runs, logs, usage, feedback, and runtime data. Supported configurations can connect to external observability services such as LangSmith, Langfuse, Opik, W&B Weave, and Arize Phoenix. These capabilities matter when an application moves beyond a prototype and needs testing, troubleshooting, and ongoing maintenance.

Who Dify is for

Dify is suited to teams that need to build and operate their own AI applications. Common users include developers, startups, product teams, internal automation groups, enterprise AI teams, and business users who can work with prompts, data sources, model settings, and workflow logic.

  • Teams can build internal assistants over company documents.
  • Product groups can prototype customer-facing chatbots and agent applications.
  • Developers can expose AI workflows through APIs instead of building orchestration infrastructure from the beginning.
  • Organizations can compare model providers or use local models while keeping application logic in one platform.
  • Operations and AI teams can inspect runs, manage credentials, and refine workflows after deployment.

It is less suitable for someone looking for a ready-made consumer assistant, a mobile-first AI application, or a zero-configuration writing tool. The value comes from designing and managing an application, so there is more setup than in a standard chat interface.

Access, pricing, and deployment options

Dify Cloud has a free Sandbox plan with limited workspace, application, knowledge-base, trigger, credit, and API quotas. The supplied plan information includes one workspace member, five apps, 200 one-time message credits, 50 knowledge documents, 50 MB of knowledge storage, limited trigger capacity, and limited log history. The free plan is useful for evaluation and small prototypes, but its quotas are not designed for unrestricted production use.

Paid Dify Cloud access starts at $59 per workspace per month when billed annually for the Professional plan. A Team plan is listed at $159 per workspace per month with annual billing. Prices and quotas can change, and model usage may involve message credits or separate charges from the selected model provider. Enterprise private deployment is available through a custom offering.

The Community Edition can be self-hosted for free, giving an organization more control over infrastructure and data location. Self-hosting also means taking responsibility for deployment, upgrades, security, secrets, access controls, and model-provider configuration. The Community Edition uses the Dify Open Source License, which includes additional conditions that should be reviewed carefully, particularly for some commercial multi-tenant service scenarios.

Privacy and operational considerations

When using Dify Cloud, account information, prompts, uploaded documents, knowledge-base content, application configurations, generated outputs, and usage information may be processed to provide the service. LangGenius states that Dify Cloud data is encrypted in transit and at rest and that it does not use AI interaction data to train its own models. When users connect an external provider with their own API key, prompts and other data are sent to that provider and the provider's terms determine how that data is handled.

Self-hosting can provide greater control over infrastructure and data location, but it does not automatically make a deployment secure. The operator must manage network access, authentication, updates, backups, provider credentials, logging, and the security of uploaded knowledge sources. Retention can also vary according to the cloud service, deployment configuration, backups, and organizational policies.

Strengths and limitations

Where Dify is strong

  • Application-oriented design: It brings workflows, agents, RAG, model configuration, publishing, and monitoring into one development environment.
  • Deployment flexibility: Teams can choose managed cloud hosting, free self-hosting, or an enterprise private deployment.
  • Provider choice: Users can connect multiple hosted providers and local-model services rather than committing application logic to one model vendor.
  • API and web publishing: A built application can serve people through a web app or integrate with other software through an API.
  • Extensibility: Plugins, tools, webhooks, schedules, and workflow nodes allow applications to be adapted to specific processes.

Important limitations

  • Dify requires application design and configuration; it is not a finished assistant that delivers consistent results without setup.
  • Cloud plans impose limits on credits, requests, applications, knowledge storage, triggers, members, and other resources.
  • Cloud subscription costs may be only part of the total cost when external model-provider usage is billed separately.
  • Self-hosting requires technical infrastructure and ongoing operational work.
  • Feature availability differs between Cloud, Community, and Enterprise deployments.
  • Model behavior, retrieval quality, and application reliability depend on the selected models, prompts, source data, tools, and workflow design.

Is Dify a good fit?

Dify is a strong fit when an organization wants to move from experimenting with prompts to operating a configurable AI application. It is particularly relevant for RAG assistants, internal automation, API-based AI services, customer-support workflows, and agent prototypes that need model choice and deployment control.

It is a weaker fit for users who want an immediate personal assistant, a polished writing application, or a simple chatbot with no workflow design. The main trade-off is flexibility versus complexity: Dify provides substantial control over models, data, tools, and deployment, but the user must take responsibility for configuring and maintaining those parts.

Dify is an open-source platform for building and deploying AI applications with visual workflows, agents, RAG knowledge bases, model-provider integrations, APIs, monitoring, cloud hosting, and self-hosted deployment. It suits teams that need configurable AI systems, but requires more setup than a general-purpose chatbot.

Answers to Frequently Asked Questions

Is Dify available for self-hosting, and what are the privacy considerations?
Yes. The Dify Community Edition can be self-hosted, giving organizations more control over infrastructure and data location. Self-hosting requires responsibility for security, authentication, updates, backups, secrets, access controls, logging, and model-provider configuration. With Dify Cloud, prompts, documents, configurations, outputs, and usage data may be processed to provide the service, while external model providers handle data according to their own terms.
How much does Dify cost?
Dify Cloud offers a limited free Sandbox plan. Paid cloud access starts at $59 per workspace per month with annual billing for the Professional plan, while the Team plan is listed at $159 per workspace per month with annual billing. The Community Edition can be self-hosted for free, and Enterprise private deployment is available through a custom offering. Prices, quotas, and model-related costs may change.
Which AI models and providers does Dify support?
Dify is model-provider agnostic and supports services such as OpenAI, Anthropic, Google Gemini, Cohere, Azure OpenAI, Ollama, and other supported providers. Users may be able to use managed access, configure provider credentials, or bring their own API keys, depending on the deployment.
What is Dify used for?
Dify is an AI application development and operations platform for building workflows, agents, retrieval-augmented generation applications, internal assistants, customer-support tools, and API-based AI services.
Can you build AI agents and workflows with Dify without coding?
Dify provides a visual workflow builder that lets users connect language models, retrieval, code, conditional logic, tools, schedules, webhooks, and outputs. It reduces the need to build every component from scratch, but users still need to configure prompts, models, permissions, data sources, and workflow logic.