Skip to main content
POST
Seedream 5.5 Layers

Headers

Authorization
string

Body

application/json
model
enum<string>
required

Model name. Must be seedream-5-5-layers.

Available options:
seedream-5-5-layers
image_list
object[]
required

The single image to split. Exactly one image is required: png or jpeg, up to 30MB, and at least 512x512 pixels in total.

Required array length: 1 element
prompt
string

Optional. Leave it out and the model finds and splits the main elements on its own. Provide it to name the elements to split, in plain language or with <bbox> coordinates.

Required string length: 1 - 4000
image_size
enum<string>
default:auto

Output tier. auto follows the input image's size and is billed at the 2K rate. Only tier names are accepted here — pixel values such as 2048x2048 are rejected.

Available options:
1K,
1.5K,
2K,
auto
output_format
enum<string>
default:jpeg

Output file format. This only affects the base image — every layer is always a transparent png.

Available options:
png,
jpeg
max_layers
integer
default:16

Maximum number of layers, not counting the base image. The request is billed as max_layers + 1 output images, so a lower value costs less. Elements beyond the limit may be merged or dropped.

Required range: 1 <= x <= 99
text_recognition
boolean
default:false

Set to true to get the recognized text, line boxes and font styles for clean text layers. Stylized or handwritten text is not recognized. Free.

custom_callback_url
string<uri>

Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.

Example:

"https://your-server.com/goenhance/callback"

Response

code
integer
required
msg
string
required
data
object
required