Introduction
Dify is a “visual + plugin-based” AI application building platform. Even with zero coding experience, you can easily use large language models to quickly build custom AI tools (such as chatbots, text processing tools, etc.), making it accessible for beginners! By integrating Nebula API, you can use large model services in Dify at a cost that’s only 1/5 or even lower than official prices, with almost the same performance. High-frequency users can save significantly!

Integration Steps
Step 1: Prepare Third-Party API Account
First, register a Nebula API service account: 👉 https://openai-nebula.com


Step 2: Access Dify Model Provider Settings
- Open the Dify platform and log in, then navigate to the “Settings” page
- Select “Model Provider” from the left menu to enter the plugin installation interface

Step 3: Install Compatible Plugin
- Scroll down the page and find the “OpenAI-API-compatible” plugin
- This plugin is super useful! It supports chat, text embedding, speech-to-text, and many other features, enabling seamless integration of third-party large models with Dify. Click “Install”

Step 4: Configure Key Parameters (Important!)
After installation, click “Add Model”. You need to obtain 3 core parameters from https://openai-nebula.com, step by step:


1. Get API Key (📝 Just copy and paste)
- Open https://openai-nebula.com, click “Token” in the top navigation
- Copy the generated “Token” from the page and paste it into the “API Key” field in Dify parameters
2. Get Model Name (⚠️ Both fields must match)
- Go back to https://openai-nebula.com and enter the “Account” page
- In the blue “Model List” at the bottom of the page, select the model you need (such as Gemini, GPT series), and click to copy the name
- Paste the copied name into both “Model Name” and “Model Name in API endpoint” fields in Dify (don’t make mistakes!)
3. Fill in API Address (Copy directly!)
In Dify’s “API endpoint” field, enter:4. Save Configuration
After filling in all parameters, click “Save” — Done! The third-party model is successfully connected to Dify~Testing Results and Cost Comparison
Testing Steps
- Open the workflow task you created in Dify
- Replace the original model with the newly integrated third-party model
- Click “Start Run” and wait for the execution results


Surprising Results
✅ Success! The task executed smoothly with response speed comparable to official services 💰 Cost Savings! Check the https://openai-nebula.com backend: Using Gemini’s latest model, consuming 80,000+ tokens, cost only 0.1 yuan! (Compared to official prices, saving over 80% — great for high-frequency use!)
Advantages Summary
- 💰 Cost Advantage: Price is only 1/5 or even lower than official prices
- ⚡ Stable Performance: Response speed is comparable to official services
- 🔧 Easy Integration: Easy access through OpenAI-API-compatible plugin
- 🌟 Complete Features: Supports chat, text embedding, speech-to-text, and many other features
- 📊 Transparent Billing: Real-time viewing of usage and costs in the backend
