{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/zh-CN/develop/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"API 在线调试台","description":"YouCam API documentation by Perfect Corp. Learn how to use Skin analysis API, Virtual try-on API, Image editing API, and Video generative AI APIs.","siteUrl":"https://docs.perfectcorp.com","keywords":"AI Skin Analysis, AI Clothes, AI Hairstyle, AI Outfits","image":"/assets/favicon.cd6fa4d833b2a573b3c6dae68386b293da205b203402cb0c97b80bd2acc07ea2.8351e24f.png"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"api-在线调试台","__idx":0},"children":["API 在线调试台"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["YouCam API 的 API 在线调试台能让您对如何配置 AI 流程有一个清楚的整体认识。您可以跑测试、验证结果、排查问题，它还会给出可以直接复制进自己环境的代码片段。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["网址：",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://yce.makeupar.com/api-console/en/api-playground/ai-skin-analysis/"},"children":["https://yce.makeupar.com/api-console/en/api-playground/ai-skin-analysis/"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"https://bcw-media.s3.ap-northeast-1.amazonaws.com/strapi/assets/You_Cam_API_Playground_9dfea29a72.png","alt":"YouCam API - API Playground"},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"使用指南","__idx":1},"children":["使用指南"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["按下面的步骤注册、创建 API 密钥，跑通您的第一个 AI 流程。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"1-注册并登录","__idx":2},"children":["1. 注册并登录"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["访问：https://yce.makeupar.com/ai-api"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["注册新账号，已有账号直接登录。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"2-创建-api-密钥","__idx":3},"children":["2. 创建 API 密钥"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["进入 ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://yce.makeupar.com/api-console/en/"},"children":["API 控制台"]},"，",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://yce.makeupar.com/api-console/en/api-keys/"},"children":["生成一个密钥"]},"："," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"https://bcw-media.s3.ap-northeast-1.amazonaws.com/strapi/assets/You_Cam_API_Console_API_Keys_07f57942c7.png","alt":"API Keys"},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"3-在-api-在线调试台里选择一个功能","__idx":4},"children":["3. 在 API 在线调试台里选择一个功能"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://yce.makeupar.com/api-console/en/api-playground/ai-skin-analysis/"},"children":["挑一个要测试的 AI 功能"]},"。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"4-用您的-api-密钥授权","__idx":5},"children":["4. 用您的 API 密钥授权"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["在调试台的 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Authorization"]}," 栏里选一个您创建好的 API 密钥。"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"https://bcw-media.s3.ap-northeast-1.amazonaws.com/strapi/assets/You_Cam_API_Playground_API_Key_d4854060be.png","alt":"API Key in Playground"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"5-选择素材来源","__idx":6},"children":["5. 选择素材来源"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["指定数据从哪里来（例如本地文件、文件 URL，或示例素材）。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"6-配置-ai-参数","__idx":7},"children":["6. 配置 AI 参数"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["把参数调整到您的场景所需的样子："," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"https://bcw-media.s3.ap-northeast-1.amazonaws.com/strapi/assets/You_Cam_API_Playground_Parameter_b253859dd5.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"7-检查请求体与示例代码","__idx":8},"children":["7. 检查请求体与示例代码"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["核对生成的请求体和示例代码是否正确。"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"https://bcw-media.s3.ap-northeast-1.amazonaws.com/strapi/assets/You_Cam_API_Playground_Request_Payload_and_Sample_Code_91cf726c91.png","alt":"Request Payload"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"8-开始处理","__idx":9},"children":["8. 开始处理"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["点击 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start Processing"]},"，执行这个流程。"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"https://bcw-media.s3.ap-northeast-1.amazonaws.com/strapi/assets/You_Cam_API_Playground_Start_Processing_2c334b82f4.png","alt":"Start Processing"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"9-查看结果","__idx":10},"children":["9. 查看结果"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["检查输出，确认它符合预期。"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"https://bcw-media.s3.ap-northeast-1.amazonaws.com/strapi/assets/You_Cam_API_Playground_Result_bf2a4c4575.png","alt":"Results"},"children":[]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]}]},"headings":[{"value":"API 在线调试台","id":"api-在线调试台","depth":1},{"value":"使用指南","id":"使用指南","depth":2},{"value":"1. 注册并登录","id":"1-注册并登录","depth":3},{"value":"2. 创建 API 密钥","id":"2-创建-api-密钥","depth":3},{"value":"3. 在 API 在线调试台里选择一个功能","id":"3-在-api-在线调试台里选择一个功能","depth":3},{"value":"4. 用您的 API 密钥授权","id":"4-用您的-api-密钥授权","depth":3},{"value":"5. 选择素材来源","id":"5-选择素材来源","depth":3},{"value":"6. 配置 AI 参数","id":"6-配置-ai-参数","depth":3},{"value":"7. 检查请求体与示例代码","id":"7-检查请求体与示例代码","depth":3},{"value":"8. 开始处理","id":"8-开始处理","depth":3},{"value":"9. 查看结果","id":"9-查看结果","depth":3}],"frontmatter":{"seo":{"title":"API 在线调试台"}},"lastModified":"2026-10-30T07:26:32.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/zh-cn/develop/api_playground","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}