curl --request GET \
--url https://backend.tensorpix.ai/api/jobs/{id}/ \
--header 'Authorization: <api-key>'
{
"id": 123,
"started": "2023-11-07T05:31:56Z",
"preview": true,
"description": "<string>",
"cost_usd": "<string>",
"status": 0,
"eta_s": 123,
"finished": "2023-11-07T05:31:56Z",
"processing_progress": 123,
"input_video": {
"id": 123,
"name": "<string>",
"width": 123,
"height": 123,
"created_at": "2023-11-07T05:31:56Z",
"n_frames": 123,
"framerate": 123,
"size": 123,
"file": "<string>",
"owner": "[email protected]",
"thumbnail": "<string>",
"external_url": "<string>",
"bitrate": 123,
"codec_id": "<string>",
"bit_depth": 123,
"chroma_subsampling": "<string>",
"color_space": "<string>"
},
"output_video": {
"id": 123,
"job_id": 123,
"preview_videos": {
"before_video": "<string>",
"after_video": "<string>"
},
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"deleted": "2023-11-07T05:31:56Z",
"framerate": 500,
"n_frames": 1073741824,
"bitrate": 4611686018427388000,
"codec_id": "<string>",
"bit_depth": 15,
"chroma_subsampling": "<string>",
"color_space": "<string>",
"size": 200000000050,
"file": "<string>",
"thumbnail": "<string>",
"width": 4128,
"height": 4128,
"quality_score": 3,
"owner": 123
},
"ml_models": [
{
"id": 123,
"name": "<string>",
"task": 1,
"cost_weight": 123,
"upscale_factor": 123,
"fps_boost_factor": 123,
"priority": 123,
"max_resolution": 123
}
],
"grain": 123,
"codec": "libx264",
"output_resolution": -1,
"comparison": true,
"stabilization_smoothing": 123,
"fps_interpolation_factor": 123,
"playback_speed": 123,
"sharpen_strength": 123,
"start_frame": 123,
"end_frame": 123
}
Get the job. You can know when the job is finished by checking it’s status attribute. Once the job is completed, the previously null
output_video
attribute will be populated with the enhanced video metadata.
ℹ️ NOTE: Jobs can sometimes be in
IN_QUEUE
status for a few minutes. This happens when we’re spinning up new GPU instances to cover the requests demand.
curl --request GET \
--url https://backend.tensorpix.ai/api/jobs/{id}/ \
--header 'Authorization: <api-key>'
{
"id": 123,
"started": "2023-11-07T05:31:56Z",
"preview": true,
"description": "<string>",
"cost_usd": "<string>",
"status": 0,
"eta_s": 123,
"finished": "2023-11-07T05:31:56Z",
"processing_progress": 123,
"input_video": {
"id": 123,
"name": "<string>",
"width": 123,
"height": 123,
"created_at": "2023-11-07T05:31:56Z",
"n_frames": 123,
"framerate": 123,
"size": 123,
"file": "<string>",
"owner": "[email protected]",
"thumbnail": "<string>",
"external_url": "<string>",
"bitrate": 123,
"codec_id": "<string>",
"bit_depth": 123,
"chroma_subsampling": "<string>",
"color_space": "<string>"
},
"output_video": {
"id": 123,
"job_id": 123,
"preview_videos": {
"before_video": "<string>",
"after_video": "<string>"
},
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"deleted": "2023-11-07T05:31:56Z",
"framerate": 500,
"n_frames": 1073741824,
"bitrate": 4611686018427388000,
"codec_id": "<string>",
"bit_depth": 15,
"chroma_subsampling": "<string>",
"color_space": "<string>",
"size": 200000000050,
"file": "<string>",
"thumbnail": "<string>",
"width": 4128,
"height": 4128,
"quality_score": 3,
"owner": 123
},
"ml_models": [
{
"id": 123,
"name": "<string>",
"task": 1,
"cost_weight": 123,
"upscale_factor": 123,
"fps_boost_factor": 123,
"priority": 123,
"max_resolution": 123
}
],
"grain": 123,
"codec": "libx264",
"output_resolution": -1,
"comparison": true,
"stabilization_smoothing": 123,
"fps_interpolation_factor": 123,
"playback_speed": 123,
"sharpen_strength": 123,
"start_frame": 123,
"end_frame": 123
}
Token-based authentication with required prefix "Token"
The response is of type object
.
Was this page helpful?