SocialToAI免费开始控制台

快手视频转文字(逐字稿)接口

提取公开快手视频的口播逐字稿与分段文本,支持 REST 与 MCP 调用。每次 13 积分,失败不扣费。 通过 POST /v1/call/kuaishou.transcript 或 MCP 的 call 工具直接调用,每次成功消耗 13 积分,调用失败不扣费。

返回字段

字段类型含义
textstring完整口播逐字稿全文
segmentsarray带起止时间的分段列表
sourcestring字幕来源(原生字幕或语音识别)
media_urlsarray提取到的音视频源地址

请求示例

接口地址:POST https://socialtoai.app/v1/call/kuaishou.transcript,传入 id 参数及 Idempotency-Key 请求头即可:

curl -X POST "https://socialtoai.app/v1/call/kuaishou.transcript" \
  -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"id": "3xexamplephoto123"}'

Python 示例

import os, uuid, requests

resp = requests.post(
    "https://socialtoai.app/v1/call/kuaishou.transcript",
    headers={
        "Authorization": f"Bearer {os.environ['SOCIALTOAI_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={"id": "3xexamplephoto123"},
    timeout=30,
)
print(resp.json())

在 MCP 中使用

在 Claude、ChatGPT、Cursor 或 Codex 中连接 https://socialtoai.app/mcp 后,直接发送公开链接让 AI 调用 call 工具(op="kuaishou.transcript")即可获取结果。

打开控制台 Playground 立即试用 →