Integrationsanleitungen
Webhooks
Antwortstruktur
Nach Verarbeitung HTTP 2xx zurückgeben. Nach task_id deduplizieren und Polling als Rückfall behalten. code=0 garantiert keine erfolgreiche Generierung.
Anfragebeispiel
JSON
{
"code": 0,
"data": {
"task_id": "00000000-0000-0000-0000-000000000000",
"status": "COMPLETED",
"result": {
"images": [
{
"display_url": "https://cdn.kusa.pics/generated/example.png",
"width": 1024,
"height": 1024,
"index": 0
}
]
}
}
}