视频很难搜索、引用或对比。如果你想研究所在领域最佳视频的前三秒,核实某位创作者是怎么说你的产品的,或复用一份脚本,你就需要文字形式的台词。Lovely Router 替你获取。发送视频链接,每份文字稿返回一个 JSON 对象,按文字稿份数从预付费余额中计费。可以从脚本、内容流水线或 AI 智能体中调用。
交给你的 AI 智能体
把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。
把 TikTok 视频转成文字,分析脚本与开头钩子. Use the Lovely Router data tools: each returns JSON and is billed per result.
- Docs (read first): https://lovelyrouter.com/docs/tools/find.md and https://lovelyrouter.com/docs/tools/run.md
- Plan first: POST https://lovelyrouter.com/v1/tools/suggest with `{"task": "<my task in plain words>"}` (free). It returns the tools to run in order, each with an example `input`, the `input_required` fields, an estimated cost and a ready-made `run` request. Replace the example values with my task's; if a field is unclear, read the tool with GET https://lovelyrouter.com/v1/tools/<id>. To browse instead, POST https://lovelyrouter.com/v1/tools/discover searches the catalog.
- Show me the plan and its estimated cost (`total_est_cost_usd`) before running anything large.
- Run: POST https://lovelyrouter.com/v1/tools/<id>/run with `{"input": {...}, "max_results": N}`. A 200 has the finished run with `items`; a 202 means it is still running, so poll the `poll` path until `status` is `succeeded`, `failed`, `timed_out` or `stopped`.
- Only delivered results are billed. Keep max_results small on the first run, check the output, then scale up.
- If you support MCP, connect https://lovelyrouter.com/mcp instead (Streamable HTTP, same key; https://lovelyrouter.com/docs/tools/mcp.md) and use suggest_tools, get_tool and run_tool.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `Authorization: Bearer $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.
My task: <the inputs (links, keywords or accounts) and how many results you need>工作原理
收集视频链接
汇总你想转成文字的视频:搜索得到的高表现视频、竞品的新品发布视频、某位创作者的赞助帖子。
设置上限后运行工具
把链接放进
videos,发送到POST /v1/tools/tiktok-transcript/run,并带上max_results。一个链接对应一份文字稿,一次运行最多可以包含 50 个。分析文字
把文字稿交给模型,让它给出每条视频的开场白、提出的说法、行动号召,以及反复出现的结构。
一次请求获取 TikTok 文字稿
获取 TikTok 文字稿在 videos 中接受一组视频链接。请求体中的 max_results 就是上限:
curl https://lovelyrouter.com/v1/tools/tiktok-transcript/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"videos": [
"https://www.tiktok.com/@stoolpresidente/video/7488736374602927402"
]
},
"max_results": 1
}'该工具的 input 中没有数量限制字段。你发送的链接数量和 max_results 决定了你为多少份文字稿付费。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。
每份文字稿包含什么
| 字段组 | 你得到的内容 |
|---|---|
| 文字稿 | 视频的口播文字 |
| 来源 | 它所来自的视频链接 |
该工具只返回口播文字稿,不包含画面上的文字。先运行一个链接,检查你关心的那类视频的输出。
实用配方
取 tiktok-search 的靠前结果,获取它们的文字稿,让模型列出每条的第一句话,并按类型分类:提问、断言、故事、警告。
转写你自己表现最好的三条视频,让模型写出它们共同的大纲,这样下一份脚本就从已被验证的结构出发。
转写某位创作者的赞助帖子,标出关于你产品的、需要法务或客服关注的说法。
把每份文字稿和链接一起存进你自己的数据库,再在文本中搜索产品名或某个投诉。
转写来自另一个国家的视频,让模型翻译,看看哪些点子可以跨市场通用。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"获取 links.txt 中 15 个 TikTok 链接的文字稿,写下每条的第一句话,并按钩子类型分组。把 max_results 设为 15。"
搭配其他 TikTok 工具
文字稿与视频列表以及观众的反应放在一起最有用:
按 URL 获取 TikTok 视频的语音文字稿。
按关键词或话题标签搜索 TikTok 视频:文案、播放、点赞、分享、作者、音乐。
某个 TikTok 账号的视频,附带作者的粉丝数和获赞数。
按 URL 获取 TikTok 视频的评论。
YouTube 视频的完整字幕文本,带时间戳:每个视频链接一份,视频有该语言时按你指定的语言返回。
tiktok-search找到值得转写的视频。tiktok-profile列出一个账号的全部视频,让你可以转写整个信息流。tiktok-comments补充观众对这份脚本的看法。youtube-transcript在 YouTube 上完成同样的工作。
如需监测外界对某个品牌的讨论,请看社交聆听。
费用说明
按份文字稿付费:启动运行时会预留它的最高费用,即每次调用费加上每份文字稿费乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的份文字稿付费,在开始时就被拒绝的运行不收费。
读取 100 份文字稿就按 100 份文字稿计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。