画像Black Forest Labs新規

FLUX Kontext Pro

テキスト命令で画像を編集

model: "flux-kontext-pro"

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

モード

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

モード選択方法標準価格
画像編集image_url
リクエスト例
{
  "model": "flux-kontext-pro",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.040
構造制御modecontrol_image_url
リクエスト例
{
  "model": "flux-kontext-pro",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg",
    "mode": "structure",
    "control_image_url": "https://example.com/image.jpg"
  }
}
$0.050

入力

必須

Prompt

必須

Image to edit. A public https URL, or an upload URL from POST /v1/uploads.

オプション
1

Count

オプション

Control image (https URL), with mode "structure".

オプション

Selects a mode that the other fields cannot: "structure" follows the edges or depth of a control image.

オプション

Follow the control image's edges (canny) or its depth.

詳細オプション (4)

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

オプション

Let the model rewrite the prompt for better results.

オプション
-

How strictly the model follows the prompt. Higher is more literal.

オプション

File format of the result.

オプション

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

結果

FLUX Kontext Pro出力例

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

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "flux-kontext-pro",
  "input": {
    "prompt": "man with the bycycle"
  }
}'
FLUX Kontext Pro 1FLUX Kontext Pro 2FLUX Kontext Pro 3FLUX Kontext Pro 4FLUX Kontext Pro 5FLUX Kontext Pro 6