---
title: "How to Use the AI Image Generator of Nexter Blocks?"
url: https://nexterwp.com/docs/ai-image-generator/
date: 2026-01-22
modified: 2026-09-28
lang: en
author: "Aditya Sharma"
description: "Finding a stock photo that matches a layout takes longer than it should, and the result usually looks like stock. The AI image generator creates one from a description, inside..."
image: https://nexterwp.com/wp-content/uploads/2026/01/How-to-Use-the-AI-Image-Generator-of-Nexter-Blocks-1024x538.jpg
word_count: 643
---

# How to Use the AI Image Generator of Nexter Blocks?

## Key Takeaways

- Nexter Blocks generates AI images directly inside the Gutenberg editor, so there is no need for external tools or separate image uploads.
- Nexter Blocks supports AI image generation with OpenAI and Google Gemini API, and the Manage API Keys setting is enabled from Nexter > Extra Options > AI Integration.
- Advanced Image, Button, and Flip Box are named as image-related blocks that show the Generate With AI icon for image generation.
- OpenAI image generation in Nexter Blocks uses options like Number of Images, Image Type, Style, Choose Model, Aspect Ratio, and Image Quality, with DALL E 3 limited to one image and other models allowing up to 10.
- Google Gemini image generation in Nexter Blocks uses the same block workflow and adds Max Image Tokens per Prompt, with Gemini 2.5 Flash Image generating up to 10 images and quality options of 1k, 2k, or 4k.

Finding a stock photo that matches a layout takes longer than it should, and the result usually looks like stock. The AI image generator creates one from a description, inside the editor.

As with text, it uses your own OpenAI or Google Gemini account.

## Before You Start

- **An API key of your own**, from OpenAI or Google Gemini, on a plan that allows image generation.

- **You have to be an administrator.** Measured across four roles: the AI endpoints require the `manage_options` capability, which administrators have and editors, authors and subscribers do not. An editor cannot generate AI content.

- **The AI integration switched on** in Nexter's settings.

## Required Setup

![](https://nexterwp.com/wp-content/uploads/2026/01/enable-manage-api-keys.webp)

![](https://nexterwp.com/wp-content/uploads/2026/01/api-key-popup.webp)

Enable the integration and add your provider key.

![](https://nexterwp.com/wp-content/uploads/2026/01/open-ai-api-key-1.webp)

![](https://nexterwp.com/wp-content/uploads/2026/01/open-ai-api-key-2.webp)

![](https://nexterwp.com/wp-content/uploads/2026/01/open-ai-api-key-3.webp)

## How Your Key Is Stored

- **Your API key is stored encrypted.** Measured: the settings are written as an encrypted blob and decrypted when used, so the key is not sitting in the options table in readable form.

- **You have to be an administrator.** Measured across four roles: the AI endpoints require the `manage_options` capability, which administrators have and editors, authors and subscribers do not. An editor cannot generate AI content.

- **It costs your visitors nothing.** Measured: the AI layer is loaded only inside wp-admin or on its own REST endpoints, so no AI code runs on a front-end page view.

## Generating An Image

![Nexter Blocks AI: the API Key dialog on the OpenAI tab with the key field, Verify button, Text and Image Generation switches and the model settings](https://nexterwp.com/wp-content/uploads/2026/09/ai-api-key-openai.webp)

![Nexter Blocks AI: the Custom Context dialog with the About Business and About Target Audience fields](https://nexterwp.com/wp-content/uploads/2026/09/ai-custom-context.webp)

![Nexter Blocks AI: the AI Image Generator dialog with a prompt, Image Type, Style, Dall E 3 model, Aspect Ratio and Image Quality fields (integration not yet enabled, so a warning is shown)](https://nexterwp.com/wp-content/uploads/2026/09/ai-image-generator-settings.webp)

- **Generated images are saved into your media library** through a dedicated endpoint, so they behave like any other upload afterwards.

- **Measured default model:** `dall-e-2` for OpenAI, with `dall-e-3` selectable. Google's Imagen models are handled through a separate call.

- **Requests go directly from your site to the provider** — measured as OpenAI's image generations endpoint and Google's generative language endpoint.

- **If you enable both providers, Gemini is used.** Measured from the selection logic: Gemini is checked first, and OpenAI is only reached when Gemini is off or has no key. Enabling both does not load-balance or fall back.

## Editing And Regenerating

![Nexter Blocks AI: the AI Image Generator dialog opened on an existing image, offering Expand, Generative Fill, Resize and Variations](https://nexterwp.com/wp-content/uploads/2026/09/ai-image-edit-options.webp)

![Nexter Blocks AI: the Expand Image panel with the Expansion Scale and Aspect Ratio options](https://nexterwp.com/wp-content/uploads/2026/09/ai-image-expand.webp)

![Nexter Blocks AI: the Generative Fill panel with a brush size control and a prompt field](https://nexterwp.com/wp-content/uploads/2026/09/ai-image-generative-fill.webp)

A generated image can be regenerated, edited, expanded or varied without leaving the editor.

- **Each of those is its own operation** — measured as separate endpoints for editing, expanding, resizing and variations — and each one is a fresh billed request to your provider.

- **Prompt enhancement is also a request.** Improving a prompt costs a call before you have generated anything.

![Nexter Blocks AI: the Resize panel with an Image Resolution selector](https://nexterwp.com/wp-content/uploads/2026/09/ai-image-resize.webp)

![](https://nexterwp.com/wp-content/uploads/2026/01/google-gemini-api-key-1.webp)

## Using Google Gemini

![](https://nexterwp.com/wp-content/uploads/2026/01/google-gemini-api-key-2.webp)

![](https://nexterwp.com/wp-content/uploads/2026/01/google-gemini-api-key-3.webp)

![Nexter Blocks AI: the API Key dialog on the Google Gemini tab with the key field, Verify button and model settings](https://nexterwp.com/wp-content/uploads/2026/09/ai-api-key-gemini.webp)

Gemini is configured the same way, with its own key and model selection.

## Limitations

- **What this page verified, and what it did not.** Setup, permissions, storage, provider selection and the exact failure messages were measured on a site with no API key. Generation itself was not exercised, so nothing here describes output quality, token cost or rate limits.

- **You pay the provider directly**, per image and per edit, with no running total shown in the editor. Image generation is materially more expensive than text.

- **Administrators only.**

- **Generated images still need alt text.** Nothing writes it for you, and an image without it is inaccessible.

- **Check the licence terms of your provider** for commercial use of generated images. That is between you and them; this plugin does not alter it.

- **Model names change.** The defaults here are current to this version.

## Troubleshooting

### The AI options are not in the editor

The integration is not enabled, or you are not an administrator.

### Generation fails immediately

With nothing configured, image generation reports `Settings not found` while text reports `No AI service is enabled or API key is missing`. Both mean the same thing: add a key and enable the provider.

### The image generated but is not in my media library

Saving is a separate step from generating. Check that the save completed, and that the user has permission to upload files.

### I set an OpenAI key but Gemini is being used

Gemini takes precedence when both are enabled.

## Related Docs

- [AI text generator](https://nexterwp.com/docs/ai-text-generator/)

- [Generate price-optimized AI images](https://nexterwp.com/docs/generate-price-optimized-ai-images/)

- [Cross-domain copy paste](https://nexterwp.com/docs/add-cross-domain-copy-paste-for-free-in-wordpress/)

- [Advanced tab settings](https://nexterwp.com/docs/use-advanced-tab-in-nexter-blocks/)