Zum Hauptinhalt springen
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"
}
Senden Sie eine öffentlich zugängliche Video-URL in url. Optional können Sie response_format auf json (Standard) oder text setzen, je nachdem, ob Sie strukturierte Ausgabe oder reinen Transkripttext wünschen.

Autorisierungen

Authorization
string
header
erforderlich

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

Body

application/json

Request to transcribe a YouTube video URL to text.

url
string
erforderlich

YouTube video URL to transcribe.

Beispiel:

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

response_format
enum<string>
Standard:json

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

Verfügbare Optionen:
json,
text
Beispiel:

"json"

Antwort

Video transcription completed successfully

Video transcription response.

transcript
string
erforderlich

The transcribed text from the video.

lang
string

Detected language code for the transcript.

Beispiel:

"en"