跳转到主要内容
POST
/
video
/
transcriptions
/api/v1/video/transcriptions
curl --request POST \
  --url https://api.venice.ai/api/v1/video/transcriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "response_format": "json"
}
'
{
  "transcript": "<string>",
  "lang": "en"
}
url 中发送可公开访问的视频 URL。可选地将 response_format 设置为 json(默认)或 text,具体取决于您需要结构化输出还是纯文本转录。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json

Request to transcribe a YouTube video URL to text.

url
string
必填

YouTube video URL to transcribe.

示例:

"https://www.youtube.com/watch?v=dQw4w9WgXcQ"

response_format
enum<string>
默认值:json

The format of the transcript output, in one of these options: json, text.

可用选项:
json,
text
示例:

"json"

响应

Video transcription completed successfully

Video transcription response.

transcript
string
必填

The transcribed text from the video.

lang
string

Detected language code for the transcript.

示例:

"en"