grok-imagine-image-2-0StandardGrok Imagine Image 2.0 API — wie man verbindet und bezahlt
Grok Imagine Image 2.0 (xAI) — Bildgenerierung und referenzbasierte Bearbeitung. Pauschal 4 Pixel-Credits pro Bild in beiden Modi; der Bearbeitungsmodus akzeptiert 1–5 Referenzbild-URLs.
Kanalvergleich
letzte 7 Tage
| Kanal | Preis |
|---|---|
Pixel grok-imagine-image-2-0Standard | ab $0.026667 per image |
Erstelle das benötigte Ergebnis
grok-imagine-image-2-0Was ist Grok Imagine Image 2.0
Grok Imagine Image 2.0 (xAI) — Bildgenerierung und referenzbasierte Bearbeitung. Pauschal 4 Pixel-Credits pro Bild in beiden Modi; der Bearbeitungsmodus akzeptiert 1–5 Referenzbild-URLs.
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
- 2 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
- Designprototypen
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":"grok-imagine-image-2-0","prompt":"a beautiful landscape","opts":{"mode":"text-to-image","aspect_ratio":"1:1"}}'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": "grok-imagine-image-2-0",
"prompt": "a beautiful landscape",
"opts": {
"mode": "text-to-image",
"aspect_ratio": "1:1"
}
}),
});
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 Grok Imagine Image 2.0 über die GetVibe API.
prompterf.image_urlmodeaspect_ratioimage_urlsinput_file_idsimage_file_idimage_base64| Parameter | Typ | Werte | Standard | Preis |
|---|---|---|---|---|
prompterf. | text | text description | required | — |
image_url | URL | Public image URL | — | — |
mode | option selection | Generation (default) · Reference-based editing | Generierung | Generation: $0.026667, Reference-based editing: $0.026667 |
aspect_ratio | option selection | 1:1 (default) · 2:3 · 3:2 · 16:9 · 9:16 | 1:1 | Included in the base price |
image_urls | Array<URLs>, 0–5 items | Public HTTP(S) URLs | — | Included in the base price |
input_file_ids | Array<strings> | List of values | — | 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 |
Anfrage: POST https://getvibeapi.com/api/media/generate. Preise in USD.
Preis von Grok Imagine Image 2.0
Die Kosten für Grok Imagine Image 2.0: von $0.026667 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: Mode — Generation, Frame format — 1:1. Diese Anfrage kostet $0.026667.
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.
Pixelgrok-imagine-image-2-0ab $0.026667exakte Preise
| Modus | Generierung | Referenzbasiertes Bearbeiten |
|---|---|---|
| Pixel | $0.026667 | $0.026667 |
Jede Kombination als JSON: /api/media/price-table?model=grok-imagine-image-2-0
README
Der maschinenlesbare Vertrag für Grok Imagine Image 2.0 enthält das Anfrage-Schema, Vorgänge, Limits, Statusabfragen und Antwortbeispiele.
# Grok Imagine Image 2.0
Öffentliches Modell: grok-imagine-image-2-0
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: —
- `mode` (option selection): Generation (default) · Reference-based editing; Standard: Generation
- `aspect_ratio` (option selection): 1:1 (default) · 2:3 · 3:2 · 16:9 · 9:16; Standard: 1:1
- `image_urls` (Array<URLs>, 0–5 items): Public HTTP(S) URLs; Standard: —
- `input_file_ids` (Array<strings>): List of values; 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: —
## Öffentliche Varianten
- `grok-imagine-image-2-0`: PixelFAQ zur Grok Imagine Image 2.0-API
Wie viel kostet Grok Imagine Image 2.0?
Der Preis von Grok Imagine Image 2.0: von $0.026667 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.
Grok Imagine Image 2.0 jetzt verbinden
In einer Minute registrieren, nach Nutzung bezahlen, fertiger Code oben.
API-Schlüssel erhalten