OpenAI can be used in WordPress easily with plugins. I have written an article and did a video where we go and see how we can see OpenAI API directly in WordPress to write articles or to add a ChatGPT tool on our website + DALL-E 2 image generated: