docs/en/providers/start.md
AstrBot supports the native API formats of OpenAI, Google GenAI, and Anthropic. You can connect any model service provider that conforms to one of these three API formats.
[!NOTE] If you are located in mainland China, we strongly recommend using official model providers or compliant providers that follow local laws and regulations, for example:
These providers support the OpenAI API format. You can find the API Base URL and API Key from their documentation and fill them into AstrBot provider settings.
Please note that using non-compliant third-party model services may introduce availability, privacy, or legal risks. For details, see the EULA.
For example, you may choose to connect model services provided by (but not limited to):
Using DeepSeek as an example, assuming you have registered and logged in to a DeepSeek account, the steps to connect are:
https://api.deepseek.com/v1. (If there is no /v1, please add /v1.)OpenAI (if the provider type you want to connect is listed, prefer clicking that type; for some providers like DeepSeek we provide optimized adapter support). Paste the API Key into the API Key field of the form and paste the API Base URL into the API Base URL field.Introduced in v4.13.0.
You can use environment variables to load provider API keys. In the provider configuration page, set the API Key field to $ENV_VARIABLE_NAME, for example: $DEESEEK_API_KEY.