Remove and replace backgrounds

Cut a subject out to a transparent PNG, swap its background with one prompt, or place it into a scene you already have.

  • Lesson 6 of 10
  • Checked Nov 11, 2026

About this lesson

This lesson does three things with one character, a small queen on castle steps: it cuts her out of her background to a transparent PNG with Remove Background, puts her on a sunny beach with Edit with Prompts and GPT Image 2.6 Sunburst, and places her in a market square you already have by giving the model both images. Each step makes a new image, so the original stays safe. The models and prices in this lesson are as of November 2026.

See moreSee less
  • Remove Background cuts a character or product out to a transparent PNG in one click.
  • To change only the background, use Edit with Prompts with GPT Image 2.6 Sunburst and describe the new place.
  • To put a subject into a scene you already have, give the model both images as references.
Step by step with an agent, through the Scenario MCP (6 steps)Hide the steps
  1. Connect the Scenario MCP

    Connect your agent and sign in once at mcp.scenario.com. Then tell it which Scenario team and project to use, so every file lands there.

  2. Give the agent the files

    The original image of the queen on the castle steps and, for the composite, the empty market square. Upload them with upload_asset or give their asset IDs.

  3. Brief the agent: the cutout

    Prompt
    Remove the background of the queen image with Photoroom Background Removal (model_photoroom-background-removal), transparent, as a PNG. Read model_schema_get first. Quote the cost with a dry run first and wait for my go. Then show me the cutout and download it as a PNG with asset_download.
  4. Brief the agent: new backgrounds

    The cutout goes first in the composite, so nothing of the castle comes along.

    Prompt
    Use GPT Image 2.6 Sunburst (model_openai-gpt-image-2-6-sunburst) and read its parameters with model_schema_get. Quote the cost with a dry run first and wait for my go.
    
    Run 1: referenceImages is an array holding only the original queen image (not the cutout). Prompt, word for word:
    Keep the queen exactly as she is. Replace the background with a sunny tropical beach: white sand, turquoise water, a few palm trees, bright midday light.
    
    Run 2: referenceImages is an array with the cutout first and the market square second. Prompt, word for word:
    Place the queen into the market square, standing on the cobblestones in the middle. Keep the queen and the square exactly as they are, and match her light and shadow to the scene.
  5. Check and redo

    Accept a cutout with clean edges, the fur and scepter kept, and no old background in gaps. Accept a composite where she is the same character, the light comes from the same side as the scene, she has a shadow, her size fits and the square didn't change. Reject a halo, a pasted-on look or a redrawn scene.

    Prompt
    Check the cutout's edges for a halo or holes; if it fails, run Birefnet Background Removal (model_birefnet-background-removal) instead. For the composite, tell me if the light direction, her shadow or her size is off, or if the square changed, and redo it once with where the light comes from and how big she should be.
  6. File the results and report

    Prompt
    Create a collection called "Queen backgrounds" with the original, the cutout, the beach and the market square composite. Report each asset ID with its model and the total cost spent.
Step by step in the web app (7 steps)Hide the steps
  1. Open Remove Background

    Open the image, click the three dots in the bar above it and choose Remove Background. It is also under Edit in the viewer's right panel and in any thumbnail's three-dot menu.

  2. Remove the background

    In the Remove Background panel, keep Transparent and click Remove Background. The other option fills the background with a solid color.

  3. Check the cutout and download it

    Check the crown, the fur and the scepter stay sharp; the Info panel names Photoroom Background Removal. Download it as a PNG, since a JPEG has no transparency.

  4. Change only the background with a prompt

    Open the original, not the cutout, then three dots › Edit with Prompts and pick GPT Image 2.6 Sunburst (type "2.6" in the model search). Say what stays first, then the new place, and click Generate.

    Prompt
    Keep the queen exactly as she is. Replace the background with a sunny tropical beach: white sand, turquoise water, a few palm trees, bright midday light.
  5. Check the new background

    Same queen, new place, with light and shadow that match the beach. To try other places, change only the second sentence and keep the keep line.

  6. Put the subject into a scene you already have

    In Edit with Prompts, clear the reference with the trash icon, then Select from Library: the cutout first, then the market square, and Confirm. Say where she stands and what must not change, and click Generate.

    Prompt
    Place the queen into the market square, standing on the cobblestones in the middle. Keep the queen and the square exactly as they are, and match her light and shadow to the scene.
  7. Check the composite

    She is lit by the same sun, has a shadow under her feet, fits the scene in size, and the square, fountain and stalls are unchanged.

Read the full article5 min read
CoursesLessonsBrowseMy learning