API Referansı
Çalıştırma endpoint'i
POST
https://kolayzeka.com/api/apps/karanlik-poz/executeKaranlık Poz için çok adımlı çalıştırma akışını başlatır.
cURL örneği
curl -X POST https://kolayzeka.com/api/apps/karanlik-poz/execute \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"aspectRatio": "9:16",
"imageSize": "1K",
"images": "string"
}'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 |
|---|---|---|
aspectRatio | select | Evet |
imageSize | select | Evet |
images Image(s) to edit / use as reference. | images | 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": "..." }
}
}