元曜星辰 Docs
视频生成

查询视频生成任务

GET
/videos/{job_id}

授权

BearerAuth
授权Bearer <token>

位置: header

路径参数

job_id*string

响应主体

application/json

curl -X GET "https://example.com/videos/string"
{  "id": "string",  "model": "string",  "status": "string",  "error_code": "string",  "error_message": "string",  "content": [    {      "type": "text",      "text": "string",      "url": "string",      "role": "string"    }  ],  "duration": 0,  "resolution": "string",  "ratio": "string",  "generate_audio": true,  "watermark": true,  "outputs": [    {      "type": "string",      "url": "string",      "base64": "string",      "media_type": "string",      "frame_type": "string"    }  ],  "usage": {    "total_seconds": 0.1,    "input_seconds": 0.1,    "output_seconds": 0.1,    "input_image_count": 0,    "input_audio_seconds": 0.1,    "total_tokens": 0,    "prompt_tokens": 0,    "completion_tokens": 0  },  "callback_url": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "expires_at": "2019-08-24T14:15:22Z"}