コンテンツへスキップ

Krea 3 Edit

統合

モデルID krea/v3/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/krea/v3/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.026 26 APIクレジット このページで実行

APIキーを取得
Krea 画像編集 #image-editing#multi-reference#image-to-image#krea

テキスト指示で 1 から 8 枚の参照画像を編集または合成する Krea 3 画像編集

Krea · 画像

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

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

リクエストを作成

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

•必須 88 / 5000

目的の出力画像の説明。

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

編集または結合する1~8枚の画像の順序付きコレクション。位置によって<image-N>タグが割り当てられます。

image_size デフォルト auto

出力サイズ。`auto`を指定すると、プロンプトエキスパンダーが約2048×2048の比率を選択します。サイズは合計4,220,160ピクセル(1680×2512)の上限内で、16の倍数に切り上げられます。

詳細設定 negative_prompt · model · reasoning_level · output_format · seed · enable_safety_checker
0 / 1024

画像から除外する内容。この入力を使用するのはberryのみです。

model デフォルト berry

モデルバリアントの選択。berryは品質を、jamは速度を優先します。

reasoning_level デフォルト medium

編集タスクにおけるハーネスの推論負荷。高い設定ほど生成時間が長くなる代わりに、より多くの推論を行います。

output_format デフォルト png

生成される画像の形式。

以前に生成した出力を追加編集するたびに、新しい潜在ノイズシードを選択します。

POST /run/krea/v3/edit?wait=20 見積もり → $0.026
# 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/krea/v3/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キーを取得

Krea 3 Editについて

`image_urls` で指定した 1 から 8 枚の画像を、最大 5000 文字の `prompt` に従って編集または結合します。`model` では berry(品質)または jam(速度)を選択します。`reasoning_level` は low から ultra の範囲で、`image_size` はプリセットまたは auto を受け付け、最大 4,220,160 ピクセルです。`negative_prompt` は berry のみに適用されます。

パラメータ

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

名前型 デフォルト許可される値 説明
prompt必須
型string
≤ 5,000文字
目的の出力画像の説明。
image_urls必須 images
型url[] · image
≤ 8項目
編集または結合する1~8枚の画像の順序付きコレクション。位置によって<image-N>タグが割り当てられます。
model任意
型enum
デフォルトberry
berryjam
モデルバリアントの選択。berryは品質を、jamは速度を優先します。
image_size任意
型object
デフォルトauto
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9auto
出力サイズ。`auto`を指定すると、プロンプトエキスパンダーが約2048×2048の比率を選択します。サイズは合計4,220,160ピクセル(1680×2512)の上限内で、16の倍数に切り上げられます。
reasoning_level任意
型enum
デフォルトmedium
lowmediumhighultra
編集タスクにおけるハーネスの推論負荷。高い設定ほど生成時間が長くなる代わりに、より多くの推論を行います。
negative_prompt任意
型string
デフォルト
≤ 1,024文字
画像から除外する内容。この入力を使用するのはberryのみです。
seed任意
型integer | null
以前に生成した出力を追加編集するたびに、新しい潜在ノイズシードを選択します。
output_format任意
型enum
デフォルトpng
pngjpeg
生成される画像の形式。
enable_safety_checker任意
型boolean
デフォルトtrue
出力画像の安全でない内容のスクリーニング。無効化にはアカウント認証が必要です。
必須 正式名称(こちらも使用可能)

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

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "krea/v3/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": 26,
    "usd": "0.026",
    "charged": 26,
    "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,
    "prompt": "string",
    "timings": {},
    "has_nsfw_concepts": [
      false
    ]
  },
  "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生成時に潜在ノイズを供給したシード。
prompt
string出力の生成に使用した拡張済みプロンプト。
timings
objectステージごとの生成時間を秒単位で測定した値。`inference`でのGPUサンプリング総時間を含みます。
has_nsfw_concepts
array of boolean画像ごとの安全性評価。

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

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