> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidgo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Seedream 5.5 Layerize

> The Seedream 5.5 Layerize API splits one image into 2–100 separate layer images, each with position and name metadata and optional OCR text.

> [!TIP]
>
> 1. After submission, a `task_id` will be returned. If you provided a `callback_url`, when the task status becomes `finished` or `failed`, a POST request will be sent to the `callback_url`.
> 2. Regardless of whether `callback_url` is provided, you can retrieve the result through the unified [Query Task Status](https://docs.vidgo.ai/api-manual/task-management/status.md) endpoint.

Seedream 5.5 Layerize decomposes one flattened image, such as a poster, banner, UI mock-up or illustration, into a base image plus separate transparent layers. Each layer comes back as its own file with position and name metadata, ready to rearrange or edit. Turn on `text_recognition` to also get the recognized text of text layers.

Seedream 5.5 is ByteDance's image model. Vidgo exposes three model IDs: [Text to Image](https://docs.vidgo.ai/api-manual/image-series/bytedance-seedream-v5-5-text-to-image.md), [Image Edit](https://docs.vidgo.ai/api-manual/image-series/bytedance-seedream-v5-5-edit.md) and [Layerize](https://docs.vidgo.ai/api-manual/image-series/bytedance-seedream-v5-5-layerize.md).

## Models

* **bytedance/seedream-v5.5/layerize** — Layer decomposition with Seedream 5.5, one input image, 2–100 output images.

## Features

* Split one image into 2–100 images: a base image plus separate layers.
* Per-layer metadata: position and layer name in `files[].layer`.
* Optional OCR for text layers with `text_recognition`.
* Optional prompt to guide which elements to separate.

## Required parameters

* `image_urls` (string\[]): Exactly one public HTTP(S) image URL.

## Optional parameters

* `prompt` (string): Guidance on which elements to separate, up to 2,000 characters.
* `resolution` (string): `auto`, `1K`, `1.5K` or `2K`. Default `auto`.
* `max_images` (integer): Upper limit on returned images, base image included, `2`–`100`. Default `30`.
* `output_format` (string): `png` or `jpeg`. Default `png`.
* `text_recognition` (boolean): Add recognized text to text-layer metadata. Default `false`.
* `enable_safety_checker` (boolean): Default `true`.

## Output

The finished task returns the base image and the layers as separate entries in the `files` array of [Query Task Status](https://docs.vidgo.ai/api-manual/task-management/status.md) and the callback payload. Besides `file_url` and `file_type`, each entry carries a `layer` object with the layer's position and name, plus its recognized text when `text_recognition` is `true`. The model decides how many layers to return, up to `max_images`.

## Examples

* **Scene with OCR**: separate the passengers, attendant, bench, window, wall sign and background of a railway waiting-room image, `max_images: 8`, `1K`, `text_recognition: true`; the task returned 6 images ([result](https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.5/layerize/v1/01/layer-01.png)).

## Notes

* Put `model` and `callback_url` at the request root, next to `input`. `input` accepts the fields listed above; other fields return 400.
* Credits are reserved at submission for `max_images` images at the rate of `resolution` (`auto` uses the 2K rate), plus a charge for the input image. When the task returns fewer images than `max_images`, the difference is refunded on completion. A failed task is refunded in full. See the [pricing page](https://vidgo.ai/apis/api-pricing) for current rates.


## OpenAPI

````yaml api-manual/image-series/bytedance-seedream-v5-5-layerize.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Seedream 5.5 Layerize
  description: >-
    The Seedream 5.5 Layerize API splits one image into 2–100 separate layer
    images, each with position and name metadata and optional OCR text.
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: Production server
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Seedream 5.5 Layerize
      summary: Submit Seedream 5.5 Layerize Task
      operationId: submitSeedream55LayerizeTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              layerize-with-ocr:
                summary: Split a scene into layers with OCR
                value:
                  model: bytedance/seedream-v5.5/layerize
                  input:
                    prompt: >-
                      Separate the foreground passengers, station attendant,
                      bench, window, wall sign text, and background into
                      editable layers.
                    image_urls:
                      - >-
                        https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/text-to-image/v1/01/output.png
                    max_images: 8
                    resolution: 1K
                    output_format: png
                    text_recognition: true
      responses:
        '200':
          description: >-
            Task submission result. A task ID identifies asynchronous work;
            generation may still be running.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          example: bytedance/seedream-v5.5/layerize
        callback_url:
          type: string
          format: uri
          description: Optional webhook URL for completion or failure notifications.
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - image_urls
          additionalProperties: false
          properties:
            image_urls:
              type: array
              minItems: 1
              maxItems: 1
              items:
                type: string
                format: uri
                description: Use a publicly accessible HTTP(S) download URL.
              description: Exactly one image to split into layers.
            prompt:
              type: string
              maxLength: 2000
              description: >-
                Optional guidance on which elements to separate. Up to 2,000
                characters.
            resolution:
              type: string
              enum:
                - auto
                - 1K
                - 1.5K
                - 2K
              default: auto
              description: Layer resolution. `auto` is billed at the 2K rate.
            max_images:
              type: integer
              minimum: 2
              maximum: 100
              default: 30
              description: Upper limit on returned images, base image included.
            output_format:
              type: string
              enum:
                - png
                - jpeg
              default: png
              description: Output file format.
            text_recognition:
              type: boolean
              default: false
              description: >-
                When true, recognized text of text layers is added to the layer
                metadata.
            enable_safety_checker:
              type: boolean
              default: true
              description: Turn the content safety check on or off.
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
              example: JTQCYR7TANN6PAZZ
            status:
              type: string
              example: not_started
            created_time:
              type: string
              format: date-time
              example: '2026-11-25T11:13:00'
    ErrorResponse:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: Error message. See [Error Codes](/api-manual/error-codes).
          example: image_urls must contain exactly 1 item
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Use `Authorization: Bearer VIDGO_API_KEY`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.