FAQ

Frequently Asked Questions

How to create unlimited AI images for free on WordPress using CloudFlare Workers?

Want to generate AI images in Aimogen Pro for free without relying on expensive external APIs? You can do it using Cloudflare Workers AI in just a few minutes.

First, visit the Cloudflare Dashboard and log into your account. If you don’t already have one, create a free account first.

From the left menu, go to Compute -> Workers & Pages.

image

Click the “Create application” button, then choose “Start with Hello World”.

image

Deploy the worker once so Cloudflare creates the project for you.

image

After deployment, open your worker and click “Overview”.

image

Click “Add Binding”.

image

Click “+ Binding”.

image

Select “Workers AI” from the list and click ‘Add Binding’.

image

Give it a name, like ‘AI’ and click ‘Add Binding’.

image

Now return to the worker editor and click “Edit Code”.

image

Replace the default code with the custom image generation API code from here.

image

After pasting the code, deploy the worker again.

Next, open the “Settings” tab of the worker and go to “Variables and Secrets”.

image

Create a new secret variable named:

API_KEY

Set any secret value you want. This will be used by Aimogen Pro to authenticate requests to your worker. But be sure to remember what you entered here.

image

Once done, open your deployed worker URL from the browser. It should look similar to:

https://your-worker-name.your-subdomain.workers.dev

Copy this URL.

Now go to your Aimogen Pro dashboard inside WordPress and open the AI Images settings section.

Set in plugin’s ‘Settings’ -> ‘API Keys’ tab:

  • Cloudflare Worker URL -> your Worker URL
  • Cloudflare Worker Secret -> the secret value you created earlier

Save settings.

That’s it. Aimogen Pro can now generate AI images using your own free Cloudflare Workers AI endpoint.

Get 25% OFF on any yearly plugin plan using this coupon:   wpbay-yearly-25off

CodeRevolution Knowledge Base

Video tutorials