Seedream 5.0 Flash 画像編集
doubao/seedream-v5.0-flash/image-to-image
テキストと1~10枚の参照画像から画像を1枚生成。対応する全サイズで1枚 $0.018、入力参照画像は無料です。
サンプル
パラメータ
| 名前 | 型 | 既定 | 制約 | 説明 |
|---|---|---|---|---|
| prompt *プロンプト | textarea | — | ≤ 5000 chars | 生成に使用するポジティブプロンプトです。 |
| images *画像 | image_upload | — | image/* · 1–10 items | 編集する画像です。参照画像は最大 10 枚までアップロードできます。 |
| sizeサイズ | text | 1024x1024 | — | 生成される画像の幅と高さのピクセル値を指定します。総ピクセル値の範囲:[1280*720, 2048*2048*1.1025] |
| output_format出力形式 | select | jpeg | jpeg | png | 出力画像の形式です。 |
出力フィールド
| フィールド | 型 | 説明 |
|---|---|---|
| images | array<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/image-to-image" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "Transform the input product photo into a clean premium studio advertisement image: keep the main subject and overall composition, remove background clutter, place it on a soft neutral backdrop with natural shadows, enhance lighting and color accuracy, sharpen important details, and give it a polished high-end commercial look.",
"images": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/09/24/2c544aa09e3a.jpeg"
],
"size": "1024x1024",
"output_format": "jpeg"
}
}'
# 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/image-to-image",
headers=HEADERS,
json={
"input": {
"prompt": "Transform the input product photo into a clean premium studio advertisement image: keep the main subject and overall composition, remove background clutter, place it on a soft neutral backdrop with natural shadows, enhance lighting and color accuracy, sharpen important details, and give it a polished high-end commercial look.",
"images": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/09/24/2c544aa09e3a.jpeg"
],
"size": "1024x1024",
"output_format": "jpeg"
}
},
)
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/image-to-image", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"prompt": "Transform the input product photo into a clean premium studio advertisement image: keep the main subject and overall composition, remove background clutter, place it on a soft neutral backdrop with natural shadows, enhance lighting and color accuracy, sharpen important details, and give it a polished high-end commercial look.",
"images": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/09/24/2c544aa09e3a.jpeg"
],
"size": "1024x1024",
"output_format": "jpeg"
}
}),
});
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/image-to-image
テキストと1~10枚の参照画像から画像を1枚生成。対応する全サイズで1枚 $0.018、入力参照画像は無料です。
料金
BytePlus の公式定価と同額:出力画像1枚につき $0.018 = 1.8 クレジット。入力画像は無料で、対応するすべてのサイズに同じ単価を適用します。1米ドル = 100クレジット。アカウント割引は別途適用されます。
1回のリクエストで画像を1枚生成し、割引前の料金は1.8クレジット($0.018)です。参照画像の枚数による追加料金はありません。失敗したタスクは返金されます。
パラメーター
| パラメーター | 必須 | 既定値 / 制限 |
|---|---|---|
prompt | 必須 | 5000 文字 |
images | 必須 | 1–10 件の画像URL |
size | 任意 | 1024x1024 |
output_format | 任意 | jpeg; jpeg, png |
画像サイズは size で指定します。生成・編集では 幅x高さ を使用でき、総画素数921,600~4,624,220、縦横比1:16~16:1の両方を満たす必要があります。例:1024x1024、1536x1536、2048x2048、2048x1024。512x512 と 4K は範囲外です。現在のMaaS仕様では size を使用し、resolution や aspect_ratio を別に送信しないでください。
呼び出し例
curl -X POST 'https://www.namifusion.com/api/v1/marketplace/run/doubao/seedream-v5.0-flash/image-to-image' \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"input": {
"prompt": "Transform the input product photo into a clean premium studio advertisement image: keep the main subject and overall composition, remove background clutter, place it on a soft neutral backdrop with natural shadows, enhance lighting and color accuracy, sharpen important details, and give it a polished high-end commercial look.",
"images": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/09/24/2c544aa09e3a.jpeg"
],
"size": "1024x1024",
"output_format": "jpeg"
}
}'
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の公開例です。
関連モデル
xAI Grok Imagine Image v2.0 画像編集
xAI Grok Imagine Image V2.0 Edit は、テキストによるプロンプトを使って入力画像を編集できるモデルです。解像度と品質を設定でき、精密な画像編集、ビジュアル調整、クリエイティブなバリエーション、SNS コンテンツ、マーケティング素材、制作ワークフローに適しています。すぐに使える REST 推論 API を提供し、高性能・コールドスタートなし・手頃な価格で利用できます。
qwen-image-edit-spicy
テキスト指示で画像を精密に編集。要素の追加・削除・変更、スタイル変換、背景置換に対応し、写真補正やビジュアルデザインに適しています。
Qwen Image 3.0 Pro Edit|高速画像編集
Qwen Image 3.0 Pro Edit は、優れた画質と高度な指示理解を備えたプロ向けの画像編集モデルです。最大 2k に対応。すぐに使える REST inference API を提供し、高性能、コールドスタートなし、手頃な価格で利用できます。
OpenAI GPT Image 2.5 Sunburst 画像編集
最大 16 枚の参照画像を使用し、高精細で正確な画像編集を行います。
OpenAI GPT Image 2.5 Flare 画像編集
自然言語の指示と最大 16 枚の参照画像を使用して、高速でバランスの取れた画像編集を行います。
ヘッドスワップ(画像)
namifusion/head-swap/image-edit. 画像・動画・顔交換のモデル API を閲覧。試してから統一 REST API で統合。
Nano Banana 画像編集
高速・低価格な編集。 マスキング不要で、直感的なオブジェクト置換やスタイル変換が可能。
Nano Banana Pro 画像編集
4K セマンティック編集。自然言語で画像を修正。文脈認識と画像内多言語テキスト編集に対応。