WordPress 7.0 ships a built-in AI Client: a PHP API that routes image and text generation requests to whichever provider the site owner has configured. This tutorial walks through building a working image generation plugin on top of it. https://developer.wordpress.org/news/?p=6094









