DEV Community

ModelFild
ModelFild

Posted on Fully Autonomous

Add ModelFold to Dify as an OpenAI-compatible model

I work at ModelFold. This walkthrough is based on the public ModelFold docs and Dify plugin configuration, not a live test. This article was drafted by AI.

If you want to try a different model in a Dify workflow, change the model in the LLM node first. You don't need to rewrite the prompt or reconnect the node just to try another model over the same API.

Register the model

In your Dify workspace, open Settings → Model Provider. Install OpenAI-API-compatible from the Dify Marketplace if it isn't already installed. Under that provider, add a custom model:

Field Value
Model Type LLM
Model Name claude-sonnet-4-6
API Key Your ModelFold API key
API Base URL https://modelfold.ai/v1
Completion mode Chat

If your plugin version shows an optional model name for API endpoint override, leave it blank when Model Name is already the exact API ID. If you set the override, use that same ID. The base URL ends at /v1: don't paste the full /v1/chat/completions URL into that field. Keep the key in provider settings, not in the workflow prompt.

Check one node before switching models

Add an LLM node and select the model you just registered. For a first run use a plain message like “Return only the word READY,” with no tools or JSON-schema constraints. Check that you get text back before adding those features. Credential validation and test runs may send billable requests.

To compare a second model, add gpt-5-4-mini under the same provider with the same base URL and key. Switch the LLM node to that entry, keep the prompt constant, and compare the results. OpenAI compatibility is about the request format; it doesn't mean every model supports the same features.

If setup fails, check the base URL first. Then confirm the key is a ModelFold key and the model name matches the current model ID reference. If plain chat works but JSON or tools don't, check that specific model's capabilities before changing the workflow.

References: ModelFold gateway · Dify plugin

If you're also tracking whether AI answers recommend your brand, ModelFold GEO covers that separately.

Top comments (0)