Skip to content

get_font_types ​

GET /get_font_types

接口说明 ​

查询当前环境可用的字体名称。返回结果可以直接传给 add_text 或 add_subtitle 的 font 参数,避免使用不存在的字体。

请求参数 ​

无。

调用示例 ​

bash
curl -X GET https://your-domain.example/api/get_font_types \
  -H "X-API-Key: $VECTCUT_API_KEY"

返回格式 ​

json
{
  "success": true,
  "output": [
    { "name": "CC_Captial" },
    { "name": "CC_Moderno" },
    { "name": "JYruantang" }
  ],
  "error": ""
}

当前剪映环境实际返回 335 项,这里展示前 3 项。

个人自建服务