I'd like to request the addition of a user-configurable API URL/base endpoint field alongside the existing OpenAI API Key and Model settings in SP Page Builder's AI configuration.
Requested Change
Add an openai_api_url field (defaulting to https://api.openai.com) to the AI settings, and replace the four hardcoded https://api.openai.com strings in the AI content generation controllers with this configurable value. This is a small change — a new settings field and a variable substitution where the base URL is currently hardcoded.
Benefits to Users
Many users rely on OpenAI-compatible API services such as Azure OpenAI, Groq, Together AI, OpenRouter, LM Studio, and self-hosted inference servers (vLLM, Ollama). These services implement the same /v1/chat/completions request/response format that SP Page Builder already uses, but the current hardcoded endpoints prevent users from connecting to them. A configurable base URL would unlock the entire OpenAI-compatible ecosystem for SP Page Builder users at virtually no development cost.
Value Proposition for SP Page Builder
SP Page Builder already demonstrates multi-provider awareness through its Gemini model routing — detecting gemini-* model names and redirecting to Google's Generative Language API. This proves the architecture can accommodate multiple AI backends. Taking the next step by making the OpenAI base URL configurable would position SP Page Builder as a truly flexible, vendor-agnostic page builder — attractive to enterprise users with Azure OpenAI commitments, privacy-conscious users running local models, and cost-sensitive users leveraging faster or cheaper inference providers. This broadens the product's appeal without abandoning the existing OpenAI-first workflow, since the default remains https://api.openai.com and the out-of-the-box experience is unchanged.
This would really differentiate and open SP Page Builder up to the AI crowd.
P.S. If you really want to go bananas, you could also create an SP Page Builder MCP server for AI to completely harness SP Page Builder for full AI control of Joomla and SP Page Builder.