Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Use AI to Generate Images in WordPress

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Do you want to use artificial intelligence tools like DALL.E to generate images in WordPress?

AI-generated images can be a good alternative to create images for your WordPress blog posts without worrying about copyright.

In this article, we will show you how to use AI to generate images in WordPress.

Using AI tools like DALL.E to make images for WordPress websites

Why Use AI Tools to Generate Images for Your WordPress Website?

There are a ton of paid stock image websites offering images to use on your WordPress website for a small fee.

However, the cost of these images is an extra expense. Most bloggers and small businesses don’t have the budget for that.

There are certainly many websites that offer royalty-free images like Unsplash or Shutterstock‘s limited free library.

But those images are highly overused and often too generic.

Now, the best way to create images for your website is by making your own images or using your own photographs. But not everyone is a professional photographer or digital artist.

This is where artificial intelligence comes in.

AI tools like DALL.E can generate unique artwork from text descriptions provided by the users.

These images are not only unique but highly creative and artistic.

For instance, here is an image of an office desk with a sunset backdrop generated by DALL.E 2. It mimics the style of generic stock image photos that you can find on hundreds of websites.

DALL.E 2 mimicking generic stock photo style

Now, take a look at this example of an artwork created by DALLE.2.

This one is artistic, more colorful, and in a comic book style.

DALL.E comic book style artwork

You can see the variety of styles, topics, and ideas you can use on the DALL.E homepage.

The best part is that you are free to use these images for your blog posts, articles, and even landing pages.

That being said, let’s take a look at how to easily use AI-generated images in WordPress.

We will be showing you three methods using three different AI tools; you can choose one that works best for you by clicking on the quick links below:

1. Generate AI Images for WordPress with DALL.E 2

DALL.E 2 is an artificial intelligence tool made by OpenAI. It is quite popular for its artistic rendering, surrealism, creativity, and versatility.

Built on the GPT-3, it is a text-to-image model using deep learning technologies to generate images from natural language descriptions.

It is similar to ChatGPT, which also uses GPT-3 but responds in text. In the generative AI industry, these descriptions are called prompts.

You can create AI images on the DALL.E 2 website and download them to your computer. After that, you can upload those images to your WordPress website.

First, you need to visit the DALL.E 2 website and sign up for a free account, which gives you 50 credits for your first month.

Upon signing up, you’ll see the DALL.E dashboard with a prompt field and some recent artworks generated by DALL.E.

DALL-E dashboard

In the prompt field, type a text description of the image you want to generate. You can be as descriptive and creative as you like.

Click on the ‘Surprise Me’ button to see some examples of prompts you can generate.

Once you click on the ‘Generate’ button, the AI will generate images based on the prompt you provided and show you four results.

Images generated using the prompt

You can download all of them to your computer if you want. You can also click on any of the generated images to edit them.

The image editor in DALL.E allows you to expand the frame or pan in. You can also erase or retouch an area of the image.

Edit image in DALL.E 2

Click on the ‘Generate’ button again for AI to regenerate the image based on your changes.

Once you have downloaded the images to your computer, you can switch back to the admin area of your WordPress website.

You can now upload the image to your WordPress media library by visiting the Media » Add New page.

Upload image to WordPress media library

You can also add an image directly to your WordPress posts and pages. Simply edit the post or page where you want to display the image.

On the post edit screen, add the Image block and then upload the image from your computer.

Adding image to WordPress post and pages

Automatically Generate AI Images in WordPress with DALL.E and Uncanny Automator

If you are looking for a plugin to integrate DALL.E 2 directly with your WordPress website, then you can use Uncanny Automator.

Uncanny Automator is one of the best WordPress automation tools on the market. It offers support for OpenAI’s GPT and DALL-E models to easily generate AI text content and images in WordPress.

You can use the simple recipe builder to create an automation that uses a WPForms submission form to send text and image prompts to GPT and DALL-E.

Send OpenAI text and image prompts using a submission form with Uncanny Automator

Then, you can create a new post in WordPress using Uncanny Automator’s tokens to automatically pull the data from the text and image generation.

For example, you can use a response token to set the featured image as the AI image you created:

Use Uncanny Automator action token to set featured image as AI generated image

This will turn the text and image prompts from your submission form into a new blog post in just a few clicks.

Uncanny Automator even adds the DALL-E image directly to your WordPress media library, so you don’t need to do it manually.

AI generated blog text and featured image using Uncanny Automator

For more details, see our guide on how to create automated workflows in WordPress with Uncanny Automator.

What is the License Used for Images Generated by DALL.E 2?

You retain the copyright for the images generated by the prompt you provided to DALL.E 2.

You can use the images anywhere you want, including your WordPress website, YouTube videos, eBooks, magazines, and more.

2. Use SeedProd to Generate AI Images in WordPress (Premium Plugin)

For the first method, we will use SeedProd to easily generate AI images in WordPress.

SeedProd is the best drag-and-drop theme builder for WordPress. It allows you to create custom WordPress themes, page layouts, and landing pages without coding.

It also comes with a powerful AI Assistant that uses DALL-E to help you generate AI images in just a few clicks.

To get started, you need to install and activate the SeedProd plugin. If you need help, see our guide on how to install a WordPress plugin.

Note: There is a free version of SeedProd available. However, you need to buy the premium version of SeedProd to access the AI Assistant. You’ll also need to buy AI credits by clicking the link in your SeedProd account dashboard.

Once the plugin is activated, you can use the drag-and-drop builder to create a custom WordPress theme or landing page. For step-by-step instructions, you can follow our tutorials:

Then, you can use the AI Assistant to generate original images for your website pages.

Simply edit the page, drag an Image block from the panel on the left-hand side, and drop it into the live preview area on the right.

Add an Image block in SeedProd

Next, click on the Image block to open up the block settings panel on the left side of the screen.

Then, click on the ‘Add with AI’ button.

Click the Add with AI button

This will open the image prompt panel. Here, you can type a description of the image you want to create for your site or use one of the suggested prompts.

After that, click on the ‘Generate Image’ button.

Type a description of the image you want to generate

SeedProd will take a few seconds to generate the image.

When it’s done, you’ll see a preview of the image, and you can click the ‘Insert’ button to add it to your page.

Insert the AI image generated by SeedProd

After the image has been added to your page, you can also edit the AI image and generate variations of the same image.

Just click on the generated image from the SeedProd builder and select ‘Edit with AI’ in the block settings panel.

Edit image with AI

Next, you’ll see the different editing options that are available.

First, click on the ‘Variations’ button.

Options for editing AI generated images with SeedProd

From there, hit the ‘Generate Variations’ button.

This will tell the AI Assistant to create multiple variations of the image.

Click the Generate Variations button

If you like one of the variations better than the original AI-generated image, you can click the ‘Insert’ button to add it to your page.

Otherwise, you can select the ‘Back’ button to keep the original image and return to the edit options screen.

SeedProd will create multiple variations of your AI image

The ‘Edit Image’ option allows you to use a brush tool to edit specific areas of the image. Simply erase the area that you want to edit and alter your original prompt to describe the changes you want to make.

Then, click the ‘Generate new image’ button.

Erase an area of the AI image and edit it with a new prompt

After a few seconds, SeedProd’s AI Assistant will show you two variations of the image with the changes you described.

You can click on the ‘Insert’ button underneath the variation you like the most to add it to your page.

Insert edited AI image

Once you are happy with the image, just hit the ‘Save’ and ‘Publish’ buttons.

You can find them in the top right corner of the SeedProd builder.

Save and publish your changes

Now, your AI-generated image will be displayed on your WordPress website.

Here’s how it looked on our demo site:

Example of AI generated image created with SeedProd

What is the License Used for Images Generated by SeedProd?

You own the images you create with SeedProd’s AI Assistant.

You’re free to use the AI-generated images anywhere on your WordPress site.

3. Use Imajinn to Generate AI Images in WordPress (Free Plugin)

For this method, we will use Imajinn AI to generate images in WordPress.

Imajinn AI is similar to tools like DALL.E 2, Midjourney, and Stable Diffusion. It generates images using artificial intelligence based on the prompt you provide.

First, you need to install and activate the Imajinn plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Note: The base plugin is free and gives you 10 credits. After that, you can buy more credits from the plugin’s website.

Upon activation, you need to visit the Media » Imajinn AI to configure plugin settings and generate images.

First, you need to sign up by providing an email address and password to create your account.

Register free account

After that, you will be able to start generating images using Imajin AI.

Simply provide a detailed prompt describing the image that you want to generate.

You can also choose from a list of styles, artist style, style modifier filters, and aspect ratio to further customize your prompt.

Image prompt

Below that you can choose to click on the ‘Summon’ button to launch the Prompt Genie tool.

The tool will suggest further prompt ideas based on the prompt description you provided to generate the best possible image.

Prompt genie

You can click on the ‘Generate’ button to use a suggested prompt, or continue writing your own prompt by copying ideas from the suggestions.

Once you are satisfied, click on the ‘Generate’ button to continue.

The plugin will now start generating images using the AI tool running on the cloud. Once finished, it will display four variations of images for you to choose from.

Imajinn generated images

Below each image, you’ll find options to share the image, repair faces (The AI is not great at generating human faces), or touch up the image.

You can also just click on the ‘Save’ button to store an image in your WordPress media library.

image toolbar

To use the image in your WordPress posts and pages, simply edit the post or page where you want to add the image.

On the post-edit screen, add the Image block where you want to display the image and then click on Media Library.

Adding image to your post and pages

Next, you need to select the image you saved earlier from your Media Library and provide an alt text for the image.

After that, go ahead and click on the ‘Select’ button to insert the image.

Image added to WordPress post

The plugin also comes with an Imajinn block that you can add to your posts or pages.

It allows you to generate an image inside the block editor.

Imajinn block

What is the License Used for Images Generated by Imajinn AI?

All images generated by Imajinn AI are provided under the free domain or CC0 license.

You are free to use them on your website as you see fit.

Bonus Resources:

AI can be used to help you write content, create images, and more. Here are some more resources to upgrade your AI skills:

We hope this article helped you learn how to use Artificial Intelligence to generate images for your WordPress website. You may also want to see our ultimate image SEO guide and these easy tips to optimize images for speed.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

10 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Mrteesurez says

    Good, but I heard Google may not rank the generated AI Images of search page especially in image search results tab. Is this true ?

    • WPBeginner Comments says

      If the images are relevant to the content and are not copying someone else’s work, then the ranking should not have any negative impacts.

    • Jiří Vaněk says

      Google currently doesn’t have any tools to distinguish what was generated by AI and what was done by a person in Photoshop. Google doesn’t have such perfect technology. Additionally, as mentioned, it’s about the relevance of the content, not whether the image is from a stock photo, from AI, or if you made it yourself.

  3. Soms says

    thanks for the article.
    can we olso optimize an image create by an AI before loading it into WordPress or we can load it directly after been generated by the AI?
    Thanks

    • WPBeginner Support says

      The images would be added to your site but there are plugins to optimize images after they have been uploaded to your site of the images are too large :)

      Admin

  4. Mrteesurez says

    AI is unarguably making blogging stuffs easier and faster. That means I can just be generating images directly from my WordPress site, this is incredible.

    But can we use the plugin Imajinn AI to write text over that image for SEO benefits ??

    • WPBeginner Support says

      Unless we hear otherwise the Imajinn plugin is not currently designed for adding text to the images, you would need to manually add the text into the image with an image editor.

      Admin

  5. Moinuddin Waheed says

    it’s good to see that we can create our own image by artificial intelligence tools for our websites.
    Imajinn ai plugin gives the ability to generate ai images directly inside the dashboard, how can we optimize this image right there for its size and other features?
    does it come with such options or we would need to go manual way of resizing and reducing the file size and also what about different file formats? does it gives such options?
    Thanks for the guide for making image options for websites easy.

    • WPBeginner Support says

      Unless we hear otherwise, the plugin does not currently allow for you to pick specific file types or sizes, you would need to use an image optimization plugin for now.

      Admin

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.