コンテンツへスキップ

Bytedance Seedream V4 Edit

統合

モデルID bytedance/seedream/v4/edit
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bytedance/seedream/v4/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

このリクエスト: $0.03 30 APIクレジット このページで実行

APIキーを取得
ByteDance 画像編集 4K出力 #stylized#transform#editing

最大10枚の入力画像をプロンプトで編集し、複数画像出力と高速または標準のプロンプト拡張に対応

ByteDance · 画像

最初の結果がここに表示されます

以下でリクエストを作成し、APIキーで実行してください。出力はストレージにコピーされ、永久保存または無料で7日保存されます。

リクエストを作成

コントロールはモデルスキーマから生成されます。値を変更するとコードと価格が更新されます。

•必須

画像を編集するためのテキスト指示。

•必須 image_urls
ファイルをドロップ、または

編集用画像URL。リストが長い場合は最後の10項目から処理されます。現在の入力上限は10画像です。

デフォルト {"height":2048,"width...

生成画像の寸法を選択します。面積が921600ピクセル未満になる場合、アスペクト比を変えずに比例拡大して最小値を満たします。

num_images デフォルト 1

プロンプトを使用して独立したモデル生成を実行する回数。

デフォルト 1

生成ごとの画像上限を`max_images`で設定します。1より大きい値で複数画像生成が有効になります。`num_images`回の生成で、各回は最大`max_images`枚を返せるため、出力総数は`num_images`から`max_images*num_images`の範囲になります。入力と出力を合わせて使用できる画像は15枚までです。

詳細設定 enhance_prompt_mode · seed · enable_safety_checker
enhance_prompt_mode デフォルト standard

品質と時間のトレードオフに応じてプロンプト強化モードを選択します。Fastは短時間ですが平均的な品質、Standardは時間がかかりますが高品質になります。

画像生成中のランダム性を制御するランダムシード。

POST /run/bytedance/seedream/v4/edit?wait=20 見積もり → $0.03
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bytedance/seedream/v4/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

このリクエストを実行

キーはこのブラウザ内に保持されます。Doitong APIにのみ送信され、「記憶する」にチェックを入れた場合のみlocalStorageに保存されます。 APIキーを取得

Bytedance Seedream V4 Editについて

テキストプロンプトから既存画像を編集します。`image_urls`には最大10枚を指定できます。10枚を超える場合は最後の10枚のみ使用します。出力サイズにはsquare_hd、portrait_16_9、auto_2K、auto_4Kなどのプリセット、またはカスタムの幅と高さを指定できます。`num_images`と`max_images`はいずれも最大6枚の複数結果に対応し、`enhance_prompt_mode`でstandardとfastを切り替えます。

パラメータ

正式名称またはネイティブ名のいずれか一方を送信してください。両方は送信しないでください。 正式名称

名前型 デフォルト許可される値 説明
prompt必須
型string
画像を編集するためのテキスト指示。
image_size任意
型object
デフォルト{"height":2048,"width":2048}
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9autoauto_2Kauto_4K
生成画像の寸法を選択します。面積が921600ピクセル未満になる場合、アスペクト比を変えずに比例拡大して最小値を満たします。
num_images任意 num_outputs
型integer
デフォルト1
1 – 6
プロンプトを使用して独立したモデル生成を実行する回数。
max_images任意
型integer
デフォルト1
1 – 6
生成ごとの画像上限を`max_images`で設定します。1より大きい値で複数画像生成が有効になります。`num_images`回の生成で、各回は最大`max_images`枚を返せるため、出力総数は`num_images`から`max_images*num_images`の範囲になります。入力と出力を合わせて使用できる画像は15枚までです。
seed任意
型integer | null
画像生成中のランダム性を制御するランダムシード。
enable_safety_checker任意
型boolean
デフォルトtrue
安全性チェックの切り替え。オフにするにはアカウント認証が必要です。認証がない場合、設定に関係なくすべてのリクエストがチェックされます。trueでチェッカーを有効にします。
enhance_prompt_mode任意
型enum
デフォルトstandard
standardfast
品質と時間のトレードオフに応じてプロンプト強化モードを選択します。Fastは短時間ですが平均的な品質、Standardは時間がかかりますが高品質になります。
image_urls必須 images
型url[] · image
編集用画像URL。リストが長い場合は最後の10項目から処理されます。現在の入力上限は10画像です。
必須 正式名称(こちらも使用可能)

ファイルパラメータには、公開されたhttps:// URL、10 MBまでのdata: URI、またはアップロードしたファイルのfile_urlを指定します。 ファイル

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bytedance/seedream/v4/edit",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 30,
    "usd": "0.03",
    "charged": 30,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_urls": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "seed": 42
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ファイルの保存期間を選択すべてのoutputs[].urlはストレージ上のコピーです。アカウント設定または?storage=により、永久保存(GB・月単位で有料)または無料で7日保存できます。
すべてのモデルで同じ形式画像、動画、音声のいずれでも、type、url、content_type、width、height、durationが含まれます。outputはモデル独自の結果オブジェクトです。
出力フィールド
images
array of object {url, content_type, file_name, file_size, width, height}モデルが生成した画像。
seed
integer生成中に使用するシード値。

その他のモデル: 画像編集

AIエージェント向け:このページのMarkdown版はこちらです: https://doitong.com/ja/developers/models/bytedance/seedream/v4/edit.md. すべてのモデルとガイド: https://doitong.com/developers/llms.txt