Image editing and upscaling

Editing and upscaling images with Aimogen Pro using Stable Diffusion, including background removal, inpainting, outpainting and search-and-replace.

Aimogen Pro can modify existing images, not only generate new ones. Both features are powered by Stability.AI and were added in 2.8.8.

They appear in the Media Library, in editor templates, as chatbot extensions, and through the image editor shortcode.

Requirements#

A Stability.AI API key under Settings › API Keys › Stability.AI API Keys.

Editing modes#

ModeWhat it doesTypical use
remove-backgroundIsolates the subject, removing the backgroundProduct photos on a clean page
replace-backgroundSwaps the background for a generated onePlacing a product in a scene
search-and-replaceFinds an object described in words and replaces itChanging one element without redrawing
search-and-recolorFinds an object and changes its colourProduct colour variants
inpaintRegenerates a regionRemoving an unwanted object
outpaintExtends the image beyond its edgesChanging aspect ratio without cropping
eraseRemoves a regionCleaning up artefacts

Default Edit Mode sets which is offered first where a mode selector appears.

Search-based modes take a description rather than a mask — "the red mug" — which makes them far quicker to use than mask-based editing, at the cost of precision.

The WordPress Media Library with an image selected

Upscaling#

Increases resolution while adding plausible detail.

ModeCharacter
fastQuickest, lowest cost
conservativePreserves the original closely
creativeAdds more invented detail. Better on low-quality sources, less faithful

Default Upscale Mode sets the default.

Use conservative for product photography and anything where accuracy matters — creative upscaling will invent details that are not in the original.

Use creative for illustrative or decorative images where a low-resolution source needs to look good at a larger size.

Where you can use it#

Media Library. Select an image and use the edit or upscale panel. See Media Library tools.

AI Content Editor. An editor template can edit the featured image or images inside the content:

SettingWhat it does
Featured Image Editing EngineWhich engine edits the featured image
Prompt To Send To The AI Image EditorThe edit instruction
Original Image StrengthHow much of the original is preserved
Content Image Editing EngineThe same for in-content images
Maximum Number Of Images To Edit From A Single Post ContentBatch limit per post

Chatbot. god_mode_enable_stable_edit and god_mode_enable_stable_upscale let visitors ask the bot to edit or upscale.

Front end. [aimogen-image-editor-form] renders an editor for visitors. There is also an Aimogen Stable Image Editor Gutenberg block.

Original Image Strength#

Where an edit uses the original as a starting point, this controls the balance:

ValueResult
Close to 1Output very similar to the original
MiddleA blend
Close to 0Output very different, effectively a new image guided by the original

The plugin help text describes it as mirroring the DreamStudio image-strength behaviour.

Cost#

Editing and upscaling are billed like generation — per operation, per image. Upscaling to a large size costs more than a standard generation.

Bulk-editing every image in an archive is expensive. Test on a handful, read the cost in System & Logs › Usage Logs, then decide.

Common problems#

The edit panel is missing. No Stability.AI key configured.

Search-and-replace did not find the object. Describe it more distinctively — "the red ceramic mug" rather than "the mug".

The upscale looks wrong. Creative mode on a source where accuracy matters. Use conservative.

Background removal left artefacts. Common with hair, glass and fine detail. This is a limitation of the technique, not a configuration problem.

Edits fail on large images. Provider size limits. Resize first.

Still stuck? Open a support ticket and include the diagnostics from Aimogen Pro › System & Logs › System Info.