seedinteger
The seed to use for the generation. If not provided, a random seed will be used.
bfl/flux-2/turbo/editFlux 2 Turbo Edit is BFL's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.
Modell testen
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
{
"prompt": "Change the weather to winter"
}Menschliche Präferenz
Elo-Wertungen aus anonymen Direktvergleichen, verglichen mit anderen Bild- und Videomodellen.
Ranglisten aus Artificial Analysis Arena
Arena für Bildbearbeitung: Personen wählen aus zwei Bearbeitungen desselben Bildes und derselben Anweisung die bessere aus, ohne die Modellnamen zu sehen.
FLUX.2 Turbo, a distilled FLUX.2 for fast generation. Edit or combine images with an instruction.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Text instruction. |
images | image URL[] | — | Images to edit or combine, Image 1, Image 2, … |
guidance_scale | number 0–20 | 2.5 | How strictly to follow the prompt. |
output_format | jpeg / png | png | Output file format. |
aspect_ratio | 21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16 | — | Output shape. |
seed | integer | random | Fix it to compare prompt changes. |
$0.048 per output image, plus $0.008 for each input image after the first.
| Inputs | Price |
|---|---|
| 1 input image | $0.048 |
| 2 input images | $0.056 |
| 4 input images | $0.072 |
Failed runs are not charged.
Other FLUX.2 endpoints: bfl/flux-2/max/edit, bfl/flux-2/pro/edit, bfl/flux-2/flex/edit, bfl/flux-2/dev/edit, bfl/flux-2/turbo.
Jetzt loslegen
Senden Sie dieses Modell über die SandBase Unified Run API.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "bfl/flux-2/turbo/edit",
"images": [
"https://static.sandbase.ai/examples/bfl/flux-2/turbo/edit/output_url_0.png"
],
"prompt": "Change the weather to winter",
"output_format": "png",
"guidance_scale": 2.5
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Erstellen Sie einen SandBase API-Schlüssel und legen Sie ihn in Ihrer Serverumgebung fest. Alle Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie den Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis und committen Sie ihn nicht in ein Repository.
POST an /v1/run mit dieser Modell-ID und ihren Eingaben. Das obige Anfragebeispiel umfasst Übermittlung und Polling.
Verwenden Sie die zurückgegebene Run-ID zum Polling, bis der Status completed, failed oder timeout ist. Lesen Sie die Ausgabe erst nach completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Übergeben Sie eine öffentlich zugängliche Date-URL im Bild-, Video- oder Audiofeld des Modells. Unterstützte Formate und Limits werden neben jedem Playground-Eingabefeld angezeigt.
Verwenden Sie im Playground bei unterstützten Bildfeldern die Steuerung zum Hochladen oder Ersetzen. Video-URL-Felder akzeptieren ein gehostetes Fahrvideo; sie implizieren keine Unterstützung für Video-Uploads.
seedintegerThe seed to use for the generation. If not provided, a random seed will be used.
imagesarrayThe URLs of the images for editing. A maximum of 4 images are allowed, if more are provided, only the first 4 will be used.
promptstringerforderlichThe prompt to edit the image.
aspect_ratiostringThe aspect ratio of the generated image.
Mögliche Werte: "21:9", "16:9", "3:2", "4:3", "5:4", "1:1", "4:5", "3:4", "2:3", "9:16"
output_formatstringThe format of the generated image.
Standard: "png"
Mögliche Werte: "jpeg", "png"
guidance_scalenumberGuidance Scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you.
Standard: 2.5
Minimum: 0
Maximum: 20
{
"model": "bfl/flux-2/turbo/edit",
"images": [
"https://static.sandbase.ai/examples/bfl/flux-2/turbo/edit/output_url_0.png"
],
"prompt": "Change the weather to winter",
"output_format": "png",
"guidance_scale": 2.5
}Ein abgeschlossener Run stellt sein Ergebnis in der Ausgabe bereit. Das Folgende ist das gespeicherte Beispiel des Modells, keine neue Generierung.
[
{
"source": "BFL/FLUX schema mirror",
"source_url": "https://docs.bfl.ai/flux_2/flux2_overview",
"url": "https://static.sandbase.ai/examples/492dcb37-ccaf-43dc-981a-8f172e95ea28/output/4f95e1be-5fe7-4ea6-9815-7dcbdabeb8e0.png"
}
]