Submit Seedream 5.5 Layerize Task
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"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
}
}
'import requests
url = "https://api.vidgo.ai/api/generate/submit"
payload = {
"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
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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
}
})
};
fetch('https://api.vidgo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vidgo.ai/api/generate/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vidgo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"bytedance/seedream-v5.5/layerize\",\n \"input\": {\n \"prompt\": \"Separate the foreground passengers, station attendant, bench, window, wall sign text, and background into editable layers.\",\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/text-to-image/v1/01/output.png\"\n ],\n \"max_images\": 8,\n \"resolution\": \"1K\",\n \"output_format\": \"png\",\n \"text_recognition\": true\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vidgo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"bytedance/seedream-v5.5/layerize\",\n \"input\": {\n \"prompt\": \"Separate the foreground passengers, station attendant, bench, window, wall sign text, and background into editable layers.\",\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/text-to-image/v1/01/output.png\"\n ],\n \"max_images\": 8,\n \"resolution\": \"1K\",\n \"output_format\": \"png\",\n \"text_recognition\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidgo.ai/api/generate/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"bytedance/seedream-v5.5/layerize\",\n \"input\": {\n \"prompt\": \"Separate the foreground passengers, station attendant, bench, window, wall sign text, and background into editable layers.\",\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/text-to-image/v1/01/output.png\"\n ],\n \"max_images\": 8,\n \"resolution\": \"1K\",\n \"output_format\": \"png\",\n \"text_recognition\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "JTQCYR7TANN6PAZZ",
"status": "not_started",
"created_time": "2026-11-25T11:13:00"
}
}{
"detail": "image_urls must contain exactly 1 item"
}{
"detail": "image_urls must contain exactly 1 item"
}Seedream
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.
POST
/
api
/
generate
/
submit
Submit Seedream 5.5 Layerize Task
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"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
}
}
'import requests
url = "https://api.vidgo.ai/api/generate/submit"
payload = {
"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
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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
}
})
};
fetch('https://api.vidgo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vidgo.ai/api/generate/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vidgo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"bytedance/seedream-v5.5/layerize\",\n \"input\": {\n \"prompt\": \"Separate the foreground passengers, station attendant, bench, window, wall sign text, and background into editable layers.\",\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/text-to-image/v1/01/output.png\"\n ],\n \"max_images\": 8,\n \"resolution\": \"1K\",\n \"output_format\": \"png\",\n \"text_recognition\": true\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vidgo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"bytedance/seedream-v5.5/layerize\",\n \"input\": {\n \"prompt\": \"Separate the foreground passengers, station attendant, bench, window, wall sign text, and background into editable layers.\",\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/text-to-image/v1/01/output.png\"\n ],\n \"max_images\": 8,\n \"resolution\": \"1K\",\n \"output_format\": \"png\",\n \"text_recognition\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidgo.ai/api/generate/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"bytedance/seedream-v5.5/layerize\",\n \"input\": {\n \"prompt\": \"Separate the foreground passengers, station attendant, bench, window, wall sign text, and background into editable layers.\",\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/text-to-image/v1/01/output.png\"\n ],\n \"max_images\": 8,\n \"resolution\": \"1K\",\n \"output_format\": \"png\",\n \"text_recognition\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "JTQCYR7TANN6PAZZ",
"status": "not_started",
"created_time": "2026-11-25T11:13:00"
}
}{
"detail": "image_urls must contain exactly 1 item"
}{
"detail": "image_urls must contain exactly 1 item"
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the result through the unified Query Task Status endpoint.
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, Image Edit and Layerize.
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.5Kor2K. Defaultauto.max_images(integer): Upper limit on returned images, base image included,2–100. Default30.output_format(string):pngorjpeg. Defaultpng.text_recognition(boolean): Add recognized text to text-layer metadata. Defaultfalse.enable_safety_checker(boolean): Defaulttrue.
Output
The finished task returns the base image and the layers as separate entries in thefiles array of Query Task Status 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).
Notes
- Put
modelandcallback_urlat the request root, next toinput.inputaccepts the fields listed above; other fields return 400. - Credits are reserved at submission for
max_imagesimages at the rate ofresolution(autouses the 2K rate), plus a charge for the input image. When the task returns fewer images thanmax_images, the difference is refunded on completion. A failed task is refunded in full. See the pricing page for current rates.
Body
application/json