Select an area in Photopea, generate an edit, and paste it back as a new layer.
Grab an API key from NanoGPT and paste it below to unlock the plugin.
Selection mode sends a Photopea mask to supported inpainting models. Other models receive the selected pixels as image-to-image source and paste the result back into those bounds.
Lower = keep more of the original selection; higher = allow bigger changes.
We paste the generated image back into your selection as a new layer.