1. Get an API Key
Open the Anyfast console and sign up (or log in if you already have an account). After signing up, go to API Keys, create a new API Key, and copy it for later use.2. Use Anyfast language models in Dify
2.1 Add Anyfast as a model provider
In Dify, go to Settings → Model Provider in the top-right menu. Click Add Custom Provider and choose OpenAI API-compatible. Fill in the connection details:- Model Name: Select from the Anyfast model list (e.g.,
gpt-4o,claude-opus-4-7) - API Key: Paste the API Key from the Anyfast console
- API Endpoint URL:
https://www.anyfast.ai/v1
2.2 Use models beyond the built-in list
For models not listed in the default provider menu, use the OpenAI API-compatible provider option:- Open Dify Settings → Model Provider
- Add an OpenAI API-compatible provider
- Fill in the model name, API Key, and endpoint as described above
3. Use Anyfast image generation models in Dify
Anyfast image models (likewan2.7-image-pro) can also be accessed in Dify via the OpenAI-compatible image endpoint. Configure them the same way using the /v1 base URL.