Dify
Use APIClaw inside Dify with the OpenAI-API-compatible model provider plugin.
Prerequisites
- Create an API key in the API Keys dashboard.
- Copy a full model ID from the model hub.
- Make sure Dify can reach
https://apiclaw.biz(from Docker, do not uselocalhoston the host).
Configure
- Open your Dify workspace → Integrations → Model Provider (older builds: Settings → Model Providers).
- Install / enable the OpenAI-API-compatible plugin if it is not already present.
- Add a model and paste this API Base URL:
text
https://apiclaw.biz/v1- Enter:
| Setting | Value |
|---|---|
| Model type | LLM |
| Model name | Full model ID from the model hub |
| API Key | Your APIClaw API key |
| API Base URL | https://apiclaw.biz/v1 |
| Completion mode | Chat |
| Model context size | Your model's real context window |
| Upper bound for max tokens | Your model's real output limit |
| Function Call Type | tool_call |
| Vision Support | On, if you send images |
Function Call Type defaults to "Not Support", so agents and tool calling fail silently until you set it. The two size fields default to Dify's generic values, which truncate prompts and memory on a model whose real window is larger.
- Save and enable the model for your workspace.
For some non-LLM modalities the plugin may append /v1 itself. If embeddings or speech endpoints 404, try the site root for those model types only:
text
https://apiclaw.bizVerify
Use Dify's model test / preview, then confirm the request in logs.