Hình ảnhBlack Forest LabsMới

FLUX Kontext Pro

Chỉnh sửa hình ảnh bằng hướng dẫn văn bản

model: "flux-kontext-pro"

Tài liệu APITài liệu dành cho agents

Các chế độ

Một ID mô hình, mọi chế độ bên dưới. Các trường bạn gửi chọn chế độ, và giá theo chế độ.

Chế độĐược chọn bằngGiá điển hình
Chỉnh sửa hình ảnhimage_url
Yêu cầu ví dụ
{
  "model": "flux-kontext-pro",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.040
Điều khiển cấu trúcmodecontrol_image_url
Yêu cầu ví dụ
{
  "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

Đầu vào

Bắt buộc

Prompt

Bắt buộc

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

Tùy chọn
1

Count

Tùy chọn

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

Tùy chọn

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

Tùy chọn

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

Tùy chọn nâng cao (4)

Cài đặt nhà cung cấp ngoài các điều khiển chính. Để trống để sử dụng các giá trị mặc định của mô hình.

Tùy chọn

Let the model rewrite the prompt for better results.

Tùy chọn
-

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

Tùy chọn

File format of the result.

Tùy chọn

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

Kết quả

FLUX Kontext ProKết quả mẫu

Kết quả thực từ mô hình này. Chạy để xem kết quả của bạn ở đây.

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