Skip to main content

Overview

Images adds a frontend generator to a WordPress page. Visitors enter a prompt, choose a provider and model if those controls are visible, and receive the generated media on the page. Use it for image generation, image editing, Google video generation, logged-in user history, usage limits, logs, and connected app recipes.

Live image generator demo

Open the frontend image generator example.

Providers

See which providers support images, edits, and videos.

Generate Images

Let visitors create images from prompts.

Edit Images

Let visitors upload an image and describe changes.

Generate Videos

Use Google video models from the frontend generator.

Publish

Embed the generator with a shortcode or block.

Settings

Configure limits, UI text, custom CSS, and provider filtering.

Connected Apps

Send generated media events to external apps.

Logs

Review image, edit, and video activity.

Providers

ProviderGenerate imagesEdit imagesGenerate videosRequired setup
OpenAIYesYesNoAdd an OpenAI API key in Settings > AI, then sync models.
GoogleYesYesYesAdd a Google API key in Settings > AI, then sync image and video models.
OpenRouterYesYes, when the model supports image input and outputNoAdd an OpenRouter API key in Settings > AI, then sync models.
AzureYesNoNoAdd the Azure API key and endpoint in Settings > AI, then sync deployments.
ReplicateYesNoNoAdd a Replicate API key in Settings > Integrations, then sync models.
Set up at least one image provider before publishing the generator. If the model list is empty, configure the provider in AI Providers, sync models, then return to Images.
Image editing only works with OpenAI, Google, and OpenRouter models that support image editing.

Generate Images

To generate an image:
  1. Open a page that contains the image generator.
  2. Select the provider and model if those selectors are visible.
  3. Enter the prompt.
  4. Click Generate.
AI Puffer sends the prompt to the selected provider and displays the returned image in the results area. For logged-in users, generated images are saved to the WordPress Media Library.
Images frontend generate mode

Edit Images

Use edit mode when visitors should upload an image and describe the change they want. To enable edit mode from the Images screen:
  1. Click the settings icon next to the shortcode.
  2. Set UI Mode to Edit only or Generate + Edit.
  3. If you choose Generate + Edit, choose the Default Mode and whether to show the mode switch.
  4. Copy the shortcode.
  5. Add it to a page.
To edit an image on the frontend:
  1. Select Edit if the mode switch is visible.
  2. Select OpenAI, Google, or OpenRouter.
  3. Select a model that supports editing.
  4. Upload one source image.
  5. Enter the edit prompt.
  6. Click Edit Image.
Upload ruleValue
FilesOne source image
TypesJPG, PNG, WEBP, GIF
Maximum size10 MB
Images frontend edit mode

Generate Videos

Video generation uses Google video models. To use it:
  1. Go to AI Puffer > Settings > AI.
  2. Add the Google API key.
  3. Sync Google models.
  4. Return to AI Puffer > Images.
  5. Publish the generator shortcode or block.
  6. On the frontend, select Google and a video model.
  7. Enter a prompt and click Generate.
Video generation is an . Keep the page open while AI Puffer checks the status. Completed videos are saved as MP4 files in WordPress uploads.
Images frontend video model

Publish

Shortcode

Add the basic shortcode to any page, post, or shortcode area:
[aipkit_image_generator]
Common examples:
[aipkit_image_generator mode="both" default_mode="generate"]
[aipkit_image_generator mode="edit"]
[aipkit_image_generator history="true"]
[aipkit_image_generator show_provider="false" show_model="false" provider="openai" model="gpt-image-2"]
[aipkit_image_generator theme="custom"]
Use the shortcode settings panel when you want to build the shortcode from the UI.
  1. Go to AI Puffer > Images.
  2. Click the settings icon beside the shortcode.
  3. Choose the options you want.
  4. Copy the generated shortcode.
  5. Add it to a page or post.
Images shortcode settings
OptionWhat it controls
Show Provider SelectShows or hides the provider dropdown.
Show Model SelectShows or hides the model dropdown.
UI ModeGenerate only, Edit only, or Generate + Edit.
Default ModeThe first selected mode when both Generate and Edit are enabled.
Show Mode SwitchLets visitors switch between Generate and Edit.
Show User HistoryShows previous generated media for logged-in users.
ThemeLight, Dark, or Custom CSS.
AttributeValuesDefault
show_providertrue, falsetrue
show_modeltrue, falsetrue
provideropenai, google, openrouter, azure, replicateopenai
modelProvider model IDgpt-image-2
modegenerate, edit, bothgenerate
default_modegenerate, editgenerate
show_mode_switchtrue, falsetrue when mode="both"
historytrue, falsefalse
themedark, light, customdark
allowed_modelsComma-separated model IDsUses global Images settings
When provider or model selectors are hidden, the shortcode uses the provider and model attributes as fixed values.

Block

Use the block when you prefer the block editor.
  1. Edit a page or post.
  2. Add the AI Puffer Image Generator block.
  3. Choose whether to show provider and model selectors.
  4. Choose the UI mode.
  5. Enable history if needed.
  6. Choose the theme.
  7. Save the page.
Images block in the WordPress block editor
The block renders the same generator as the shortcode.

User History

History shows previously generated images and videos for logged-in users. To enable it, turn on Show User History in the shortcode settings panel, enable history in the block, or add history="true" to the shortcode.
ActionAvailability
Open mediaImages and videos
Delete mediaMedia owner or admin
Edit from historyImages only, when edit mode is enabled
Guest generations are not shown in user history.
Images user history

Settings

Open AI Puffer > Images, then click Settings.
Images settings panel

Limits

Limits control how much image generator usage is allowed for guests and logged-in users. Go to AI Puffer > Images, click Settings, then choose Limits.
  1. Set Guest quota.
  2. Choose Quota mode for logged-in users.
  3. Set User quota or Role-based quotas.
  4. Choose Reset period.
  5. Edit Quota reached message.
  6. Configure optional primary and secondary buttons.
Images limits settings
ValueMeaning
EmptyUnlimited
0Disabled
Positive numberMaximum allowed usage for the reset period
Reset periods are Never, Daily, Weekly, and Monthly.
For credit-based image access, define pricing rules in Usage. To sell prepaid credits, create WooCommerce credit packages in Usage.

UI Text

UI Text changes the frontend labels without editing code. Go to AI Puffer > Images, click Settings, then choose UI Text.
Images UI text settings
FieldDefault
Generate button labelGenerate
Edit button labelEdit Image
Mode tab label (Generate)Generate
Mode tab label (Edit)Edit
Generate prompt placeholderDescribe the image you want to generate…
Edit prompt placeholderDescribe how you want to edit the uploaded image…
Source image labelSource image
Upload dropzone titleDrop image here or click to upload
Upload dropzone metaJPG, PNG, WEBP, GIF up to 10MB
Upload hintUpload an image, then describe the edits in the prompt.
History titleYour Images
Results empty textGenerated images will appear here.

Custom CSS

Custom CSS applies to generators using the custom theme. Go to AI Puffer > Images, click Settings, then choose Custom CSS.
Images custom CSS settings
Use the custom theme in the shortcode:
[aipkit_image_generator theme="custom"]
Then target the custom wrapper:
.aipkit_image_generator_public_wrapper.aipkit-theme-custom {
  /* custom styles */
}

Provider Filtering

Provider filtering controls which models visitors can select when the frontend provider or model selectors are visible. Go to AI Puffer > Images, click Settings, then choose Provider filtering.
  1. Select the models visitors can use.
  2. Leave all models unselected if you want to allow every configured image and video model.
  3. Save the settings.
Images provider filtering settings
AI Puffer builds the frontend provider list from the selected . For example, if you only select OpenAI models, the frontend provider selector only shows OpenAI. You can override the global setting for one page with the allowed_models shortcode attribute.

Connected Apps

Connected Apps can run a recipe after a successful image or video generation.
  1. Go to AI Puffer > Settings > Apps.
  2. Connect the app or webhook destination.
  3. Create a recipe that uses the Image Generated event.
  4. Publish the image generator on a page.
  5. Generate an image or video to test the recipe.
AI Puffer emits image.generated after the output is complete. For payload fields, see Event Webhooks.

Logs

Image and video requests are logged with the module set to image_generator. Logs can include the prompt, provider, model, mode, usage, WordPress user, guest session, and edit source image metadata. Source image binary data is not stored in the log. Usage operations:
OperationUsed for
generateImage generation
editImage editing
video_generateGoogle video generation

Troubleshooting

Check that Images is enabled in AI Puffer > Dashboard and that the shortcode is on a published page. Admin users may see a module-disabled message; visitors see empty output.
Configure the provider in AI Puffer > Settings > AI or Settings > Integrations, sync models, then reload the Images screen. If Provider Filtering is enabled, confirm that the selected models still exist.
Use OpenAI, Google, or OpenRouter. The selected model must support image editing, and the visitor must upload one JPG, PNG, WEBP, or GIF image under 10 MB.
Google video generation can take time. Keep the page open while AI Puffer checks the operation status. If it times out, try a shorter prompt and review the related log entry.
History only appears for logged-in users. Enable Show User History in the shortcode settings panel, enable history in the block, or add history="true" to the shortcode.
Open AI Puffer > Images > Settings > Limits and review the guest, user, or role-based quota. If you sell credits, also check the user’s balance and the pricing rules in Usage.