AI Studio API
Task status
Poll a generation task and handle queued, running, succeeded, and failed states.
API playground
Send a real request to this site and inspect the HTTP response immediately.
Response
Send a request to view its response here.Görev ilerleme durumları
Bu durumlar size neslinizin bekleyip beklemediğini, çalışıp çalışmadığını, bitip bitmediğini veya başarısız olup olmadığını söyler.
queuedrunningsucceededfailedGET
/api/ai-studio/tasks/{taskId}Görev oluşturulduktan sonra taskId ve statusSupported=true döndüğünde görev ilerlemesini kontrol edin.
İstek Başlıkları
Authorization: Bearer YOUR_API_KEYİstek Parametreleri
| İsim | Tür | Gerekli | Varsayılan | Seçenekler | Açıklama |
|---|---|---|---|---|---|
| taskId | string | Evet | - | - | Oluşturma başlatıldıktan sonra döndürülen görev kimliği. |
Talep
curl -X GET "https://freesoragenerator.com/api/ai-studio/tasks/provider-task-id" \
-H "Authorization: Bearer YOUR_API_KEY"Yanıt Örneği
{
"success": true,
"data": {
"generationId": "b6a7f5c4-8a7c-4e2b-8cf6-6b8d9b3d8d21",
"taskId": "provider-task-id",
"modelId": "video:sora2-text-to-video-standard",
"state": "running",
"mediaUrls": [],
"raw": {},
"reservedCredits": 20,
"refundedCredits": 0
}
}Hata Örneği
{
"success": false,
"error": "Generation record not found"
}