الانتقال إلى المحتوى الرئيسي
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"