Run the EveryAPI gateway inside Dify
Dify can register OpenAI-compatible LLMs for workflows, agents, and RAG applications. Add each EveryAPI model you intend to use and configure its capabilities according to that model’s actual support.
One base URL line points Dify at EveryAPI
Default global Base URL / China-first Base URL: https://api.everyapi.ai/v1 / https://api-cn.everyapi.ai/v1
# 1. Dify → avatar (top-right) → Settings → Model Provider# 2. Find the "OpenAI-API-compatible" entry → Add Model Model type LLMModel name claude-sonnet-5 # this is what the model picker shows in Dify appsAPI endpoint https://api.everyapi.ai/v1API Key sk-everyapi-... # 3. Save. This model now appears when you select an LLM node in the Dify app editorFrom zero to your first call
- Install Dify
We recommend self-hosting via docker compose (the GitHub repo has deploy/docker-compose.yaml); you can also use the official dify.ai SaaS. EveryAPI connects to both deployment types.
github.com/langgenius/dify
- Open Model Provider settings
Dify avatar (top-right) → Settings → Model Provider → "Add Model" in the top-right of the "OpenAI-API-compatible" card.
- Fill in endpoint + key + model name
Set API endpoint to https://api.everyapi.ai/v1; set API Key to sk-everyapi-...; set the model name to the real upstream model name on EveryAPI (claude-sonnet-5, etc.). Fill in context length, function-calling support, and so on per the actual upstream model.
- Add an embedding model
Under the same provider, "Add Model" again with model type = Text Embedding; set the model name to text-embedding-3-large and fill the other fields the same way.
- Select the model in your app
Back in the Dify app editor, the models you added appear in the relevant model selector. Test the required workflow, agent, or RAG behavior with each configured model.
Dify × EveryAPI
Dify ships with standalone OpenAI / Anthropic / Google providers — why go through EveryAPI instead of configuring them separately?
EveryAPI provides one account and OpenAI-compatible endpoint for models in your live catalog. Native Dify providers may expose provider-specific capabilities, so choose the integration that matches your workflow requirements.