Seedream 4.5
bytedance/seedream-4.5Seedream 4.5 Bilderzeugung-API von ByteDance — vereinte Erzeugung und Bearbeitung in einem Modell mit bis zu 4K-Ausgabe und 14 Referenzbildern.
Übersicht
Seedream 4.5 Bilderzeugung-API von ByteDance — vereinte Erzeugung und Bearbeitung in einem Modell mit bis zu 4K-Ausgabe und 14 Referenzbildern.
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": "bytedance/seedream-4.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": "bytedance/seedream-4.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:12:33:23:44:39:1616:921:9 |
| quality | string | Optional | QualityOptionen: basichigh |
| 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 | 无效请求 - 参数缺失或格式错误 |
| 401 | 认证失败 - API 密钥缺失或无效 |
| 402 | 额度不足 |
| 403 | 禁止访问 - IP 不在白名单或 API 密钥消费限额已超出 |
| 404 | 未找到运行记录 |
| 429 | 请求频率超限 |
| 500 | 服务器内部错误 |

