flux-2Standardam günstigstenFlux 2 API — wie man verbindet und bezahlt
Flux 2 — die neue FLUX-Generation. Text-zu-Bild und Bild-zu-Bild.
Kanalvergleich
letzte 7 Tage
flux-2:flow| Kanal | Preis |
|---|---|
Pixel flux-2Standardam günstigsten | ab $0.033333 per image |
Flow flux-2:flow | ab $0.04 per image |
Erstelle das benötigte Ergebnis
flux-2Was ist Flux 2
Flux 2 — die neue FLUX-Generation. Text-zu-Bild und Bild-zu-Bild.
Vertrag auf einen Blick
- Eingabe
- text, image
- Ausgabe
- image
- Modus
- asynchron (Auftrag + Abruf)
- Statusabfrage
- alle 3 s · bis zu 90 s
Stärken
- Preisgestaltung: pro Bild
- Eingaben: Text, Bild
- 5 konfigurierbare Optionen
- Ein API-Schlüssel für die Mediengenerierung
Wo es eingesetzt wird
- Illustrationen für Artikel und soziale Medien
- Produktbilder
- Banner und Titelbilder
- Design-Prototypen
API-Vertrag
Die Generierung läuft asynchron: Erstelle einen Auftrag und frage anschließend seinen Status bis zum Abschluss ab.
- Auftrag erstellen
- POST /api/media/generate
- Status prüfen
- GET /api/media/jobs/{jobId}
- Eingabe
- text, image
- Ausgabe
- image
- Statusabfrage
- alle 3 s · bis zu 90 s
- Authentifizierung
- Authorization: Bearer sk-pv-…
Beispielanfrage
Übermittle deinen Schlüssel im Bearer-Header. Die API gibt jobId für die Statusabfrage zurück.
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"flux-2","prompt":"a beautiful landscape","opts":{"aspect_ratio":"1:1","tier":"pro","mode":"text-to-image","resolution":"1K"}}'JavaScript
const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "flux-2",
"prompt": "a beautiful landscape",
"opts": {
"aspect_ratio": "1:1",
"tier": "pro",
"mode": "text-to-image",
"resolution": "1K"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);API-Anfrageparameter
Parameter für Anfragen an Flux 2 über die GetVibe API.
prompterf.image_urlaspect_ratiotiermoderesolutioninput_urlsimage_file_idimage_base64input_file_idsinput_base64| Parameter | Typ | Werte | Standard | Preis |
|---|---|---|---|---|
prompterf. | text | text description | required | — |
image_url | URL | Public image URL | — | — |
aspect_ratio | option selection | 1:1 (default) · 16:9 · 9:16 · 4:3 · 3:4 | 1:1 | Included in the base price |
tier | option selection | Pro (top quality) (default) · Flex (fast) | Pro (höchste Qualität) | Pro (top quality): $0.033333, Flex (fast): $0.066667 |
mode | option selection | Generate (text → image) (default) · Image-to-Image | Generieren (Text → Bild) | Included in the base price |
resolution | option selection | 1K (default) · 2K | 1K | 1K: $0.033333, 2K: $0.046667 |
input_urls | Array<URLs>, 0–8 items | Public HTTP(S) URLs | — | Included in the base price |
image_file_id | text | Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
image_base64 | text | Alternative to image_url: the file inline, as base64 or a data: URI | — | Included in the base price |
input_file_ids | Array<strings> | List of values | — | Included in the base price |
input_base64 | Array<strings> | List of values | — | Included in the base price |
Anfrage: POST https://getvibeapi.com/api/media/generate. Preise in USD.
Preis von Flux 2
Die Kosten für Flux 2: von $0.033333 per image. Der Preis wird dynamisch zum aktuellen Wechselkurs berechnet, und der endgültige Betrag wird in der API-Antwort angezeigt (priceRub). Zahlung in USD, keine Abonnements.
Was eine Standardanfrage kostet
Ohne gesendete Parameter verwendet die Anfrage diese Werte: Resolution — 1K, Version and quality — Pro (top quality), Mode — Generate (text → image), Frame format — 1:1. Diese Anfrage kostet $0.033333.
Kanäle und Preise für jede Parameterkombination
Für jeden Kanal der Preis jeder Parameterkombination. Dies ist genau der Betrag, der für eine erfolgreiche Generierung berechnet wird, und entspricht dem Wert in der unten verlinkten maschinenlesbaren Tabelle.
Pixelflux-2ab $0.033333exakte Preise
| Version \ Auflösung | 1K | 2K |
|---|---|---|
| Pro (höchste Qualität) | $0.033333 | $0.046667 |
| Flex (schnell) | $0.066667 | $0.16 |
Jede Kombination als JSON: /api/media/price-table?model=flux-2
Flowflux-2:flowab $0.04exakte Preise
| Version \ Auflösung | 1K | 2K |
|---|---|---|
| Pro (höchste Qualität) | $0.04 | $0.10 |
| Flex (schnell) | $0.066667 | $0.266667 |
Jede Kombination als JSON: /api/media/price-table?model=flux-2%3Aflow
README
Der maschinenlesbare Vertrag für Flux 2 enthält das Anfrage-Schema, Vorgänge, Limits, Statusabfragen und Antwortbeispiele.
# Flux 2
Öffentliches Modell: flux-2
Auftrag erstellen: POST /api/media/generate
Status prüfen: GET /api/media/jobs/{jobId}
## Eingabeparameter
- `prompt` (text): text description; Standard: required
- `image_url` (URL): Public image URL; Standard: —
- `aspect_ratio` (option selection): 1:1 (default) · 16:9 · 9:16 · 4:3 · 3:4; Standard: 1:1
- `tier` (option selection): Pro (top quality) (default) · Flex (fast); Standard: Pro (top quality)
- `mode` (option selection): Generate (text → image) (default) · Image-to-Image; Standard: Generate (text → image)
- `resolution` (option selection): 1K (default) · 2K; Standard: 1K
- `input_urls` (Array<URLs>, 0–8 items): Public HTTP(S) URLs; Standard: —
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); Standard: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; Standard: —
- `input_file_ids` (Array<strings>): List of values; Standard: —
- `input_base64` (Array<strings>): List of values; Standard: —
## Öffentliche Varianten
- `flux-2`: Pixel
- `flux-2:flow`: FlowFAQ zur Flux 2-API
Wie viel kostet Flux 2?
Der Preis von Flux 2: von $0.033333 per image. Der Preis wird dynamisch zum aktuellen Wechselkurs berechnet.
Ist es mit dem OpenAI SDK kompatibel?
Ja, die API ist vollständig OpenAI-kompatibel. Ändere einfach base_url zu https://getvibeapi.com/v1 und setze deinen Schlüssel — der restliche Code bleibt unverändert.
Flux 2 jetzt verbinden
In einer Minute registrieren, nach Nutzung bezahlen, fertiger Code oben.
API-Schlüssel erhalten