ImageBlack Forest LabsNouveau

FLUX Kontext Pro

Éditez des images avec des instructions textuelles

model: "flux-kontext-pro"

Modes de génération

Un seul ID de modèle, tous les modes ci-dessous. Les champs que vous envoyez déterminent le mode, et le prix dépend du mode.

Mode de générationSélectionné parPrix typique
Édition d'imageimage_url
Exemple de requête
{
  "model": "flux-kontext-pro",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.040
Contrôle de structuremodecontrol_image_url
Exemple de requête
{
  "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

Entrée

Obligatoire

Prompt

Obligatoire

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

Facultatif
1

Count

Facultatif

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

Facultatif

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

Facultatif

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

Options avancées (4)

Paramètres du fournisseur au-delà des contrôles principaux. Laissez-les vides pour utiliser les valeurs par défaut du modèle.

Facultatif

Let the model rewrite the prompt for better results.

Facultatif
-

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

Facultatif

File format of the result.

Facultatif

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

Résultat

FLUX Kontext ProExemple de résultat

Un vrai résultat de ce modèle. Lancez-le pour voir le vôtre ici.

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