Images Videos Audio Pricing Docs View as Markdown (Agent) Get started
Human Agent
← Back to blog

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
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 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

ModelCostPlansUse it for
fast1 edit creditFree, Starter, ProMost cleanup, object removal, and quick revisions
quality5 edit creditsStarter, ProHarder 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 for resize, crop, format conversion, blur, tone controls, watermarking, or deterministic foreground segmentation.

NeedBest tool
Resize to 1200×630URL transform
Convert to WebP or AVIFURL transform
Remove the whole background?segment=foreground
Remove two specific people but preserve the scenePrompt edit
Change a product’s setting or revise generated artPrompt 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 for visibility, expiration, folders, error codes, and usage reporting.