API Referansı
Çalıştırma endpoint'i
POST
https://kolayzeka.com/api/apps/gorselden-videoya/executeGörselden Videoya için çok adımlı çalıştırma akışını başlatır.
cURL örneği
curl -X POST https://kolayzeka.com/api/apps/gorselden-videoya/execute \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"girdi_1": "string",
"images": "string",
"aspectRatio": "9:16",
"resolution": "720p",
"durationSeconds": "6"
}'Kimlik Doğrulama
İstekleri Bearer token şeması ile yetkilendirin.
Authorization: Bearer YOUR_TOKENToken'ları Profil ayarları'ndan oluşturabilirsiniz.
İstek gövdesi
| Parametre | Tip | Zorunlu |
|---|---|---|
girdi_1 | textarea | Hayır |
images Image(s) to edit / use as reference. | images | Evet |
aspectRatio | select | Evet |
resolution | select | Evet |
durationSeconds | select | Evet |
Yanıt formatı
202 Accepted
Çalıştırma sıraya alındı{
"status": "success",
"message": "Uygulama çalıştırma başlatıldı.",
"execution": {
"id": 1284,
"status": "processing",
"current_step": 1,
"inputs": { ... }
}
}Uygulamalar asenkron olarak çalışır. Tamamlanma durumunu sorgulamak için aşağıdaki durum endpoint'ini kullanın.
Durum sorgulama endpoint'i
GET
https://kolayzeka.com/api/apps/execution/{execution_id}{
"id": 1284,
"status": "completed",
"current_step": 3,
"history": {
"1": { "result": "https://..." },
"2": { "result": "..." }
}
}