彈性參數
可設定 4 個已記錄的參數,包括 image_url, output_format, prompt, size。
curl -X POST https://runapi.ai/api/v1/seedream/decompose_layers \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-5-pro-layer-decomposition",
"prompt": "Create a social media graphic for a coffee shop sale with the text '50% OFF' in bold, warm tones, 4K."
}'
import { SeedreamClient } from "@runapi.ai/seedream";
const client = new SeedreamClient();
const result = await client.decomposeLayers.run({
model: "seedream-5-pro-layer-decomposition",
prompt: "Create a social media graphic for a coffee shop sale with the text '50% OFF' in bold, warm tones, 4K.",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/seedream/decompose_layers",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"seedream-5-pro-layer-decomposition","prompt":"Create a social media graphic for a coffee shop sale with the text '50% OFF' in bold, warm tones, 4K."}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/seedream/decompose_layers");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'seedream-5-pro-layer-decomposition',
'prompt' => 'Create a social media graphic for a coffee shop sale with the text \'50% OFF\' in bold, warm tones, 4K.',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.decomposeLayers().run({"model":"seedream-5-pro-layer-decomposition","prompt":"Create a social media graphic for a coffee shop sale with the text '50% OFF' in bold, warm tones, 4K."});
task.waitForResult();
require "runapi/seedream"
client = RunApi::Seedream::Client.new
result = client.decompose_layers.run(
model: "seedream-5-pro-layer-decomposition",
prompt: "Create a social media graphic for a coffee shop sale with the text '50% OFF' in bold, warm tones, 4K."
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.decomposeLayers.Run({"model":"seedream-5-pro-layer-decomposition","prompt":"Create a social media graphic for a coffee shop sale with the text '50% OFF' in bold, warm tones, 4K."})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model seedream-5-pro-layer-decomposition \
--endpoint decompose_layers \
--wait
9 個版本可用
選擇任一模型,幾秒內即可開始生成。
選擇任一模型,幾秒內即可開始生成。
| 提供者 | Bytedance |
| 模型 ID | seedream-5-pro-layer-decomposition |
| 模態 | Image |
| 任務類型 | Asynchronous |
| API 端點 | /api/v1/seedream/decompose_layers |
| 計費單位 | call |
| 輸入參數 | image_url, output_format, prompt, size |
| 輸出格式 | png, jpeg |
| 目錄狀態 | 可直接上線 |
免費註冊後,從控制台建立 seedream-5-pro-layer-decomposition 的 API 金鑰。
向 /api/v1/seedream/decompose_layers 傳送 POST 請求,並傳入 seedream-5-pro-layer-decomposition 模型 ID 與參數。
輪詢工作或依照回呼取得已完成的 seedream-5-pro-layer-decomposition 結果。
可設定 4 個已記錄的參數,包括 image_url, output_format, prompt, size。
公開 1 個公共 endpoint:decompose_layers。
依 call 計量,無需訂閱。
size暫無描述。 (auto, 1K, 1.5K, 2K)
promptOptional instructions describing which elements to separate.
image_urlExactly one public PNG, JPEG, WebP, BMP, TIFF, or GIF image URL; HEIC and HEIF are unsupported. Maximum 30 MB, 262,144-36,000,000 total pixels, and aspect ratio 1:16-16:1.
output_formatBase image format. Separated layers are PNG. (png, jpeg)
為缺少棚拍照片的電商型錄,自動生成生活風格產品照片。
在定稿前快速發想場景與角色概念。
大規模生成部落格文章與專欄所需的獨特封面與插圖。
傳入 quickstart 顯示的 model ID。
每個金鑰的速率限制會依使用方案而調整。請查看定價頁面以了解目前限制。
可以——variant 只是旗標。只要變更 model 參數即可切換。
只要支援串流,RunAPI 就會端到端串流。
請在公開 GitHub repo 提交 issue,或寄信給支援。