Passer au contenu principal
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"
}
Envoyez une URL de vidéo publiquement accessible dans url. Définissez éventuellement response_format sur json (par défaut) ou text selon que vous souhaitez une sortie structurée ou un texte de transcription brut.

Autorisations

Authorization
string
header
requis

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

Corps

application/json

Request to transcribe a YouTube video URL to text.

url
string
requis

YouTube video URL to transcribe.

Exemple:

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

response_format
enum<string>
défaut:json

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

Options disponibles:
json,
text
Exemple:

"json"

Réponse

Video transcription completed successfully

Video transcription response.

transcript
string
requis

The transcribed text from the video.

lang
string

Detected language code for the transcript.

Exemple:

"en"