GPT Image 1.5
openai/gpt-image-1.5GPT Image 1.5 Bilderzeugung-API von OpenAI — 4x schneller als v1 mit überlegenem Textrendering, 3 Seitenverhältnissen und Qualitätsmodi medium/high.
Übersicht
GPT Image 1.5 Bilderzeugung-API von OpenAI — 4x schneller als v1 mit überlegenem Textrendering, 3 Seitenverhältnissen und Qualitätsmodi medium/high.
Authentifizierung
Alle API-Anfragen erfordern einen gültigen API-Schlüssel im Authorization-Header mit dem Bearer-Schema.
Schnellstart
Zugangsdaten
Setze die Umgebungsvariable RUNBASE_API_KEY.
export RUNBASE_API_KEY=your-api-keyAusführung erstellen
curl -s https://runbase.net/api/v1/runs \
-H "Authorization: Bearer $RUNBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-image-1.5",
"input": {
"prompt": "A cinematic product photo of a ceramic lamp"
}
}'Ausführungen
Ausführungen werden asynchron verarbeitet. Sende eine Anfrage und frage dann das Ergebnis ab.
Ausführung erstellen
curl -s https://runbase.net/api/v1/runs \
-H "Authorization: Bearer $RUNBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-image-1.5",
"input": { "prompt": "A cinematic product photo of a ceramic lamp" }
}'Ausführungsstatus abrufen
curl -s https://runbase.net/api/v1/runs/RUN_ID \
-H "Authorization: Bearer $RUNBASE_API_KEY"Ergebnis abrufen
Frage den Status-Endpunkt ab, bis status den Wert "succeeded" hat, und lies dann output.urls aus der Antwort.
Input-Schema
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| prompt | string | Erforderlich | Prompt |
| aspect_ratio | string | Optional | Aspect ratioOptionen: 1:13:22:3 |
| quality | string | Optional | QualityOptionen: mediumhigh |
| image_urls | string[] | Optional | Reference images |
Output-Schema
| Feld | Typ | Beschreibung |
|---|---|---|
| urls | string[] | Generierte Ausgabe-URLs |
Fehler
Die API verwendet Standard-HTTP-Statuscodes zur Anzeige von Erfolg oder Fehlern.
| Statuscode | Beschreibung |
|---|---|
| 400 | Request không hợp lệ - thiếu hoặc sai định dạng tham số |
| 401 | Xác thực thất bại - thiếu hoặc sai khóa API |
| 402 | Không đủ tín dụng |
| 403 | Bị từ chối - IP không được phép hoặc khóa API vượt giới hạn chi tiêu |
| 404 | Không tìm thấy lượt chạy |
| 429 | Vượt giới hạn tốc độ |
| 500 | Lỗi máy chủ nội bộ |

