OpenAIAudioAvailable now

gpt-4o-mini-transcribe

gpt-4o-mini-transcribe is an audio tool from OpenAI that runs in the background and returns structured JSON. Pay as you go, with one API key.

Pricing

Input audio and prompt: $1.625 per 1M tokens. Output text: $6.50 per 1M tokens.

Limits

Runs
In the background
Returns
json
Longest queue wait
1 hour
Run deadline
30 minutes
Longest run, end to end
220 minutes
Largest inline input
1 MB
Largest input file
25 MB
Largest output
5 GB
Outputs per run
16

Input

FieldKindDefaultDescription
file requiredURL or file—

The audio file to transcribe, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. At most 25 MB.

prompttext—

An optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language.

includelist—

Additional information to include in the transcription response. logprobs will return the log probabilities of the tokens in the response to understand the model's confidence in the transcription.

languagetext—

The language of the input audio. Supplying the input language in ISO-639-1 (e.g. en) format will improve accuracy and latency.

temperaturenumber
0 to 1
0

The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "openai",
    "model": "gpt-4o-mini-transcribe",
    "input": {
      "file": "<file>"
    }
  }'