สร้างการแปล
post/v1/audio/translations
แปลเสียงเป็นข้อความภาษาอังกฤษ
การยืนยันตัวตน
ส่งคีย์ API ของ OLETOKEN เป็น Bearer token สร้างคีย์ได้ที่หน้า API Keys ในคอนโซล
Authorization: Bearer $OLETOKEN_API_KEYเนื้อหาคำขอ
Content-Type:multipart/form-data
| ฟิลด์ | ประเภท | จำเป็น | คำอธิบาย |
|---|---|---|---|
| file | string | — | |
| model | string | — | |
| prompt | string | — | — |
| response_format | string | — | — |
| temperature | number | — | — |
การตอบกลับ
200สร้างการแปลแล้ว
| ฟิลด์ | ประเภท | จำเป็น | คำอธิบาย |
|---|---|---|---|
| text | string | — | — |
ตัวอย่างคำขอ
curl -X POST 'https://api.oletoken.ai/v1/audio/translations' \
-H "Authorization: Bearer $OLETOKEN_API_KEY" \
-F 'file=' \
-F 'model='
