Submit an audio file transcription
API Configuration
After saving, the Try It panel below sends real requests with this key.
Base: api.xrtoken.ai
Submit a publicly accessible audio URL and poll the task endpoint for the result. On the overseas site use byteplus-speech/seed-asr-file-2.0. The gateway measures the actual duration before reserving funds; the final charge uses the recognized audio duration. Files must be smaller than 512 MB and shorter than 5 hours.
Authorization
BearerAuth AuthorizationBearer <token>
API key authentication (OpenAI format). Pass in the Authorization header:
Authorization: Bearer tr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X post "https://api.xrtoken.ai/v1/audio/transcriptions/file" \ -H "Content-Type: application/json" \ -d '{ "model": "byteplus-speech/seed-asr-file-2.0", "file_url": "https://example.com/audio.mp3" }'{}{
"error": "model field is required",
"type": "invalid_request_error"
}{
"error": "invalid or missing API key",
"type": "auth_error"
}{
"error": "insufficient balance -- please top up or upgrade your plan",
"type": "billing_error"
}{
"error": "upstream provider error",
"type": "server_error"
}