AI Provider for Azure AI Foundry
·
Connect WordPress to Azure AI Foundry for text generation, image generation, embeddings, and more.
AI Provider for Azure AI Foundry registers an AI provider with the WordPress 7.0 AI Client, enabling text generation, image generation, embeddings, and text-to-speech via the Azure AI Foundry Model Inference API.
Features
- AI Client integration — usable via
wp_ai_client_prompt()and the Settings → Connectors page. - OpenAI-compatible — uses the Azure AI Foundry
/chat/completionsendpoint. - Capability detection — auto-detects deployed models and capabilities (text generation, chat history, image generation, embeddings, text-to-speech) by probing the Azure endpoint.
- Multiple endpoint types — supports Azure AI Services, Azure OpenAI, and Cognitive Services endpoints.
- Auto-detection — discovers all deployed models via POST-based probing. No manual model name or API version configuration needed.
- Custom authentication — sends the
api-keyheader required by Azure. - Endpoint validation — validates Azure endpoint URLs with inline error messages.
- Environment variable fallback — every setting can be overridden via environment variables or
wp-config.phpconstants. - Connectors page UI — custom connector with fields for API key and endpoint URL. Detected deployments and capabilities displayed as read-only chips.
Requirements
- WordPress 7.0 or later
- PHP 8.3+
- An Azure AI Foundry resource with a deployed model
Documentation
- Building an AI Provider Plugin for WordPress 7, a deep-dive into provider registration, settings, authentication, and the Connectors page UI.