

Settings > Connectors screen showing Hugging Face connected with API key.
This plugin registers Hugging Face as an AI provider for the WordPress AI Client introduced in WordPress 7.0. It enables text and image generation through Hugging Face’s Inference API using popular open-source models.
Features:
wp_ai_client_prompt()wp_ai_client_prompt()->generate_image()hugging_face_ai_provider_models and hugging_face_ai_provider_image_models filtersUsage:
$result = wp_ai_client_prompt( 'Summarize the benefits of caching.' )
->using_temperature( 0.7 )
->generate_text();
// Generate an image
$image = wp_ai_client_prompt( 'A futuristic WordPress logo in neon colors' )
->generate_image();
This plugin connects to the Hugging Face Inference API to provide AI-powered text and image generation capabilities within WordPress. The Hugging Face Inference API is a third-party service operated by Hugging Face, Inc.
Data is only sent when the plugin is actively used to generate text or images, or when loading the model list on the admin settings page.
All API communication is routed through https://router.huggingface.co and https://huggingface.co/api.