Vai al contenuto principale
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"
}
Invia un URL video pubblicamente accessibile in url. Facoltativamente, imposta response_format su json (predefinito) o text a seconda che tu voglia un output strutturato o il testo della trascrizione in chiaro.

Autorizzazioni

Authorization
string
header
obbligatorio

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

Corpo

application/json

Request to transcribe a YouTube video URL to text.

url
string
obbligatorio

YouTube video URL to transcribe.

Esempio:

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

response_format
enum<string>
predefinito:json

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

Opzioni disponibili:
json,
text
Esempio:

"json"

Risposta

Video transcription completed successfully

Video transcription response.

transcript
string
obbligatorio

The transcribed text from the video.

lang
string

Detected language code for the transcript.

Esempio:

"en"