Skip to main content
Dify connects to Global AI through the built-in OpenAI-API-compatible provider, giving your apps and workflows access to every supported reasoning model.
1

Open settings

In Dify, click your avatar in the top-right corner and choose Settings.
2

Install the OpenAI-API-compatible provider

Under Model Provider, find OpenAI-API-compatible and click Install.
3

Add a model

After installing, click Add Model inside the OpenAI-API-compatible provider and fill in:
  • Model name: copy a model ID from globalai.vip/pricing, for example gpt-4o
  • API endpoint URL: https://globalai.vip/v1
  • API Key: paste your sk- token
Leave the remaining fields at their defaults and save.
4

Set the system reasoning model

Back in System Model Settings → System Reasoning Model, select the model you just added and save.
5

Use it in an app

Return to your Dify app and pick the model in a workflow node or orchestration. A successful response confirms the integration.

Add multiple models

If an app needs GPT, Claude, and Gemini side by side, repeat the Add Model step inside the same OpenAI-API-compatible provider. Create one record per model ID and reuse the same API key across all of them.
Claude and Gemini come from different vendors, but Global AI exposes both in OpenAI-compatible format, so both work through the OpenAI-API-compatible provider. Just keep the model ID identical to the one on the pricing page.

Troubleshooting

Confirm the API endpoint URL is https://globalai.vip/v1 (including /v1) and that there are no extra spaces around your key.
A Dify workflow can call the model several times per run, and long prompts plus retrieved context all count as tokens. Filter Logs by token name to find the node consuming the most.