black-forest-labs/flux-schnell
replicate.image-gen.flux-schnellGenerate up to four images quickly from a text prompt with the official FLUX Schnell model.
- Price
- $0.012/successZum Anbieterpreis
- Success rate
- 99,7 %Last 30 days · 7.221 calls
- Latency p50
- 855 msp95 2.6 s
- Last verified
- 01.09.2026Verified working
POSThttps://toolswitch.dev/v1/tools/replicate.image-gen.flux-schnellPreviewTry onlineDemnächstProvider docs ↗
- Uses platform quota
- Asynchronous response
- Reads public data
Parameter
Dieses Tool hat keine Parameter. Siehe Anbieterdokumentation ↗ Provider docs
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
Preview
curl -X POST 'https://toolswitch.dev/v1/tools/replicate.image-gen.flux-schnell' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"input":{"prompt":"A small red kite above a calm beach.","num_outputs":1,"aspect_ratio":"1:1","output_format":"webp"}}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/replicate.image-gen.flux-schnell",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"input\":{\"prompt\":\"A small red kite above a calm beach.\",\"num_outputs\":1,\"aspect_ratio\":\"1:1\",\"output_format\":\"webp\"}}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/replicate.image-gen.flux-schnell", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"input\":{\"prompt\":\"A small red kite above a calm beach.\",\"num_outputs\":1,\"aspect_ratio\":\"1:1\",\"output_format\":\"webp\"}}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit $0.012/success einschließlich Servicegebühr abgerechnet.