跳轉到主要內容
POST
/
v1
/
audio
/
transcriptions
Create transcription
curl --request POST \
  --url https://api.dgrid.ai/v1/audio/transcriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'model=<string>' \
  --form 'language=<string>' \
  --form 'prompt=<string>' \
  --form response_format=json \
  --form temperature=0
{
  "text": "<string>"
}

授權

Authorization
string
header
必填

Your DGrid API key. All endpoints use Authorization: Bearer <DGRID_API_KEY>.

主體

multipart/form-data
file
file
必填

Audio file up to 25 MB.

model
string
必填

Model ID, such as whisper-1.

language
string

ISO-639-1 language code, such as en, zh, or ko.

prompt
string

Optional prompt for biasing the transcript.

response_format
enum<string>
預設值:json
可用選項:
json,
text,
srt,
verbose_json,
vtt
temperature
number
預設值:0

Sampling temperature.

必填範圍: 0 <= x <= 1

回應

Transcript. When response_format is verbose_json, the response also includes task, language, duration, and per-segment timing metadata.

text
string

Transcript text.