BildBlack Forest LabsNy

FLUX Kontext Pro

Redigera bilder med textinstruktioner

model: "flux-kontext-pro"

Lägen

Ett modell-ID, alla lägen nedan. De fält du skickar väljer läget, och priset följer läget.

LägeValt avTypiskt pris
Bildredigeringimage_url
Exempelbegäran
{
  "model": "flux-kontext-pro",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.040
Strukturkontrollmodecontrol_image_url
Exempelbegäran
{
  "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

Inmatning

Obligatoriskt

Prompt

Obligatoriskt

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

Valfritt
1

Count

Valfritt

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

Valfritt

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

Valfritt

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

Avancerade alternativ (4)

Leverantörinställningar bortom huvudkontrollerna. Lämna dem tomma för att använda modellens standardvärden.

Valfritt

Let the model rewrite the prompt for better results.

Valfritt
-

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

Valfritt

File format of the result.

Valfritt

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

Resultat

FLUX Kontext ProExempelutmatning

Ett verkligt resultat från denna modell. Kör den för att se ditt resultat här.

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