画像Black Forest Labs

Inpaint (FLUX Fill)

マスク領域をプロンプトから再描画し、画像の残りの部分に調和させます。

model: "inpaint-flux-fill"

APIドキュメントエージェント用ドキュメント

モード

1つのモデルID、すべてのモード。送信するフィールドがモードを決定し、価格はモードに従います。

モード選択方法標準価格
画像入力、画像出力image_urlmask_url
リクエスト例
{
  "model": "inpaint-flux-fill",
  "input": {
    "image_url": "https://example.com/image.jpg",
    "mask_url": "https://example.com/image.jpg",
    "prompt": "a lighthouse at dusk"
  }
}
$0.050

実際の実行結果

これはツールの実際の出力です(隣の画像で)。下のプレイグラウンドは同じ入力で開くため、自分で実行できます。

Inpaint (FLUX Fill): 変更前
変更前
Inpaint (FLUX Fill): 変更後
変更後

入力

必須

What to paint in the masked area.

必須

The image to work on (https URL, or an upload URL from POST /v1/uploads).. A public https URL, or an upload URL from POST /v1/uploads.

必須

White marks the area to repaint, black is kept (https URL).. A public https URL, or an upload URL from POST /v1/uploads.

詳細オプション (3)

メインコントロール以外のプロバイダー設定。空のままにするとモデルのデフォルト値が使用されます。

オプション

Let the model rewrite the prompt for better results.

オプション

File format of the result.

オプション

Random seed. The same seed and input reproduce the same result.

結果

Inpaint (FLUX Fill)出力例

このモデルの実際の結果です。実行してあなたの結果をここに表示させてください。

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "inpaint-flux-fill",
  "input": {
    "image_url": "https://assets.arteza.ai/generations/6d82f9c2-c1a0-4ad0-9b3e-96a532c1748d/babdfe77-4b1f-47a5-b168-02ca5830abb6/0.jpg",
    "mask_url": "https://assets.arteza.ai/uploads/6d82f9c2-c1a0-4ad0-9b3e-96a532c1748d/api/oqsLYVdazMWOeIzRouFbFA.png",
    "prompt": "a small red ribbon bow"
  }
}'
Inpaint (FLUX Fill) 1Inpaint (FLUX Fill) 2