NEWGPT Image 2.6 is here — make focused edits with less rework.

Try GPT Image 2.6

Image to layers skill

Split a flat image into separate visual layers such as the subject, the background and individual objects.

Use it in the browser

Upload an image in the layer workspace, inspect each layer and continue editing in the browser.

Open Image to Layers

Call it from your agent

Pass a public image URL to convert_image_to_layers. 30 credits per standard or turbo job, 50 for pro or hd.

MCP toolconvert_image_to_layers

Connects with OAuth to your existing ImageToLayers account. No separate API key.

MCP setup guide

Before and after

One product photo and the nine layers separated from it.

Studio photo of skincare bottles, a box, stones and palm leaves
Before: flat image
  • Separated layer: Clean background

    Clean background

  • Separated layer: Left monstera leaf

    Left monstera leaf

  • Separated layer: Right palm leaf

    Right palm leaf

  • Separated layer: Stone platform

    Stone platform

  • Separated layer: Pebble group

    Pebble group

  • Separated layer: Packaging box

    Packaging box

  • Separated layer: Cream jar

    Cream jar

  • Separated layer: Pump bottle

    Pump bottle

  • Separated layer: Front palm leaf

    Front palm leaf

After: separated layers

Sample set from the ImageToLayers library. Areas that were hidden behind objects are reconstructed by AI, not recovered from the original.

What this skill does

Separate visual elements

Subjects, backgrounds and individual objects come back as separate layers.

Choose a quality tier

standard and turbo produce 2 to 5 layers. pro and hd produce 5 to 10.

Request a layer count

Set num_layers within the range of the chosen tier, or omit it and let the model decide.

PNG output per layer

A completed MCP job returns a download link for each layer image.

Tool parameters

The inputs the MCP tool accepts.

image_urlstring (URL)Required

Public HTTP or HTTPS URL pointing directly to a JPG, PNG, WEBP or GIF image, up to 20 MB. Local files are not supported.

qualityenumOptional

standard and turbo cost 30 credits. pro and hd cost 50 credits.

Allowed values: standard, turbo, pro, hd

Default: standard

num_layersinteger (2–10)Optional

Requested layer count: 2 to 5 for standard and turbo, 5 to 10 for pro and hd.

request_idstring (1–200)Required

A unique ID you choose for this request. Reusing it returns the original job.

How an agent runs it

  1. 1

    Provide an image URL

    The agent calls convert_image_to_layers with a public image URL, a quality tier and a request_id.

  2. 2

    Receive a job ID

    The tool checks credits, imports the image and starts an asynchronous job.

  3. 3

    Poll and download

    The agent calls get_job until the job completes, then downloads the layer images.

Example tool call

{
  "name": "convert_image_to_layers",
  "arguments": {
    "image_url": "https://example.com/product-photo.jpg",
    "quality": "pro",
    "num_layers": 9,
    "request_id": "layers-2026-001"
  }
}

Connects with OAuth to your existing ImageToLayers account. No separate API key. MCP setup guide

Related skills

Frequently asked questions

What does the image to layers skill return?

Through MCP, a completed job returns one PNG download link per layer.

How many layers can I get?

2 to 5 with standard or turbo, and 5 to 10 with pro or hd. The result depends on the image.

Which images can an agent send?

A public URL that points directly to a JPG, PNG, WEBP or GIF file up to 20 MB.

Are hidden parts of the image recovered?

No. Content behind an object is generated or inferred by the model, so review it before relying on it.

How much does one job cost?

30 credits for standard or turbo, and 50 credits for pro or hd.

How do I get the result from an agent call?

The tool returns a job_id straight away. Poll get_job with that ID until the status is completed or failed. Completed jobs include time-limited download links; call get_job again if a link has expired.

Do I need a separate account or API key for agents?

No. Your MCP client connects with OAuth to your existing ImageToLayers account.

What happens if a request is retried?

Send the same request_id. You get the original job back instead of a second charge.

AI-generated and AI-edited results may vary. Review important visual details before publishing or using outputs in production.

Split your own image

Try it in the browser, or hand the task to your agent.