OhMyGPT
Videos

Retrieve video

GET
/v1/videos/{id}

One video job. Reading a job does not call the provider; the job updates on its own as the provider reports progress.

授权

ApiKeyAuth
headerAuthorization<token>

路径参数

id*string

The id of a video job.

响应主体

Successful response

application/json
  1. response
created_at*string
格式date-time
error?

Why the job failed

finished_at?string
格式date-time
id*string
model*string
object*"video"
值于"video"
progress*integer

Percent done, as far as the provider reports it

范围0 <= value <= 100
result_available*boolean

Whether GET /v1/videos/{id}/content can download the video now

result_url_expires_at?string

When the download stops being available

格式date-time
seconds*integer
size*string
status*string

creating until the provider accepts the job; completed, failed and cancelled are final.

值于"creating""queued""in_progress""completed""failed""cancelled"
updated_at*string
格式date-time
示例请求
curl -X GET 'https://api.ohmygpt.com/v1/videos/string'
示例响应
{  "created_at": "2019-08-24T14:15:22Z",  "error": {    "code": "string",    "message": "string"  },  "finished_at": "2019-08-24T14:15:22Z",  "id": "string",  "model": "string",  "object": "video",  "progress": 0,  "result_available": true,  "result_url_expires_at": "2019-08-24T14:15:22Z",  "seconds": 0,  "size": "string",  "status": "creating",  "updated_at": "2019-08-24T14:15:22Z"}