# 查询视频生成任务 This file is the focused AI-readable context for one UniAll documentation page. URL: https://docs.uniall.ai/zh-CN/models/video/happy-horse/query-task Locale: zh-CN Markdown: https://docs.uniall.ai/ai/pages/zh-CN/models/video/happy-horse/query-task.md Description: Happy-Horse 查询视频生成任务接口。 Agent guidance: - Use this page when the user is asking about this specific route or model capability. - Preserve endpoint paths, JSON keys, model IDs, and placeholder values exactly. - Treat examples such as `sk-***`, `{BASE_URL}`, and `task_xxx` as safe placeholders, not real secrets. ## Page Markdown ## Endpoint ```http GET /v1/videos/{task_id} ``` ## Header 参数 | Name | Type | Required | Description | Example | | --- | --- | --- | --- | --- | | `Authorization` | string | No | | Bearer {your_token} | ## Path 参数 | Name | Type | Required | Description | Example | | --- | --- | --- | --- | --- | | `task_id` | string | Yes | | | ## 响应字段 | Field | Type | Required | Title | Description | | --- | --- | --- | --- | --- | | `id` | string | Yes | 任务ID | | | `model` | string | Yes | 模型名称 | | | `object` | string | Yes | 任务类型 | | | `prompt` | string | Yes | 提示词 | | | `status` | string | Yes | 状态 | queued: 排队中, in_progress: 生成中, completed: 已完成, failed: 失败 | | `duration` | string | Yes | 任务耗时 | | | `metadata` | string | Yes | // | | | `progress` | string | Yes | 进度 | | | `video_url` | string | Yes | 视频URL | | | `created_at` | string | Yes | 创建时间 | | | `thumbnail_url` | string | Yes | 缩略图 | | ## 响应示例 ### 示例 1 ```json { "id": "task_xxxxxxxxxxxxxxx", "error": null, "model": "happy-horse-edit-720p", "object": "video.generation.job", "result": { "outputs": [ "https://xxxxxxxxxxx.cn/xxxxxxxx.mp4" ], "video_url": "https://xxxxxxxxxxx.cn/xxxxxxxx.mp4" }, "status": "completed", "task_id": "task_xxxxxxxxxxxxxxxxxxxxxxx", "progress": 100, "video_url": "https://xxxxxxxxxxx.cn/xxxxxxxx.mp4", "created_at": 1777355454, "raw_status": "COMPLETED" } ```