curl --request POST \ --url https://aireiter.com/api/openapi/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "seedream_v5_5_layerize", "params": { "image_url": "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images": 30, "prompt": "Split the sky, the water and the moss platform into separate layers." }, "out_task_id": "my_task_123456" }'
import requestsurl = "https://aireiter.com/api/openapi/submit"payload = { "model": "seedream_v5_5_layerize", "params": { "image_url": "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images": 30, "prompt": "Split the sky, the water and the moss platform into separate layers." }, "out_task_id": "my_task_123456"}headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"}response = requests.post(url, json=payload, headers=headers)print(response.json())
const url = "https://aireiter.com/api/openapi/submit";const payload = { model: "seedream_v5_5_layerize", params: { image_url: "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", max_images: 30, prompt: "Split the sky, the water and the moss platform into separate layers." }, out_task_id: "my_task_123456"};const headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"};fetch(url, { method: "POST", headers: headers, body: JSON.stringify(payload)}) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error('Error:', error));
package mainimport ( "bytes" "encoding/json" "fmt" "io/ioutil" "net/http")func main() { url := "https://aireiter.com/api/openapi/submit" payload := map[string]interface{}{ "model": "seedream_v5_5_layerize", "params": map[string]interface{}{ "image_url": "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images": 30, "prompt": "Split the sky, the water and the moss platform into separate layers.", }, "out_task_id": "my_task_123456", } jsonData, _ := json.Marshal(payload) req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData)) req.Header.Set("Authorization", "Bearer <token>") req.Header.Set("Content-Type", "application/json") client := &http.Client{} resp, err := client.Do(req) if err != nil { panic(err) } defer resp.Body.Close() body, _ := ioutil.ReadAll(resp.Body) fmt.Println(string(body))}
import java.net.http.HttpClient;import java.net.http.HttpRequest;import java.net.http.HttpResponse;import java.net.URI;public class Main { public static void main(String[] args) throws Exception { String url = "https://aireiter.com/api/openapi/submit"; String payload = """ { "model": "seedream_v5_5_layerize", "params": { "image_url": "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images": 30, "prompt": "Split the sky, the water and the moss platform into separate layers." }, "out_task_id": "my_task_123456" } """; HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest.newBuilder() .uri(URI.create(url)) .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString(payload)) .build(); HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); }}
<?php$url = "https://aireiter.com/api/openapi/submit";$payload = [ "model" => "seedream_v5_5_layerize", "params" => [ "image_url" => "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images" => 30, "prompt" => "Split the sky, the water and the moss platform into separate layers." ], "out_task_id" => "my_task_123456"];$ch = curl_init($url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_POST, true);curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Content-Type: application/json"]);$response = curl_exec($ch);curl_close($ch);echo $response;?>
require 'net/http'require 'json'require 'uri'url = URI("https://aireiter.com/api/openapi/submit")payload = { model: "seedream_v5_5_layerize", params: { image_url: "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", max_images: 30, prompt: "Split the sky, the water and the moss platform into separate layers." }, out_task_id: "my_task_123456"}http = Net::HTTP.new(url.host, url.port)request = Net::HTTP::Post.new(url)request["Authorization"] = "Bearer <token>"request["Content-Type"] = "application/json"request.body = payload.to_jsonresponse = http.request(request)puts response.body
import Foundationlet url = URL(string: "https://aireiter.com/api/openapi/submit")!let payload: [String: Any] = [ "model": "seedream_v5_5_layerize", "params": [ "image_url": "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images": 30, "prompt": "Split the sky, the water and the moss platform into separate layers." ] as [String: Any], "out_task_id": "my_task_123456"]var request = URLRequest(url: url)request.httpMethod = "POST"request.setValue("Bearer <token>", forHTTPHeaderField: "Authorization")request.setValue("application/json", forHTTPHeaderField: "Content-Type")request.httpBody = try? JSONSerialization.data(withJSONObject: payload)let task = URLSession.shared.dataTask(with: request) { data, response, error in if let error = error { print("Error: \(error)") return } if let data = data, let responseString = String(data: data, encoding: .utf8) { print(responseString) }}task.resume()
using System;using System.Net.Http;using System.Text;using System.Threading.Tasks;class Program{ static async Task Main(string[] args) { var url = "https://aireiter.com/api/openapi/submit"; var payload = @"{ ""model"": ""seedream_v5_5_layerize"", ""params"": { ""image_url"": ""https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png"", ""max_images"": 30, ""prompt"": ""Split the sky, the water and the moss platform into separate layers."" }, ""out_task_id"": ""my_task_123456"" }"; using var client = new HttpClient(); client.DefaultRequestHeaders.Add("Authorization", "Bearer <token>"); var content = new StringContent(payload, Encoding.UTF8, "application/json"); var response = await client.PostAsync(url, content); var result = await response.Content.ReadAsStringAsync(); Console.WriteLine(result); }}
{ "error": { "code": 401, "message": "인증에 실패했습니다. API 키를 확인해 주세요" }}
{ "error": { "code": 433, "message": "계정 잔액이 부족합니다. 충전 후 다시 시도해 주세요" } }
{ "error": { "code": 500, "message": "내부 서버 오류가 발생했습니다. 잠시 후 다시 시도해 주세요" }}
Seedream 5.5 Layerize
Seedream 5.5 Layerize 레이어 분리
비동기 처리 모드로, 후속 조회를 위한 작업 ID를 반환합니다
하나의 이미지를 배경 이미지와 개별 편집이 가능한 여러 개의 투명 PNG 레이어로 분리합니다(배경 이미지를 포함하여 최대 100장)
각 레이어에는 이름, 설명, z_index 및 bounding_box가 포함됩니다
선택적 텍스트 인식을 통해 텍스트 레이어의 내용과 스타일을 반환합니다
POST
/
api
/
openapi
/
submit
curl --request POST \ --url https://aireiter.com/api/openapi/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "seedream_v5_5_layerize", "params": { "image_url": "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images": 30, "prompt": "Split the sky, the water and the moss platform into separate layers." }, "out_task_id": "my_task_123456" }'
import requestsurl = "https://aireiter.com/api/openapi/submit"payload = { "model": "seedream_v5_5_layerize", "params": { "image_url": "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images": 30, "prompt": "Split the sky, the water and the moss platform into separate layers." }, "out_task_id": "my_task_123456"}headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"}response = requests.post(url, json=payload, headers=headers)print(response.json())
const url = "https://aireiter.com/api/openapi/submit";const payload = { model: "seedream_v5_5_layerize", params: { image_url: "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", max_images: 30, prompt: "Split the sky, the water and the moss platform into separate layers." }, out_task_id: "my_task_123456"};const headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"};fetch(url, { method: "POST", headers: headers, body: JSON.stringify(payload)}) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error('Error:', error));
package mainimport ( "bytes" "encoding/json" "fmt" "io/ioutil" "net/http")func main() { url := "https://aireiter.com/api/openapi/submit" payload := map[string]interface{}{ "model": "seedream_v5_5_layerize", "params": map[string]interface{}{ "image_url": "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images": 30, "prompt": "Split the sky, the water and the moss platform into separate layers.", }, "out_task_id": "my_task_123456", } jsonData, _ := json.Marshal(payload) req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData)) req.Header.Set("Authorization", "Bearer <token>") req.Header.Set("Content-Type", "application/json") client := &http.Client{} resp, err := client.Do(req) if err != nil { panic(err) } defer resp.Body.Close() body, _ := ioutil.ReadAll(resp.Body) fmt.Println(string(body))}
import java.net.http.HttpClient;import java.net.http.HttpRequest;import java.net.http.HttpResponse;import java.net.URI;public class Main { public static void main(String[] args) throws Exception { String url = "https://aireiter.com/api/openapi/submit"; String payload = """ { "model": "seedream_v5_5_layerize", "params": { "image_url": "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images": 30, "prompt": "Split the sky, the water and the moss platform into separate layers." }, "out_task_id": "my_task_123456" } """; HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest.newBuilder() .uri(URI.create(url)) .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString(payload)) .build(); HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); }}
<?php$url = "https://aireiter.com/api/openapi/submit";$payload = [ "model" => "seedream_v5_5_layerize", "params" => [ "image_url" => "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images" => 30, "prompt" => "Split the sky, the water and the moss platform into separate layers." ], "out_task_id" => "my_task_123456"];$ch = curl_init($url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_POST, true);curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Content-Type: application/json"]);$response = curl_exec($ch);curl_close($ch);echo $response;?>
require 'net/http'require 'json'require 'uri'url = URI("https://aireiter.com/api/openapi/submit")payload = { model: "seedream_v5_5_layerize", params: { image_url: "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", max_images: 30, prompt: "Split the sky, the water and the moss platform into separate layers." }, out_task_id: "my_task_123456"}http = Net::HTTP.new(url.host, url.port)request = Net::HTTP::Post.new(url)request["Authorization"] = "Bearer <token>"request["Content-Type"] = "application/json"request.body = payload.to_jsonresponse = http.request(request)puts response.body
import Foundationlet url = URL(string: "https://aireiter.com/api/openapi/submit")!let payload: [String: Any] = [ "model": "seedream_v5_5_layerize", "params": [ "image_url": "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images": 30, "prompt": "Split the sky, the water and the moss platform into separate layers." ] as [String: Any], "out_task_id": "my_task_123456"]var request = URLRequest(url: url)request.httpMethod = "POST"request.setValue("Bearer <token>", forHTTPHeaderField: "Authorization")request.setValue("application/json", forHTTPHeaderField: "Content-Type")request.httpBody = try? JSONSerialization.data(withJSONObject: payload)let task = URLSession.shared.dataTask(with: request) { data, response, error in if let error = error { print("Error: \(error)") return } if let data = data, let responseString = String(data: data, encoding: .utf8) { print(responseString) }}task.resume()
using System;using System.Net.Http;using System.Text;using System.Threading.Tasks;class Program{ static async Task Main(string[] args) { var url = "https://aireiter.com/api/openapi/submit"; var payload = @"{ ""model"": ""seedream_v5_5_layerize"", ""params"": { ""image_url"": ""https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png"", ""max_images"": 30, ""prompt"": ""Split the sky, the water and the moss platform into separate layers."" }, ""out_task_id"": ""my_task_123456"" }"; using var client = new HttpClient(); client.DefaultRequestHeaders.Add("Authorization", "Bearer <token>"); var content = new StringContent(payload, Encoding.UTF8, "application/json"); var response = await client.PostAsync(url, content); var result = await response.Content.ReadAsStringAsync(); Console.WriteLine(result); }}
⚠️ 주의: data:image/jpeg;base64, 접두사 부분을 반드시 포함해야 하며, base64 이미지 크기는 10MB를 초과할 수 없습니다
string
텍스트 프롬프트(선택 사항)분할할 요소를 지정하는 데 사용됩니다(예: 把标题文字和鹦鹉拆成单独的图层). 전달하지 않으면 화면의 요소를 자동으로 인식합니다.
string
기본값:"auto"
출력 해상도 옵션
auto - 원본 이미지 크기로 출력(기본값): 1K 미만의 원본 이미지는 1K로 상향하고, 2K 초과의 원본 이미지는 2K로 축소합니다
1K - 1K 해상도
1.5K - 1.5K 해상도
2K - 2K 해상도
옵션을 지정하면 배경 이미지와 각 레이어가 모두 선택한 옵션에 따라 출력되며, 각각 원본 비율을 유지합니다. 종횡비 또는 사용자 정의 픽셀 크기는 지원하지 않습니다.
integer
기본값:"30"
반환할 최대 이미지 수(배경 이미지 포함)
값 범위: 2–100
실제 반환되는 이미지 수는 화면 내용에 따라 결정되며 이 값을 초과하지 않습니다
30장을 초과하면 소요 시간이 길어지며, 100장은 약 5분이 소요됩니다
boolean
기본값:"false"
텍스트 인식활성화하면 화면에서 명확하게 식별 가능한 텍스트 레이어에 대해 텍스트 내용과 스타일을 인식합니다
string
기본값:"png"
배경 이미지 출력 형식
png - PNG(기본값)
jpeg - JPEG
배경 이미지(z_index = 0)에만 적용되며, 나머지 레이어는 투명 배경 PNG로 고정됩니다
string
작업 완료 후 콜백 URL
object
사용자 정의 메타데이터, 원본 그대로 반환됩니다
string
필수
요청자 작업 ID사용자 정의 작업 식별자, 필수
Response
string
요청자 작업 ID, 결과 조회에 사용할 수 있습니다
string
초기 상태, "pending"으로 고정됨
number
예상 소모 크레딧
string
생성 시간(ISO 형식)
curl --request POST \ --url https://aireiter.com/api/openapi/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "seedream_v5_5_layerize", "params": { "image_url": "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images": 30, "prompt": "Split the sky, the water and the moss platform into separate layers." }, "out_task_id": "my_task_123456" }'
import requestsurl = "https://aireiter.com/api/openapi/submit"payload = { "model": "seedream_v5_5_layerize", "params": { "image_url": "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images": 30, "prompt": "Split the sky, the water and the moss platform into separate layers." }, "out_task_id": "my_task_123456"}headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"}response = requests.post(url, json=payload, headers=headers)print(response.json())
const url = "https://aireiter.com/api/openapi/submit";const payload = { model: "seedream_v5_5_layerize", params: { image_url: "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", max_images: 30, prompt: "Split the sky, the water and the moss platform into separate layers." }, out_task_id: "my_task_123456"};const headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"};fetch(url, { method: "POST", headers: headers, body: JSON.stringify(payload)}) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error('Error:', error));
package mainimport ( "bytes" "encoding/json" "fmt" "io/ioutil" "net/http")func main() { url := "https://aireiter.com/api/openapi/submit" payload := map[string]interface{}{ "model": "seedream_v5_5_layerize", "params": map[string]interface{}{ "image_url": "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images": 30, "prompt": "Split the sky, the water and the moss platform into separate layers.", }, "out_task_id": "my_task_123456", } jsonData, _ := json.Marshal(payload) req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData)) req.Header.Set("Authorization", "Bearer <token>") req.Header.Set("Content-Type", "application/json") client := &http.Client{} resp, err := client.Do(req) if err != nil { panic(err) } defer resp.Body.Close() body, _ := ioutil.ReadAll(resp.Body) fmt.Println(string(body))}
import java.net.http.HttpClient;import java.net.http.HttpRequest;import java.net.http.HttpResponse;import java.net.URI;public class Main { public static void main(String[] args) throws Exception { String url = "https://aireiter.com/api/openapi/submit"; String payload = """ { "model": "seedream_v5_5_layerize", "params": { "image_url": "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images": 30, "prompt": "Split the sky, the water and the moss platform into separate layers." }, "out_task_id": "my_task_123456" } """; HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest.newBuilder() .uri(URI.create(url)) .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString(payload)) .build(); HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); }}
<?php$url = "https://aireiter.com/api/openapi/submit";$payload = [ "model" => "seedream_v5_5_layerize", "params" => [ "image_url" => "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images" => 30, "prompt" => "Split the sky, the water and the moss platform into separate layers." ], "out_task_id" => "my_task_123456"];$ch = curl_init($url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_POST, true);curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Bearer <token>", "Content-Type: application/json"]);$response = curl_exec($ch);curl_close($ch);echo $response;?>
require 'net/http'require 'json'require 'uri'url = URI("https://aireiter.com/api/openapi/submit")payload = { model: "seedream_v5_5_layerize", params: { image_url: "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", max_images: 30, prompt: "Split the sky, the water and the moss platform into separate layers." }, out_task_id: "my_task_123456"}http = Net::HTTP.new(url.host, url.port)request = Net::HTTP::Post.new(url)request["Authorization"] = "Bearer <token>"request["Content-Type"] = "application/json"request.body = payload.to_jsonresponse = http.request(request)puts response.body
import Foundationlet url = URL(string: "https://aireiter.com/api/openapi/submit")!let payload: [String: Any] = [ "model": "seedream_v5_5_layerize", "params": [ "image_url": "https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png", "max_images": 30, "prompt": "Split the sky, the water and the moss platform into separate layers." ] as [String: Any], "out_task_id": "my_task_123456"]var request = URLRequest(url: url)request.httpMethod = "POST"request.setValue("Bearer <token>", forHTTPHeaderField: "Authorization")request.setValue("application/json", forHTTPHeaderField: "Content-Type")request.httpBody = try? JSONSerialization.data(withJSONObject: payload)let task = URLSession.shared.dataTask(with: request) { data, response, error in if let error = error { print("Error: \(error)") return } if let data = data, let responseString = String(data: data, encoding: .utf8) { print(responseString) }}task.resume()
using System;using System.Net.Http;using System.Text;using System.Threading.Tasks;class Program{ static async Task Main(string[] args) { var url = "https://aireiter.com/api/openapi/submit"; var payload = @"{ ""model"": ""seedream_v5_5_layerize"", ""params"": { ""image_url"": ""https://static.aireiter.com/content/model-seo/seedream-v5-pro-layerize/layer-0.png"", ""max_images"": 30, ""prompt"": ""Split the sky, the water and the moss platform into separate layers."" }, ""out_task_id"": ""my_task_123456"" }"; using var client = new HttpClient(); client.DefaultRequestHeaders.Add("Authorization", "Bearer <token>"); var content = new StringContent(payload, Encoding.UTF8, "application/json"); var response = await client.PostAsync(url, content); var result = await response.Content.ReadAsStringAsync(); Console.WriteLine(result); }}
{ "error": { "code": 401, "message": "인증에 실패했습니다. API 키를 확인해 주세요" }}
{ "error": { "code": 433, "message": "계정 잔액이 부족합니다. 충전 후 다시 시도해 주세요" } }
{ "error": { "code": 500, "message": "내부 서버 오류가 발생했습니다. 잠시 후 다시 시도해 주세요" }}
작업 결과 조회
작업이 제출된 후 POST /api/openapi/query 인터페이스를 사용하여 작업 상태를 폴링합니다. 레이어 분리에는 일반적으로 수십 초에서 수 분이 소요되므로, 중복 제출하지 말고 out_task_id를 저장하여 최종 상태가 될 때까지 지속적으로 조회하세요. 작업이 완료되면 output 필드에 배경 이미지와 레이어 목록이 반환됩니다.