"LivePortrait 图像检测\",\"sidebarTitle\":\"图像检测\",\"description\":\"检测人物肖像图片是否符合 LivePortrait 视频生成模型的输入规范\",\"keywords\":[\"liveportrait-detect\",\"人像检测\",\"肖像规范\",\"人脸识别\",\"图像筛选\"],\"openapi\":\"openapi-liveportrait-detect.json POST /services/aigc/image2video/face-detect\",\"api-method\":\"POST\",\"api-path\":\"/services/aigc/image2video/face-detect\"}},{\"type\":\"group\",\"title\":\"视频生成\",\"children\":[{\"type\":\"page\",\"title\":\"创建任务\",\"sidebarTitle\":\"创建任务\",\"slug\":\"api-reference/video-generation/liveportrait-video/create-task\",\"frontmatter\":{\"title\":\"灵动人像 LivePortrait — 创建任务\",\"sidebarTitle\":\"创建任务\",\"description\":\"提交灵动人像 LivePortrait 播报视频生成异步任务\",\"keywords\":[\"LivePortrait\",\"灵动人像\",\"口型同步\",\"数字人播报\",\"头部运动\"],\"openapi\":\"openapi-liveportrait-video.json POST /services/aigc/image2video/video-synthesis/\",\"api-method\":\"POST\",\"api-path\":\"/services/aigc/image2video/video-synthesis/\"}},{\"type\":\"page\",\"title\":\"查询结果\",\"sidebarTitle\":\"查询结果\",\"slug\":\"api-reference/video-generation/liveportrait-video/query-result\",\"frontmatter\":{\"title\":\"灵动人像 LivePortrait — 查询视频生成结果\",\"sidebarTitle\":\"查询结果\",\"description\":\"查询灵动人像 LivePortrait 视频生成任务状态,获取生成的视频\",\"keywords\":[\"LivePortrait\",\"灵动人像\",\"任务状态\",\"SUCCEEDED\",\"视频URL\"],\"openapi\":\"openapi-liveportrait-video.json GET /tasks/{task_id}\",\"api-method\":\"GET\",\"api-path\":\"/tasks/{task_id}\"}}]}]},{\"type\":\"group\",\"title\":\"视频口型替换\",\"children\":[{\"type\":\"page\",\"title\":\"创建任务\",\"sidebarTitle\":\"创建任务\",\"slug\":\"api-reference/video-generation/video-retalk/create-task\",\"frontmatter\":{\"title\":\"声动人像 VideoRetalk — 创建任务\",\"sidebarTitle\":\"创建任务\",\"description\":\"提交声动人像 VideoRetalk 视频口型替换异步任务\",\"keywords\":[\"VideoRetalk\",\"口型同步\",\"音频驱动\",\"数字人\",\"异步提交\"],\"openapi\":\"openapi-video-retalk.json POST /api/v1/services/aigc/image2video/video-synthesis/\",\"api-method\":\"POST\",\"api-path\":\"/api/v1/services/aigc/image2video/video-synthesis/\"}},{\"type\":\"page\",\"title\":\"查询结果\",\"sidebarTitle\":\"查询结果\",\"slug\":\"api-reference/video-generation/video-retalk/query-result\",\"frontmatter\":{\"title\":\"声动人像 VideoRetalk — 查询视频口型替换任务结果\",\"sidebarTitle\":\"查询结果\",\"description\":\"查询声动人像 VideoRetalk 视频口型替换任务状态,获取生成的视频\",\"keywords\":[\"VideoRetalk\",\"口型替换\",\"任务状态\",\"视频下载\",\"轮询\"],\"openapi\":\"openapi-video-retalk.json GET /api/v1/tasks/{task_id}\",\"api-method\":\"GET\",\"api-path\":\"/api/v1/tasks/{task_id}\"}}]},{\"type\":\"group\",\"title\":\"图生表情包视频\",\"children\":[{\"type\":\"page\",\"title\":\"图像检测\",\"sidebarTitle\":\"图像检测\",\"slug\":\"api-reference/video-generation/emoji-video/emoji-detect\",\"frontmatter\":{\"title\":\"Emoji — 图像检测\",\"sidebarTitle\":\"图像检测\",\"description\":\"检测图像中的人物形象是否满足表情包 Emoji 视频生成模型的要求\",\"keywords\":[\"emoji-detect-v1\",\"人脸检测\",\"表情区域坐标\",\"肖像合规\",\"图像检测\"],\"openapi\":\"openapi-emoji-detect.json POST /services/aigc/image2video/face-detect\",\"api-method\":\"POST\",\"api-path\":\"/services/aigc/image2video/face-detect\"}},{\"type\":\"group\",\"title\":\"视频生成\",\"children\":[{\"type\":\"page\",\"title\":\"创建任务\",\"sidebarTitle\":\"创建任务\",\"slug\":\"api-reference/video-generation/emoji-video/create-task\",\"frontmatter\":{\"title\":\"表情包视频 Emoji — 创建任务\",\"sidebarTitle\":\"创建任务\",\"description\":\"提交表情包视 结构化输出 - 千问云 频生成任务\",\"keywords\":[\"表情包视频\",\"Emoji\",\"表情模板\",\"人脸框\",\"图生视频\"],\"openapi\":\"openapi-emoji-video.json POST /services/aigc/image2video/video-synthesis\",\"api-method\":\"POST\",\"api-path\":\"/services/aigc/image2video/video-synthesis\"}},{\"type\":\"page\",\"title\":\"查询结果\",\"sidebarTitle\":\"查询结果\",\"slug\":\"api-reference/video-generation/emoji-video/query-result\",\"frontmatter\":{\"title\":\"表情包视频 Emoji — 查询结果\",\"sidebarTitle\":\"查询结果\",\"description\":\"查询表情包视频生成状态\",\"keywords\":[\"表情包视频\",\"Emoji\",\"任务状态\",\"video_url\",\"轮询\"],\"openapi\":\"openapi-emoji-video.json GET /tasks/{task_id}\",\"api-method\":\"GET\",\"api-path\":\"/tasks/{task_id}\"}}]}]},{\"type\":\"group\",\"title\":\"视频风格重绘\",\"children\":[{\"type\":\"page\",\"title\":\"创建任务\",\"sidebarTitle\":\"创建任务\",\"slug\":\"api-reference/video-generation/video-style-transform/create-task\",\"frontmatter\":{\"title\":\"视频风格重绘 — 创建任务\",\"sidebarTitle\":\"创建任务\",\"description\":\"提交视频风格重绘任务\",\"keywords\":[\"风格重绘\",\"艺术风格\",\"漫画风格\",\"风格迁移\",\"异步提交\"],\"openapi\":\"openapi-video-style-transform.json POST /services/aigc/video-generation/video-synthesis\",\"api-method\":\"POST\",\"api-path\":\"/services/aigc/video-generation/video-synthesis\"}},{\"type\":\"page\",\"title\":\"查询结果\",\"sidebarTitle\":\"查询结果\",\"slug\":\"api-reference/video-generation/video-style-transform/query-result\",\"frontmatter\":{\"title\":\"视频风格重绘 — 查询结果\",\"sidebarTitle\":\"查询结果\",\"description\":\"查询视频风格重绘任务状态\",\"keywords\":[\"风格重绘\",\"任务状态\",\"视频获取\",\"风格转换\",\"轮询\"],\"openapi\":\"openapi-video-style-transform.json GET /tasks/{task_id}\",\"api-method\":\"GET\",\"api-path\":\"/tasks/{task_id}\"}}]}]}]},{\"type\":\"group\",\"title\":\"3D 生成 API\",\"icon\":\"ViewInArOutlined\",\"children\":[{\"type\":\"group\",\"title\":\"Tripo\",\"children\":[{\"type\":\"page\",\"title\":\"创建任务\",\"sidebarTitle\":\"创建任务\",\"slug\":\"api-reference/3d-generation/create-task\",\"frontmatter\":{\"title\":\"Tripo -- 3D 生成\",\"sidebarTitle\":\"创建任务\",\"description\":\"提交 Tripo 3D 生成任务\",\"keywords\":[\"Tripo 3D 生成\",\"文生3D\",\"图生3D\",\"多图生3D\",\"Tripo-H3.1\",\"Tripo-P1.0\"],\"openapi\":\"openapi-tripo-3d-generation.json POST /services/aigc/video-generation/3d-generation\",\"api-method\":\"POST\",\"api-path\":\"/services/aigc/video-generation/3d-generation\"}},{\"type\":\"page\",\"title\":\"查询结果\",\"sidebarTitle\":\"查询结果\",\"slug\":\"api-reference/3d-generation/query-result\",\"frontmatter\":{\"title\":\"Tripo -- 查询 3D 生成结果\",\"sidebarTitle\":\"查询结果\",\"description\":\"查询 Tripo 3D 生成任务状态\",\"keywords\":[\"Tripo 任务状态\",\"3D 生成结果查询\"],\"openapi\":\"openapi-tripo-3d-generation.json GET /tasks/{task_id}\",\"api-method\":\"GET\",\"api-path\":\"/tasks/{task_id}\"}}]}]},{\"type\":\"group\",\"title\":\"专项模型 API\",\"icon\":\"BrainOutlined\",\"children\":[{\"type\":\"page\",\"title\":\"Deep Research API\",\"sidebarTitle\":\"Deep Research API\",\"slug\":\"api-reference/specialized-models/deep-research-api\",\"frontmatter\":{\"title\":\"Qwen-Deep-Research API 参考\",\"sidebarTitle\":\"Deep Research API\",\"description\":\"Qwen-Deep-Research 深入研究模型的输入与输出参数说明\",\"keywords\":[\"Qwen-Deep-Research\",\"深度搜索\",\"研究报告\",\"流式响应\"],\"openapi\":\"openapi-deep-research.json POST /api/v1/services/aigc/text-generation/generation\",\"api-method\":\"POST\",\"api-path\":\"/api/v1/services/aigc/text-generation/generation\"}},{\"type\":\"group\",\"title\":\"GUI-Plus\",\"children\":[{\"type\":\"page\",\"title\":\"OpenAI 兼容\",\"sidebarTitle\":\"OpenAI 兼容\",\"slug\":\"api-reference/gui-
跳转到主要内容
模型

结构化输出

保证返回合法 JSON

结构化输出能确保模型返回合法 JSON。将 response_format 设置为 {"type": "json_object"},并在 prompt 中包含 "JSON" 一词即可。
  • OpenAI 兼容
  • DashScope
本生成常见问题\",\"description\":\"流式输出、上下文管理、上下文缓存、结构化输出、思考模式、函数调用和批量处理的常见问题。\",\"keywords\":[\"流式输出\",\"上下文缓存\",\"结构化输出\",\"思考模式\",\"函数调用\"],\"sidebarTitle\":\"文本生成\"}},{\"type\":\"page\",\"title\":\"图片与视频\",\"sidebarTitle\":\"图片与视频\",\"slug\":\"resources/faq-images-videos\",\"frontmatter\":{\"title\":\"图片与视频 FAQ\",\"description\":\"图片和视频生成的常见问题——计费、API 报错、模型差异、输入要求和输出 URL。\",\"keywords\":[\"文生图\",\"图片编辑\",\"视频生成\",\"错误码\",\"Base64\"],\"sidebarTitle\":\"图片与视频\"}},{\"type\":\"page\",\"title\":\"语音\",\"sidebarTitle\":\"语音\",\"slug\":\"resources/faq-audio-speech\",\"frontmatter\":{\"title\":\"语音常见问题\",\"description\":\"CosyVoice 语音合成、Qwen-Omni 实时对话、Fun-ASR 语音识别的常见问题与解答。\",\"keywords\":[\"语音合成\",\"语音识别\",\"CosyVoice\",\"Fun-ASR\",\"音频格式\"],\"sidebarTitle\":\"语音\"}},{\"type\":\"page\",\"title\":\"向量与重排序\",\"sidebarTitle\":\"向量与重排序\",\"slug\":\"resources/faq-embedding-reranking\",\"frontmatter\":{\"title\":\"向量与重排序 FAQ\",\"description\":\"文本向量、多模态向量和重排序的常见问题——模型选择、维度、批量限制及使用场景。\",\"keywords\":[\"语义搜索\",\"RAG\",\"稠密向量\",\"稀疏向量\",\"跨模态检索\"],\"sidebarTitle\":\"向量与重排序\"}}]}]}]},{\"id\":\"tab-4\",\"title\":\"更新日志\",\"href\":\"/changelog/models\",\"items\":[{\"type\":\"group\",\"title\":\"更新日志\",\"icon\":\"TimelineOutlined\",\"children\":[{\"type\":\"page\",\"title\":\"模型发布记录\",\"slug\":\"changelog/models\",\"frontmatter\":{\"title\":\"模型发布记录\",\"description\":\"模型发布与更新记录\",\"keywords\":[\"模型发布\",\"Qwen\",\"Wan\",\"版本更新\"]}},{\"type\":\"page\",\"title\":\"平台更新\",\"slug\":\"changelog/platform\",\"frontmatter\":{\"title\":\"平台更新\",\"description\":\"功能与改进\",\"keywords\":[\"平台更新\",\"功能发布\",\"控制台\",\"版本日志\"]}}]}]}],\"allLangTabs\":\"$undefined\",\"iconLibrary\":\"qwen-cloud\",\"languages\":\"$undefined\",\"currentLanguage\":\"zh\",\"basePath\":\"/docs\",\"pathname\":\"$undefined\",\"spaceCode\":\"maas-cn\",\"page\":\"$undefined\",\"prev\":\"$undefined\",\"next\":\"$undefined\",\"pageMode\":\"default\",\"children\":\"$L12\"}]\n"])self.__next_f.push([1,"93:[\"$\",\"$Lb8\",null,{\"title\":\"如何选择文件上传方式?\",\"id\":\"如何选择文件上传方式\",\"children\":[[\"$\",\"span\",null,{\"data-as\":\"p\",\"children\":\"根据 SDK 类型、文件大小和网络稳定性选择最合适的上传方式。\"}],[\"$\",\"$L19b\",null,{\"children\":[[\"$\",\"thead\",null,{\"children\":[\"$\",\"tr\",null,{\"children\":[[\"$\",\"th\",null,{\"children\":[\"$\",\"strong\",null,{\"children\":\"类型\"}]}],[\"$\",\"th\",null,{\"children\":[\"$\",\"strong\",null,{\"children\":\"规格\"}]}],[\"$\",\"th\",null,{\"children\":[\"$\",\"strong\",null,{\"children\":\"DashScope SDK(Python、Java)\"}]}],[\"$\",\"th\",null,{\"children\":[\"$\",\"strong\",null,{\"children\":\"OpenAI 兼容 / DashScope HTTP\"}]}]]}]}],[\"$\",\"tbody\",null,{\"children\":[[\"$\",\"tr\",null,{\"children\":[[\"$\",\"td\",null,{\"children\":\"图像\"}],[\"$\",\"td\",null,{\"children\":\"大于 7 MB 且小于 10 MB\"}],[\"$\",\"td\",null,{\"children\":\"传入本地路径\"}],[\"$\",\"td\",null,{\"children\":\"仅支持公共 URL,建议使用对象存储服务。\"}]]}],[\"$\",\"tr\",null,{\"children\":[[\"$\",\"td\",null,{\"children\":\"图像\"}],[\"$\",\"td\",null,{\"children\":\"小于 7 MB\"}],[\"$\",\"td\",null,{\"children\":\"传入本地路径\"}],[\"$\",\"td\",null,{\"children\":\"Base64 编码\"}]]}],[\"$\",\"tr\",null,{\"children\":[[\"$\",\"td\",null,{\"children\":\"视频\"}],[\"$\",\"td\",null,{\"children\":\"大于 100 MB\"}],[\"$\",\"td\",null,{\"children\":\"仅支持公共 URL,建议使用对象存储服务。\"}],[\"$\",\"td\",null,{\"children\":\"仅支持公共 URL,建议使用对象存储服务。\"}]]}],[\"$\",\"tr\",null,{\"children\":[[\"$\",\"td\",null,{\"children\":\"视频\"}],[\"$\",\"td\",null,{\"children\":\"大于 7 MB 且小于 100 MB\"}],[\"$\",\"td\",null,{\"children\":\"传入本地路径\"}],[\"$\",\"td\",null,{\"children\":\"仅支持公共 URL,建议使用对象存储服务。\"}]]}],[\"$\",\"tr\",null,{\"children\":[[\"$\",\"td\",null,{\"children\":\"视频\"}],[\"$\",\"td\",null,{\"children\":\"小于 7 MB\"}],[\"$\",\"td\",null,{\"children\":\"传入本地路径\"}],[\"$\",\"td\",null,{\"children\":\"Base64 编码\"}]]}]]}]]}],[\"$\",\"$Le3\",null,{\"children\":[\"$\",\"span\",null,{\"data-as\":\"p\",\"children\":\"Base64 编码会增加数据大小,因此原始文件必须小于 7 MB。使用 Base64 或本地路径可避免服务端下载超时,提升稳定性。\"}]}]]}]\n"])yle\":{\"color\":\"#1F2328\",\"--shiki-dark\":\"#D4D4D4\"},\"children\":\" beta \"}],[\"$\",\"span\",null,{\"style\":{\"color\":\"#CF222E\",\"--shiki-dark\":\"#D4D4D4\"},\"children\":\"=\"}],[\"$\",\"span\",null,{\"style\":{\"color\":\"#1F2328\",\"--shiki-dark\":\"#D4D4D4\"},\"children\":\" math.sqrt(min_pixels \"}],[\"$\",\"span\",null,{\"style\":{\"color\":\"#CF222E\",\"--shiki-dark\":\"#D4D4D4\"},\"children\":\"/\"}],[\"$\",\"span\",null,{\"style\":{\"color\":\"#1F2328\",\"--shiki-dark\":\"#D4D4D4\"},\"children\":\" (height \"}],[\"$\",\"span\",null,{\"style\":{\"color\":\"#CF222E\",\"--shiki-dark\":\"#D4D4D4\"},\"children\":\"*\"}],[\"$\",\"span\",null,{\"style\":{\"color\":\"#1F2328\",\"--shiki-dark\":\"#D4D4D4\"},\"children\":\" width))\"}]]}]\n"])