Documentation menu
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.

GET
GET

Only same-origin /api/* paths are allowed.

Leave blank to use your current signed-in browser session. The key is never saved.

Response
Send a request to view its response here.

Trạng thái tiến độ công việc

Những trạng thái này cho bạn biết liệu thế hệ của bạn đang chờ, đang chạy, đã xong hay đã thất bại.

queued
running
succeeded
failed
GET/api/ai-studio/tasks/{taskId}

Kiểm tra tiến trình nhiệm vụ sau khi tạo trả về taskId và statusSupported=true.

Tiêu đề Yêu cầu

Authorization: Bearer YOUR_API_KEY

Tham số yêu cầu

TênLoạiBắt buộcMặc địnhTùy chọnMô tả
taskIdstringVâng--ID nhiệm vụ được trả về sau khi bắt đầu tạo.
Yêu cầu
curl -X GET "https://freesoragenerator.com/api/ai-studio/tasks/provider-task-id" \
  -H "Authorization: Bearer YOUR_API_KEY"
Ví dụ về phản hồ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
  }
}
Ví dụ về lỗi
{
  "success": false,
  "error": "Generation record not found"
}