GRGlobalRouter Docs
Console

Audio / POST

Create transcription

Upload an audio file and create a transcription.

POST /v1/audio/transcriptions

OpenAI-style audio transcription. Requests use multipart/form-data and must specify a provider.

Back to Audio endpoint list

Request parameters

FieldTypeRequiredDescription
filefileYesAudio to transcribe: WAV, MP3, or M4A, up to 25 MiB.
modelstringYesTranscription model ID, such as qwen3-asr-flash-filetrans.
providerstringYesProvider ID; use ali for Qwen models.
languagestringNoAudio language hint, such as zh or en.
response_formatstringNoResponse format: json (default) or verbose_json.
temperaturenumberNoSampling temperature.

Request examples

Create transcription request examples
curl -X POST "https://api.globalrouter.com/v1/audio/transcriptions" \
  -H "Authorization: Bearer $GR_API_KEY" \
  -F "file=@./meeting.mp3;type=audio/mpeg" \
  -F "model=qwen3-asr-flash-filetrans" \
  -F "provider=ali" \
  -F "language=zh" \
  -F "response_format=verbose_json" \
  -F "temperature=0"

Response fields

FieldTypeRequiredDescription
textstringYesTranscribed text.
durationnumberNoAudio duration.
usageobjectNoUsage and billing information.

Response example

Response example
{
  "text": "这是一段音频转写结果。",
  "duration": 12.4
}

Errors

HTTPCodeDescription
401UNAUTHORIZEDMissing or invalid Authorization Bearer token.
403FORBIDDENThe current API key is not allowed to call this scope or model.
429RATE_LIMITEDRequests are too frequent or the asynchronous task queue is full; reduce concurrency or retry later.

Notes

  • qwen3-asr-flash-filetrans currently supports only json and verbose_json; prompt is not supported.
  • Upload file using multipart/form-data, not file_url or Base64 text.