Skip to main content
GET
/
streaming
/
ai
/
tasks
/
{task_id}
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
ai_task = client.streaming.ai_tasks.get(
    "task_id",
)
print(ai_task)
{
  "task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "PENDING",
  "progress": 123,
  "task_name": "content-moderation",
  "task_data": {
    "url": "https://demo-files.gvideo.io/apidocs/spritefright-blender-cut30sec.mp4",
    "task_name": "transcription",
    "audio_language": "ger"
  },
  "processing_time": {
    "started_at": "<string>",
    "completed_at": "<string>",
    "total_time_sec": 123
  },
  "result": {
    "concatenated_text": "Come on team, we mustn't dilly dally when there's so much nature to see!  I was thinking, we should call our class project, Fungi in a Forest!",
    "subtitles": [
      {
        "start_time": "00:00:00.009",
        "end_time": "00:00:03.689",
        "text": "Come on team, we mustn't dilly dally when there's so much nature to see!"
      },
      {
        "start_time": "00:00:04.129",
        "end_time": "00:00:08.169",
        "text": "I was thinking, we should call our class project, Fungi in a Forest!"
      }
    ],
    "vttContent": "WEBVTT\n\n1\n00:00:00.009 --> 00:00:03.689\nCome on team, we mustn't dilly dally when there's so much nature to see!\n\n2\n00:00:04.129 --> 00:00:08.169\nI was thinking, we should call our class project, Fungi in a Forest!\n\n",
    "languages": [
      "eng"
    ]
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

task_id
string
required

Response

processing_time
object
result
object
  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
  • Option 6
Example:
task_id
string<uuid>
status
enum<string>
Available options:
PENDING,
STARTED,
SUCCESS,
FAILURE,
REVOKED,
RETRY
progress
integer
task_name
enum<string>
Available options:
content-moderation,
transcription
task_data
object
  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
Example: