Dify is an open-source platform for building AI applications with built-in LLMOps, workflow automation, and agent capabilities. TrueFoundry integrates seamlessly with Dify, providing enterprise-grade AI features including cost tracking, security guardrails, and access controls.TrueFoundry’s AI Gateway routes all LLM calls through the Gateway to ensure your AI applications are secure, compliant, and cost-effective.
Before integrating Dify with TrueFoundry, ensure you have:
TrueFoundry Account: Create a Truefoundry account with atleast one model provider and generate a Personal Access Token by following the instructions in Generating Tokens
Step 4: Get Configuration Details from TrueFoundry
Navigate to your TrueFoundry AI Gateway playground to get both the base URL and model name from the unified code snippet (ensure you use the same model name as written):
Get Base URL and Model Name from Unified Code Snippet
Copy the base URL and model ID and paste them into Dify’s configuration fields.
Get the API endpoint URL from the unified code snippet provided by TrueFoundry: