รูปภาพBlack Forest Labsใหม่

FLUX Kontext Pro

แก้ไขภาพด้วยคำสั่งข้อความ

model: "flux-kontext-pro"

เอกสาร APIเอกสารสำหรับตัวแทน

โหมด

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