This is an option within Seedream 5 Pro.

ByteDance · IMAGE

Seedream 5 Pro Layer Decomposition API

Separate an image into editable layers

View credits & pricing options

Seedream 5 Pro Layer Decomposition is a image workflow in the Sorceress catalog.

Available through Sorceress API

Using Seedream 5 Pro Layer Decomposition in your workflow

Sorceress brings ByteDance models into a shared API catalog. Select this model explicitly, check its supported inputs, and keep your API key on your server. Model capabilities differ; the schema and options on this page describe this entry rather than every model from the same brand.

  • Create visual concepts and iterate on art direction.
  • Build images into an asset pipeline using the supported inputs below.

Model options & functions

Choose an operation or API format for this model. Each option retains its own inputs and pricing.

Credits & pricing

Sorceress credits
Priced by usage

7 credits per image 1.5K, 7 1K, 14 2K

1 credit = $0.01 · Successful work is billed on completion.

Pricing options

Rates are per item. Duration and quantity apply as shown in the input schema; media totals round up to whole credits.

size: 2K14 creditsper item
size: 1.5K7 creditsper item
size: 1K7 creditsper item

Review the supported inputs for duration, quantity and other usage-based charges before submitting. Read the billing guide →

Inputs and supported options

Request
{
  "type": "object",
  "required": [
    "image_url",
    "size"
  ],
  "properties": {
    "size": {
      "enum": [
        "auto",
        "1K",
        "1.5K",
        "2K"
      ],
      "type": "string",
      "title": "Size",
      "description": "Required. Output resolution tier: auto, 1K, 1.5K or 2K. auto follows the input image size."
    },
    "prompt": {
      "type": "string",
      "title": "Prompt",
      "maxLength": 5000,
      "minLength": 0,
      "description": "Optional prompt for layer separation. When a prompt is provided, the model separates the specified elements based on the prompt When no prompt is provided, the model automatically identifies the main elements in the image Supports using `<bbox>x1 y1 x2 y2</bbox>` to precisely specify element positions, recommending the use of normalized coordinates in the 0-1000 range"
    },
    "image_url": {
      "type": "string",
      "title": "Image URL",
      "format": "uri",
      "x-media": "image",
      "description": "The source image URL for layer separation. Supported formats: PNG, JPEG. Image size must not exceed 30 MB Total pixel range is 262,144-36,000,000 Aspect ratio range is 1:16-16:1"
    },
    "output_format": {
      "enum": [
        "png",
        "jpeg"
      ],
      "type": "string",
      "title": "Output format",
      "default": "jpeg",
      "description": "Output format of the base image. This parameter only controls the base image format; all separated layers are fixed to output as PNG."
    }
  }
}

API request template

Replace placeholders and choose valid values from the input contract.

Request
POST /api/v1/jobs
Authorization: Bearer $SORCERESS_API_KEY
Content-Type: application/json

{
  "model": "seedream-5-pro-layer-decomposition",
  "input": {
    "prompt": "<your prompt>"
  }
}
Read the endpoint reference →

Completion, results and billing

Save the job identifier returned by asynchronous requests and poll the jobs endpoint until the job succeeds or fails. Do not resubmit a generation just because it is still processing. Chat returns a completed reply and usage details. A multi-step workflow can include separately billed successful steps even if a later step fails. Keep returned asset links with your project, and consult each action for its output format.

Coding agents can discover the current catalog and input requirements from the Sorceress agent instructions. Use a Sorceress key; provider credentials stay on the server.

Explore related models