ImageBlack Forest LabsNouveau

FLUX.1 Schnell

Génération d'images ultra-rapide en moins d'une seconde

model: "flux-schnell"

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
Texte vers imageprompt
Exemple de requête
{
  "model": "flux-schnell",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.0030
Contrôle de structuremodecontrol_lora_image_url
Exemple de requête
{
  "model": "flux-schnell",
  "input": {
    "prompt": "a lighthouse at dusk",
    "mode": "structure",
    "control_lora_image_url": "https://example.com/image.jpg"
  }
}
$0.040

Entrée

Obligatoire

Prompt

Facultatif

Image Size

Facultatif
1

Number of Images

Facultatif

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

Facultatif
4

Steps

Facultatif

Seed

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 (3)

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

Facultatif

Faster inference at a small cost in detail.

Facultatif
-

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

Facultatif

File format of the result.

Résultat

FLUX.1 SchnellExemple 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-schnell",
  "input": {
    "prompt": "a cute cat being affectionate with a young girl, cat nuzzling the girl, warm and heartwarming scene, soft natural lighting"
  }
}'
FLUX.1 Schnell 1FLUX.1 Schnell 2FLUX.1 Schnell 3FLUX.1 Schnell 4FLUX.1 Schnell 5FLUX.1 Schnell 6