<!-- Markdown twin of https://pixelvault.dev/blog/edit-images-with-ai-prompts/ -->

[← Back to blog](/blog/)

By [PixelVault](/about/) November 28, 2026

# Edit images with AI prompts—without overwriting the original.

Remove people from a background, change a setting, or revise a generated asset. The prompt creates a new hosted image while the source stays intact.

![A source beach image and prompt passing through a vault to create a new edited copy with background people removed while the original remains intact](https://img.pixelvault.dev/proj_mkoboesmx25d/img_hqmnmq6ln21l.png?w=1400&h=788&fit=cover&fmt=auto&q=auto)

The source and prompt produce a new hosted copy. The original remains available for another edit or a rollback.

A common photo-editing request is precise in words but awkward in a traditional editor: “Remove the people in the background, but keep the main subject unchanged.” The same pattern applies to product cleanup, changing a backdrop, revising generated artwork, or removing an unwanted object.

PixelVault accepts that instruction alongside an image already in your library. Cloudflare FLUX.2 creates the revision, then PixelVault stores it as a new image with its own CDN URL. The source is never overwritten.

## Edit from the dashboard

1.  Open the [dashboard](/dashboard/) and upload the source image.
2.  Open the image’s action menu and choose **Edit**.
3.  Describe the change, choose Fast or Quality, and select **Create edited image**.
4.  Copy, share, download, transform, or edit the new image like any other PixelVault asset.

The edited copy appears next to the source. That makes revisions explicit: compare both versions, retry with a narrower prompt, or delete the result without losing the original.

## Edit through the API

An agent can use the same workflow. Upload the local image first, then send the returned image ID and an editing prompt:

curl \-X POST https://api.pixelvault.dev/v1/images/img\_abc123/edit \\ \-H "Authorization: Bearer $PIXELVAULT\_API\_KEY" \\ \-H "Content-Type: application/json" \\ \-d '{ "prompt": "Remove the people in the background. Keep the main subject unchanged.", "model": "fast" }'

Response

{ "data": { "id": "img\_edited123", "url": "https://img.pixelvault.dev/proj\_xyz789/img\_edited123.jpg", "edit": { "source\_image\_id": "img\_abc123", "model": "fast", "credits\_charged": 1, "credits\_remaining": 4 } } }

The result is a normal hosted image, not a temporary model URL. It can use CDN transforms, signed private delivery, folders, expiration, sharing, and downloads.

## Choose Fast by default

Model

Cost

Plans

Use it for

`fast`

1 edit credit

Free, Starter, Pro

Most cleanup, object removal, and quick revisions

`quality`

5 edit credits

Starter, Pro

Harder scenes where the first result needs more fidelity

Monthly edit grants are separate from image-generation credits: 5 on Free, 100 on Starter, and 500 on Pro. Failed preparation, inference, or storage is refunded. The edited result still counts as a stored image.

## Write a bounded prompt

State the change and what must remain stable. A prompt that only says “improve this” leaves too many decisions to the model.

> Remove the two people near the water in the background. Keep the foreground subjects, framing, lighting, colors, and image dimensions unchanged. Fill the removed area naturally with beach and ocean.

-   Name the object or region to change.
-   Say what must not change.
-   Describe the replacement when removal would leave a gap.
-   Make one coherent edit per request; inspect the output before chaining another.

## Use transforms when the change is deterministic

Prompt editing creates a new stored image. URL transforms do not. Keep using [image transforms](/images/) for resize, crop, format conversion, blur, tone controls, watermarking, or deterministic foreground segmentation.

Need

Best tool

Resize to 1200×630

URL transform

Convert to WebP or AVIF

URL transform

Remove the whole background

`?segment=foreground`

Remove two specific people but preserve the scene

Prompt edit

Change a product’s setting or revise generated art

Prompt edit

## Private sources stay private by default

If the source image is private, the edited result defaults to private and receives a signed URL. Cloudflare processes the image and prompt with zero data retention, and PixelVault does not store the prompt. A verified email and a secret API key—or a signed-in dashboard session—are required.

JPEG, PNG, WebP, AVIF, and GIF sources up to 20 MB are supported. See the [image-editing API guide](/docs/guides/generate-images/#edit) for visibility, expiration, folders, error codes, and usage reporting.

## More in AI-generated images

-   [Convert a Base64 image to a hosted URL (tool & API)](/blog/base64-image-to-hosted-url/) Turn data:image base64 output from OpenAI, Gemini, or Canvas into a fast, cacheable CDN link in your browser or with a single API call.
-   [Generate an image and get a hosted URL in one API call](/blog/generate-images-with-one-api-call/) Send a prompt, get a finished image on a CDN URL back. Real curl, Node, Python and Claude examples, with the credits, models and limits.
-   [How to host GPT Image 2 images on a permanent URL](/blog/host-gpt-image-2-images/) GPT Image 2 returns image bytes with temporary URLs that expire — OpenAI itself says to store them in your own CDN. Here's the one-call way to turn a gpt-image-2 result into a permanent, embeddable URL.

[All posts in AI-generated images →](/blog/topics/ai-images/)
