APIMaster.ai

Dify + APIMaster.ai

Add APIMaster as an OpenAI-API-compatible model provider in Dify settings.

Dify is a visual agent and workflow platform. APIMaster.ai exposes an OpenAI-compatible API — add it under OpenAI-API-compatible in Dify model settings.

Get your API Key first. Copy the model id from the APIMaster marketplace (e.g. deepseek-v4-flash).


Prerequisites

  1. A Dify account (cloud or self-hosted).
  2. An APIMaster API Key from the console.
  3. A target model id copied from the marketplace.

Step 1 — Open Model Provider settings

  1. Log in to Dify and open Settings.
  2. Select Model Provider in the sidebar.

Settings → Model Provider


Step 2 — Install OpenAI-API-compatible

Under Install model provider, find OpenAI-API-compatible.

  1. Install the provider if needed.
  2. Click + Add model on the OpenAI-API-compatible row.

APIMaster uses the OpenAI-compatible protocol — use this card, not the native OpenAI card.


Step 3 — Credentials and model name

Field Value
Model name * Marketplace model id, e.g. deepseek-v4-flash
Model type * LLM
Credential name APIMaster.ai
Model display name Same as model id or a friendly label
API Key Your APIMaster key

Add model — credentials

The model name must match the marketplace id exactly.


Step 4 — API endpoint

Field Value
API endpoint URL * https://apimaster.ai/v1
Model name in API endpoint * Same id, e.g. deepseek-v4-flash
Chat type Chat
Context length * e.g. 4096 (adjust per model)
Max tokens e.g. 4096
Reasoning mode Both if the model supports thinking; otherwise chat-only

Add model — endpoint

Click Add.


Step 5 — Enable the model

The new model appears under OpenAI-API-compatible (e.g. deepseek-v4-flash · LLM · CHAT · 4K).

  1. Turn the switch on.
  2. If prompted, set Default model settings to your APIMaster model.
  3. Repeat + Add model for additional marketplace ids.

Model added


Step 6 — Use in an app

  1. Open a Chatbot / Agent / Workflow in the studio.
  2. Pick your APIMaster model in the model selector.
  3. Run a test message.

Troubleshooting

Issue Fix
401 Check API Key
404 model not found Re-copy model id from marketplace
Default model warning Settings → Default model settings

Related