AI Influencer

API dokümantasyonu

API Referansı

Çalıştırma endpoint'i

POST
https://kolayzeka.com/api/apps/luna-v2/execute

AI Influencer için çok adımlı çalıştırma akışını başlatır.

cURL örneği

curl -X POST https://kolayzeka.com/api/apps/luna-v2/execute \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "luna_identity": "string",
  "luna_clothing": "string",
  "framing_instruction": "Head to toe shot",
  "camera_distance": "medium distance",
  "frame_coverage": "70",
  "lens_type": "50mm prime lens",
  "location_description": "Her own bedroom, styled like a realistic vlog setup; clean, modern, lived-in, and natural. The environment feels personal, authentic, and high-quality, suitable for a lifestyle vlog.",
  "activity_style": "Standing naturally as if recording a vlog in her bedroom, but not holding a phone or camera",
  "pose_style": "Model-like, confident, balanced, and intentional, with natural posture and clean lines",
  "gaze_direction": "Directly at the camera (the viewer), with confident, natural eye contact"
}'

Kimlik Doğrulama

İstekleri Bearer token şeması ile yetkilendirin.

Authorization: Bearer YOUR_TOKEN

Token'ları Profil ayarları'ndan oluşturabilirsiniz.

İstek gövdesi

ParametreTipZorunlu
luna_identity
Yüzünü ve temel görünümünü almak istediğiniz ana karakter fotoğrafları — birden fazla açı ekleyebilirsiniz.
images
Evet
luna_clothing
Karakterin giymesini istediğiniz kıyafeti gösteren fotoğraflar — birden fazla ekleyebilirsiniz.
images
Evet
framing_instruction
select
Hayır
camera_distance
select
Hayır
frame_coverage
range
Hayır
lens_type
Ideal for portraits
select
Hayır
location_description
text
Hayır
activity_style
text
Hayır
pose_style
text
Hayır
gaze_direction
text
Hayır

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": "..." }
  }
}