[{"data":1,"prerenderedAt":154},["ShallowReactive",2],{"reference-detail-zh-get_video_detail_api_v1_video_get":3,"developer-code-q52kdg":152,"developer-code-1x3t45i":153},{"tag":4,"sourceTag":5,"tagSlug":6,"method":7,"path":8,"slug":9,"summary":10,"description":11,"operationId":12,"groupOrder":13,"descriptionHtml":14,"parameters":15,"responses":28,"security":139,"codeSamples":142},"Talking Avatar Video","Videos","videos","GET","\u002Fapi\u002Fv1\u002Fvideo","get-video-detail","获取视频状态","通过 `video_id` 查询单个视频任务，包括状态（`queued`、`creating`、`created` 或 `failed`），以及完成后的下载 URL。轮询此接口以查询生成进度。","get_video_detail_api_v1_video_get",10,"\u003Cp>通过 \u003Ccode>video_id\u003C\u002Fcode> 查询单个视频任务，包括状态（\u003Ccode>queued\u003C\u002Fcode>、\u003Ccode>creating\u003C\u002Fcode>、\u003Ccode>created\u003C\u002Fcode> 或 \u003Ccode>failed\u003C\u002Fcode>），以及完成后的下载 URL。轮询此接口以查询生成进度。\u003C\u002Fp>",[16,23],{"name":17,"in":18,"required":19,"description":20,"type":21,"example":22},"X-API-Key","header",true,"你的 VisionStory API Key（`sk-vs-...`），请仅保存在服务端。可在 [API Key 管理](\u002Fapi-keys) 中创建或管理，需要 Pro 或更高方案。","string","sk-vs-your-api-key",{"name":24,"in":25,"required":19,"description":26,"type":21,"example":27},"video_id","query","要查询的视频任务 ID，来自 POST \u002Fapi\u002Fv1\u002Fvideo 返回的 `video_id` 字段，或 GET \u002Fapi\u002Fv1\u002Fvideos。","video_123456",[29,110],{"status":30,"description":31,"contentType":32,"schema":33,"example":96,"examples":104,"headers":109},"200","请求成功","application\u002Fjson",{"type":34,"description":35,"nullable":36,"properties":37},"BaseSuccessResponse_GetVideoResponse_","",false,[38,86,91],{"name":39,"required":19,"type":40,"description":41,"nullable":19,"properties":42},"data","GetVideoResponse | null","单个视频任务的查询响应。",[43,51,57,61,65,74,78,81],{"name":44,"required":36,"type":21,"description":45,"nullable":36,"enum":46,"default":47,"properties":50},"aspect_ratio","渲染后视频的输出宽高比。",[47,48,49],"9:16","16:9","1:1",[],{"name":52,"required":36,"type":53,"description":54,"nullable":36,"default":55,"properties":56},"cost_credit","integer","生成此视频扣除的点数；任务失败时为 0，已扣点数会自动退还。",0,[],{"name":58,"required":19,"type":53,"description":59,"nullable":36,"properties":60},"created_at","视频任务创建时的 Unix 时间戳，单位为秒。",[],{"name":62,"required":19,"type":21,"description":63,"nullable":36,"properties":64},"model_id","生成此视频的模型标识符，请查询 GET \u002Fapi\u002Fv1\u002Fmodels。",[],{"name":66,"required":36,"type":21,"description":67,"nullable":36,"enum":68,"default":69,"properties":73},"resolution","渲染后视频的输出分辨率。",[69,70,71,72],"480p","720p","1080p","2k",[],{"name":75,"required":19,"type":21,"description":76,"nullable":36,"properties":77},"status","当前任务状态：`queued`（等待中）、`creating`（渲染中）、`created`（已完成）或 `failed`（失败）。",[],{"name":24,"required":19,"type":21,"description":79,"nullable":36,"properties":80},"视频任务的唯一标识符，用于轮询状态或删除视频。",[],{"name":82,"required":36,"type":83,"description":84,"nullable":19,"properties":85},"video_url","string | null","成片下载 URL；状态为 `created` 前为空。视频保留 7 天。",[],{"name":87,"required":36,"type":21,"description":88,"nullable":36,"default":89,"properties":90},"message","便于阅读的状态消息；调用成功时为 `\"success\"`。","success",[],{"name":92,"required":19,"type":93,"description":94,"nullable":36,"properties":95},"server_time","string · date-time","服务端生成响应时的时间戳，使用 ISO 8601 格式（UTC）。",[],{"data":97,"message":89,"server_time":103},{"aspect_ratio":47,"cost_credit":13,"created_at":98,"model_id":99,"resolution":70,"status":100,"video_id":101,"video_url":102},1788480000,"vs_character_v4","created","example_video_id","https:\u002F\u002Fexample.com\u002Favatar-video.mp4","2026-09-04T00:00:00Z",[105],{"name":89,"description":106,"summary":31,"value":107},"示例仅用于说明响应结构，不代表实时账户数据或实际报价。ID 和 URL 均为占位内容。请调用模型查询及费用估算接口，获取当前可用模型和价格。",{"data":108,"message":89,"server_time":103},{"aspect_ratio":47,"cost_credit":13,"created_at":98,"model_id":99,"resolution":70,"status":100,"video_id":101,"video_url":102},[],{"status":111,"description":112,"contentType":32,"schema":113,"example":135,"headers":138},"default","错误响应。所有失败均使用统一结构：`error` 对象包含数字错误码 `code`、便于阅读的 `message`、可选的 `details` 字符串，以及提供后续处理建议的可选 `hint`（便于 AI Agent 使用）。",{"type":114,"description":35,"nullable":36,"properties":115},"ErrorResponse",[116],{"name":117,"required":19,"type":118,"description":35,"nullable":36,"properties":119},"error","ErrorDetail",[120,124,128,132],{"name":121,"required":19,"type":53,"description":122,"nullable":36,"properties":123},"code","机器可读的错误码。传输层失败时对应 HTTP 状态码（例如 401、404、422、500），其他情况可能使用业务专用错误码。",[],{"name":125,"required":36,"type":83,"description":126,"nullable":19,"properties":127},"details","可选的结构化错误详情，例如 422 响应中逐字段校验错误的 JSON 字符串。无补充信息时不返回。",[],{"name":129,"required":36,"type":83,"description":130,"nullable":19,"properties":131},"hint","供用户和 AI Agent 参考的错误处理建议，例如如何修正请求或在哪里获取 API Key。可能不返回此字段。",[],{"name":87,"required":19,"type":21,"description":133,"nullable":36,"properties":134},"便于阅读的错误原因说明，可安全记录到日志或展示给最终用户；此返回值未本地化。",[],{"error":136},{"code":137,"message":21,"details":21,"hint":21},1,[],[140],{"APIKeyHeader":141},[],[143,146,149],{"lang":144,"source":145},"SDK","from visionstory import VisionStoryClient\n\nclient = VisionStoryClient.from_env()\nvideo = client.get_video(\"video_123456\")\nprint(video)",{"lang":147,"source":148},"REST","import os\nimport requests\n\nheaders = {\"X-API-Key\": os.environ[\"VISIONSTORY_API_KEY\"]}\nresponse = requests.get(\n    'https:\u002F\u002Fopenapi.visionstory.ai\u002Fapi\u002Fv1\u002Fvideo?video_id=xxxx', headers=headers\n)\nresp_data = response.json()\nprint(resp_data['data'])",{"lang":150,"source":151},"cURL","curl -X 'GET' \\\n      'https:\u002F\u002Fopenapi.visionstory.ai\u002Fapi\u002Fv1\u002Fvideo?video_id=xxxx' \\\n      -H 'accept: application\u002Fjson' \\\n      -H 'X-API-Key: $VISIONSTORY_API_KEY'","\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#FF7B72\">from\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> visionstory \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">import\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> VisionStoryClient\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E6EDF3\">client \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> VisionStoryClient.from_env()\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E6EDF3\">video \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> client.get_video(\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"video_123456\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#79C0FF\">print\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(video)\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>","\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#E6EDF3\">{\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#7EE787\">  \"data\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#7EE787\">    \"aspect_ratio\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"9:16\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#7EE787\">    \"cost_credit\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">10\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#7EE787\">    \"created_at\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">1788480000\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#7EE787\">    \"model_id\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"vs_character_v4\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#7EE787\">    \"resolution\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"720p\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#7EE787\">    \"status\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"created\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#7EE787\">    \"video_id\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"example_video_id\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#7EE787\">    \"video_url\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"https:\u002F\u002Fexample.com\u002Favatar-video.mp4\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E6EDF3\">  },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#7EE787\">  \"message\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"success\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#7EE787\">  \"server_time\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"2026-09-04T00:00:00Z\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E6EDF3\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",1788547143930]