Seedream 5.0 Flash レイヤー分解

doubao/seedream-v5.0-flash/layer-decomposition

画像1枚をベース画像と最大16レイヤーに分解。出力1枚 $0.018、1回につき最大 $0.306 を前払いし、実際の枚数で精算します。

サンプル

Seedream 5.0 Flash レイヤー分解 サンプル 1

パラメータ

名前型既定制約説明
image *画像image_upload—image/* · 1–1 itemsレイヤーに分解する画像です。
promptプロンプトtextarea—≤ 5000 chars生成に使用するポジティブプロンプトです。
output_format出力形式selectpngjpeg | png出力画像の形式です。
sizeサイズselectauto1K | 1.5K | 2K | auto

出力フィールド

フィールド型説明
imagesarray<string>

API

統一 REST API でこのモデルを呼び出せます。API Keys ページでキーを取得してください。

cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.namifusion.com/api/v1/marketplace/run/doubao/seedream-v5.0-flash/layer-decomposition" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "image": [
      "https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/09/24/89b481bb63b1.jpeg"
    ],
    "prompt": "Decompose the scene into clean transparent layers with accurate separation of the desk objects, preserving fine edges, shadows, and background details for easy compositing and editing.",
    "output_format": "png",
    "size": "auto"
  }
}'

# 2) Poll until status is "completed", then read the output URLs
curl "https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID" \
  -H "Authorization: Bearer YOUR_API_KEY"
Python
import time, requests

API_KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}

# 1) Submit
resp = requests.post(
    "https://www.namifusion.com/api/v1/marketplace/run/doubao/seedream-v5.0-flash/layer-decomposition",
    headers=HEADERS,
    json={
        "input": {
            "image": [
                "https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/09/24/89b481bb63b1.jpeg"
            ],
            "prompt": "Decompose the scene into clean transparent layers with accurate separation of the desk objects, preserving fine edges, shadows, and background details for easy compositing and editing.",
            "output_format": "png",
            "size": "auto"
        }
    },
)
resp.raise_for_status()  # 401/402/429/5xx stop here instead of polling a bad task
task = resp.json()

# 2) Poll until a terminal state (completed / failed / cancelled).
#    This model is allowed up to 300s server-side.
deadline = time.time() + 360
while task.get("status") not in ("completed", "failed", "cancelled"):
    if time.time() > deadline:
        raise TimeoutError(f"still {task.get('status')} — keep the task_uuid and poll later")
    time.sleep(3)
    poll = requests.get(f"https://www.namifusion.com/api/v1/marketplace/run/tasks/{task['task_uuid']}", headers=HEADERS)
    poll.raise_for_status()
    task = poll.json()

print(task["status"], task.get("output"))
JavaScript
const API_KEY = "YOUR_API_KEY";
const HEADERS = { Authorization: `Bearer ${API_KEY}` };

// 1) Submit
const resp = await fetch("https://www.namifusion.com/api/v1/marketplace/run/doubao/seedream-v5.0-flash/layer-decomposition", {
  method: "POST",
  headers: { ...HEADERS, "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": {
      "image": [
        "https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/09/24/89b481bb63b1.jpeg"
      ],
      "prompt": "Decompose the scene into clean transparent layers with accurate separation of the desk objects, preserving fine edges, shadows, and background details for easy compositing and editing.",
      "output_format": "png",
      "size": "auto"
    }
  }),
});
if (!resp.ok) throw new Error(`submit failed: ${resp.status} ${await resp.text()}`);
let task = await resp.json();

// 2) Poll until a terminal state (completed / failed / cancelled).
//    This model is allowed up to 300s server-side.
const deadline = Date.now() + 360 * 1000;
while (!["completed", "failed", "cancelled"].includes(task.status)) {
  if (Date.now() > deadline) throw new Error(`still ${task.status} — keep the task_uuid and poll later`);
  await new Promise((r) => setTimeout(r, 3000));
  const poll = await fetch(`https://www.namifusion.com/api/v1/marketplace/run/tasks/${task.task_uuid}`, { headers: HEADERS });
  if (!poll.ok) throw new Error(`poll failed: ${poll.status}`);
  task = await poll.json();
}

console.log(task.status, task.output);

ドキュメント

Seedream 5.0 Flash レイヤー分解

doubao/seedream-v5.0-flash/layer-decomposition

画像1枚をベース画像と最大16レイヤーに分解。出力1枚 $0.018、1回につき最大 $0.306 を前払いし、実際の枚数で精算します。

料金

BytePlus の公式定価と同額:出力画像1枚につき $0.018 = 1.8 クレジット。入力画像は無料で、対応するすべてのサイズに同じ単価を適用します。1米ドル = 100クレジット。アカウント割引は別途適用されます。

1回のリクエストで、ベース画像1枚と最大16レイヤーの計17枚分として **30.6クレジット($0.306)**を先に差し引きます。完了後に 実際の出力枚数 × 1.8クレジットで精算し、差額を返金します。ベース画像1枚と5レイヤーの場合は10.8クレジット($0.108)です。モデル一覧は1枚単価、リクエスト見積もりは最大前払い額を表示します。失敗したタスクは返金されます。

パラメーター

パラメーター必須既定値 / 制限
image必須1 件の画像URL
prompt任意5000 文字
output_format任意png; jpeg, png
size任意auto; 1K, 1.5K, 2K, auto

レイヤー分解の size は 1K、1.5K、2K、auto(既定)のみで、ピクセル寸法指定は非対応です。image は画像URLを1件だけ含む必須配列です。prompt は任意です。レイヤー数はモデルが決定し、num_images や num_layers パラメーターはありません。

呼び出し例

curl -X POST 'https://www.namifusion.com/api/v1/marketplace/run/doubao/seedream-v5.0-flash/layer-decomposition' \
  -H "Authorization: Bearer $API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "input": {
    "image": [
      "https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/09/24/89b481bb63b1.jpeg"
    ],
    "prompt": "Decompose the scene into clean transparent layers with accurate separation of the desk objects, preserving fine edges, shadows, and background details for easy compositing and editing.",
    "output_format": "png",
    "size": "auto"
  }
}'
curl 'https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID' \
  -H "Authorization: Bearer $API_KEY"

応答

送信後に task_uuid と status が返ります。同じAPIキーで completed または failed になるまでポーリングします。成功した画像URLは output.images に含まれます。cost_credits の単位はクレジットで、精算完了までは前払い額の場合があります。編集・分解ではアクセス可能なご自身の画像URLに置き換えてください。サンプル画像はMaaSの公開例です。

BytePlus official pricing · Official image API

関連モデル

xAI Grok Imagine Image v2.0 画像編集
画像から画像X Ai

xAI Grok Imagine Image v2.0 画像編集

xAI Grok Imagine Image V2.0 Edit は、テキストによるプロンプトを使って入力画像を編集できるモデルです。解像度と品質を設定でき、精密な画像編集、ビジュアル調整、クリエイティブなバリエーション、SNS コンテンツ、マーケティング素材、制作ワークフローに適しています。すぐに使える REST 推論 API を提供し、高性能・コールドスタートなし・手頃な価格で利用できます。

〜 $0.090 / 1 回
qwen-image-edit-spicy
画像から画像

qwen-image-edit-spicy

テキスト指示で画像を精密に編集。要素の追加・削除・変更、スタイル変換、背景置換に対応し、写真補正やビジュアルデザインに適しています。

〜 $0.040 / 1 回
Qwen Image 3.0 Pro Edit|高速画像編集
画像から画像Qwen Image 3.0 Pro

Qwen Image 3.0 Pro Edit|高速画像編集

Qwen Image 3.0 Pro Edit は、優れた画質と高度な指示理解を備えたプロ向けの画像編集モデルです。最大 2k に対応。すぐに使える REST inference API を提供し、高性能、コールドスタートなし、手頃な価格で利用できます。

〜 $0.078 / 1 回
OpenAI GPT Image 2.5 Sunburst 画像編集
画像から画像OpenAI

OpenAI GPT Image 2.5 Sunburst 画像編集

最大 16 枚の参照画像を使用し、高精細で正確な画像編集を行います。

〜 $0.220 / 1 回
OpenAI GPT Image 2.5 Flare 画像編集
画像から画像OpenAI

OpenAI GPT Image 2.5 Flare 画像編集

自然言語の指示と最大 16 枚の参照画像を使用して、高速でバランスの取れた画像編集を行います。

〜 $0.220 / 1 回
画像から画像
画像から画像NamiFusion

ヘッドスワップ(画像)

namifusion/head-swap/image-edit. 画像・動画・顔交換のモデル API を閲覧。試してから統一 REST API で統合。

〜 $0.220 / 1 回
Nano Banana 画像編集
画像から画像Google

Nano Banana 画像編集

高速・低価格な編集。 マスキング不要で、直感的なオブジェクト置換やスタイル変換が可能。

〜 $0.038 / 1 回
Nano Banana Pro 画像編集
画像から画像Google

Nano Banana Pro 画像編集

4K セマンティック編集。自然言語で画像を修正。文脈認識と画像内多言語テキスト編集に対応。

〜 $0.140 / 1 回