GET/v1/predict/{id}0 kredi
Prediction getir
İş durumu. Id pred_ + 32 hex — Yükleme linkinden. Başka anahtarın id’si veya 24 saatten eski iş 404.
Linkten sonra status awaiting_upload — kredi yok. Klibi yükleden sonra GET: queued / running = consume oldu, 20 rezerve. Hâlâ awaiting_upload ise (kredi, busy, daily cap) Retry start. awaiting_upload, queued, running iken poll. succeeded / failed’de dur. Poll ücretsiz. Webhook gövdesi aynı JSON.
Bu bir anahtar iznidir, istek başlığı değil. Yoksa 403 api_not_enabled.
Failed
{
"object": "prediction",
"id": "pred_7b3e0c1d2e3f4a5b6c7d8e9f0a1b2c3d",
"status": "failed",
"created_at": "2026-09-15T14:02:11.000Z",
"completed_at": "2026-09-15T14:02:24.000Z",
"input": { "duration_sec": 18 },
"result": null,
"error": { "type": "system_error", "message": "The job could not be completed." }
}
İstek parametreleri
| Ad | Yer | Tip | Zorunlu | Açıklama |
|---|---|---|---|---|
id |
path | string | Zorunlu | Public id, pred_ + 32 hex. |
Yanıt
{
"object": "prediction",
"id": "pred_7b3e0c1d2e3f4a5b6c7d8e9f0a1b2c3d",
"status": "succeeded",
"created_at": "2026-09-15T14:02:11.000Z",
"completed_at": "2026-09-15T14:02:24.000Z",
"input": { "duration_sec": 18 },
"result": {
"band": "high",
"hook_duration_sec": 2.1,
"category": { "slug": "education" }
},
"error": null
}
Yanıt alanları
| Ad | Tip | Zorunlu | Açıklama |
|---|---|---|---|
object |
string | Zorunlu | Her zaman prediction. |
id |
string | Zorunlu | Public id, pred_ + 32 hex. |
status |
string | Zorunlu | awaiting_upload, queued, running, succeeded veya failed. |
created_at |
string | Zorunlu | İşin oluşturulma zamanı. |
completed_at |
string | Null olabilir | İş bitince dolar. Beklerken, kuyrukta veya çalışırken null. |
input |
object | Null olabilir | Kabul edilen girdi veya null. |
input.duration_sec |
number | Null olabilir | input varken. |
result |
object | Null olabilir | Başarıda skor. Öncesinde ve hatada null. |
result.band |
string | İsteğe bağlı | result varken. |
result.hook_duration_sec |
number | Null olabilir | result varken. |
result.category |
object | Null olabilir | result varken. Kendisi null olabilir. |
result.category.slug |
string | İsteğe bağlı | result.category varken. |
error |
object | Null olabilir | Hatada dolar. Yoksa null. |
error.type |
string | İsteğe bağlı | Hatada: unsupported, unsafe veya system_error. |
error.message |
string | İsteğe bağlı | Hatada. İngilizce metin. |