以编程方式转录和翻译媒体、检查状态并检索已完成的文件。
音频或视频每小时 $0.99
统一价格,按每个文件的时长计费。API 与网站其他功能使用同一份额度。
将 API 密钥作为 Bearer 令牌传递,然后提交文件或媒体 URL。这些示例会自动使用当前主机。
curl -X POST "$ORIGIN/api/v1/transcriptions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "language=auto-detect" \
-F "features=speaker-attribution,llm-inference" \
-F "languagesToTranslateTo=Spanish,French" \
-F "file=@/path/to/media.mp3"
curl -X POST "$ORIGIN/api/v1/transcriptions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"language": "auto-detect",
"features": "speaker-attribution,llm-inference",
"languagesToTranslateTo": "Spanish,French",
"downloadLink": "https://example.com/media.mp3"
}'
# 使用 POST /api/v1/transcriptions 返回的 "id":
curl -H "Authorization: Bearer YOUR_API_KEY" \
"$ORIGIN/api/v1/transcriptions/YOUR_TRANSCRIPTION_ID"