只有用 PC 或 Mac 直播时,AI 视频才会播放。
API
Studio API
用你自己的代码创建视频。
发送一张参考照片,可附加提示词或风格,即可获得一段短视频。每个任务使用一点,失败的任务会退回点数。
curl -X POST https://api.tik.tools/studio/generate \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{"image_url":"https://example.com/photo.jpg","prompt":"Thank you for the gift","creditType":"youbuild","duration_sec":8}'- duration_sec 可为 4、6、8 或 10 秒,默认 8。
- 请将 YOUR_API_KEY 替换为 API 控制台中的密钥。切勿把密钥放进网页。