If you are unable to access OpenAI or wish to explore alternative models, Breakdance provides several filters to modify the model and select a different AI provider.
Here is a list of different providers, with a link to their available models.
Note that Breakdance exclusively offers official support for OpenAI integration and its associated model options. If your chosen model doesn’t function as expected, consider switching to a different one.
Table Of Contents
Instructions
Simply add the PHP snippet in a snippet manager, like WPCodeBox

Deepseek
DeepSeek is an exceptionally affordable, open-source AI model that allows users to leverage and customize its capabilities without the high costs typically associated with proprietary models like those from OpenAI. This emphasis on low pricing and open accessibility positions DeepSeek as a compelling alternative for users seeking flexible AI solutions.
function override_breakdance_ai_endpoint($url) {
$url = 'https://api.deepseek.com';
return $url;
}
add_filter('breakdance_ai_api_endpoint', 'override_breakdance_ai_endpoint');
function override_breakdance_ai_model($model_version, $model) {
$model_version = 'deepseek-chat';
return $model_version;
}
add_filter('breakdance_ai_model', 'override_breakdance_ai_model', 10, 2);
OpenRouter
OpenRouter AI boasts a diverse library of over 300 models that are continuously updated to ensure users have access to the latest advancements in AI technology. Additionally, it is designed to be accessible from any location, allowing users to leverage these models even in regions where certain models may not be officially supported, thereby expanding the reach and usability of AI solutions globally.
function override_breakdance_ai_endpoint($url) {
$url = 'https://openrouter.ai/api';
return $url;
}
add_filter('breakdance_ai_api_endpoint', 'override_breakdance_ai_endpoint');
function override_breakdance_ai_model($model_version, $model) {
$model_version = 'google/gemini-2.0-flash-001';
return $model_version;
}
add_filter('breakdance_ai_model', 'override_breakdance_ai_model', 10, 2);
Mistral AI
Mistral AI differs from OpenAI not only by focusing on open-weight language models but also as a European company based in France, which allows it to navigate the unique regulatory landscape of the EU, emphasizing transparency and ethical considerations in AI development that reflect the distinct cultural and legal framework of Europe.
Mistral provides two types of models, free models and premier models:
https://docs.mistral.ai/getting-started/models/models_overview/
function override_breakdance_ai_endpoint($url) {
$url = 'https://api.mistral.ai';
return $url;
}
add_filter('breakdance_ai_api_endpoint', 'override_breakdance_ai_endpoint');
function override_breakdance_ai_model($model_version, $model) {
$model_version = 'mistral-small-latest';
return $model_version;
}
add_filter('breakdance_ai_model', 'override_breakdance_ai_model', 10, 2);
For more detailed information, please refer to the following resource: https://github.com/soflyy/breakdance-developer-docs/blob/master/hooks/ai-endpoints.md