Skip to main content
GET
/
videos
/
{video_id}
/
status
Get video generation status
curl --request GET \
  --url https://api.elytron.com/v1/videos/{video_id}/status \
  --header 'Authorization: Bearer <token>'
{
  "video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "pending",
  "progress": 50,
  "estimated_completion": "2023-11-07T05:31:56Z",
  "error": "<string>"
}
Check the current status and progress of video generation.

Path Parameters

ParameterTypeRequiredDescription
video_idstringYesUnique identifier for the video (UUID format)

Example Request

curl -X GET "https://api.elytron.com/v1/videos/550e8400-e29b-41d4-a716-446655440000/status" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

Returns a 200 OK status with the current video generation status:
{
  "data": {
    "video_id": "550e8400-e29b-41d4-a716-446655440000",
    "status": "processing",
    "progress": 65,
    "estimated_completion": "2024-01-01T12:02:30Z"
  },
  "meta": {
    "timestamp": "2024-01-01T12:01:45Z",
    "request_id": "req_123456789"
  }
}

Status Values

StatusDescription
pendingVideo generation request received, waiting to start
processingVideo is currently being generated
completedVideo generation finished successfully
failedVideo generation failed with an error

Progress Tracking

When status is processing, the progress field indicates completion percentage (0-100).

Example Responses by Status

Pending

{
  "data": {
    "video_id": "550e8400-e29b-41d4-a716-446655440000",
    "status": "pending",
    "progress": 0,
    "estimated_completion": "2024-01-01T12:05:00Z"
  }
}

Processing

{
  "data": {
    "video_id": "550e8400-e29b-41d4-a716-446655440000",
    "status": "processing",
    "progress": 75,
    "estimated_completion": "2024-01-01T12:02:15Z"
  }
}

Completed

{
  "data": {
    "video_id": "550e8400-e29b-41d4-a716-446655440000",
    "status": "completed",
    "progress": 100,
    "estimated_completion": "2024-01-01T12:02:30Z"
  }
}

Failed

{
  "data": {
    "video_id": "550e8400-e29b-41d4-a716-446655440000",
    "status": "failed",
    "progress": 45,
    "error": "Insufficient content in prompt to generate video"
  }
}

Error Responses

404 Not Found

{
  "error": {
    "code": "VIDEO_NOT_FOUND",
    "message": "Video not found"
  }
}

401 Unauthorized

{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Invalid API key"
  }
}

Polling Recommendations

For real-time applications, we recommend polling the status endpoint every 5-10 seconds while the video is processing. Once the status becomes completed or failed, you can stop polling.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

video_id
string<uuid>
required

Unique identifier for the video

Response

Status retrieved successfully

video_id
string<uuid>

Unique identifier for the video

status
enum<string>

Current generation status

Available options:
pending,
processing,
completed,
failed
progress
integer

Generation progress percentage

Required range: 0 <= x <= 100
estimated_completion
string<date-time>

Estimated completion time

error
string

Error message if generation failed