تصویرBlack Forest Labsجدید

FLUX Kontext Pro

ویرایش تصاویر با دستورالعمل های متنی

model: "flux-kontext-pro"

حالت‌ها

یک شناسه مدل، هر حالتی در زیر. فیلدهایی که شما ارسال می‌کنید حالت را انتخاب می‌کنند و قیمت مطابق حالت تعیین می‌شود.

حالتانتخاب شده توسطقیمت معمول
ویرایش تصویر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