Capabilities
Asynchronous transcription
Submit a long recording as a job and collect the transcript when it finishes
Synchronous transcription returns a transcript in one request. Use it when the recording fits in the request body and you can wait for processing. For recordings too large or too long for that approach, use asynchronous transcription: submit the recording, receive a job, and collect the transcript when it finishes.
Use it for recordings measured in minutes or hours — meetings, interviews, podcasts, call archives — and for video files, whose audio track it extracts. For live audio, use streaming transcription instead; for a short clip, the synchronous endpoint is simpler.
How it works
Sending the audio
Two ways, and the right one depends on where the recording already is and how often you will transcribe it.
| Way | Field | Use it when |
|---|---|---|
| Stored file | fileId | You upload the recording to the Files API first. Send the bytes once and transcribe them as often as you like. |
| By URL | audioUri | The file already lives somewhere reachable, such as cloud storage. |
Stored file
Upload the recording once, then name it by id. Two requests, and the second one is small whatever the recording's size.
curl -X POST https://api.inworld.ai/v1/files \
-H "Authorization: Basic $INWORLD_API_KEY" \
-F "purpose=user_data" \
-F "file=@recording.wav"{
"id": "file_abc123",
"object": "file",
"bytes": 2306048,
"purpose": "user_data",
"mime_type": "audio/wav",
"created_at": 1793049600,
"expires_at": 1793654400
}Submit the job with that id:
{
"transcribeConfig": { "modelId": "inworld/inworld-stt-1", "audioEncoding": "AUTO_DETECT" },
"fileId": "file_abc123"
}file_abc123 stands in for the id your upload answers with; a real one is file_ followed by 32 hexadecimal characters.
Nothing is uploaded at submit time, so this is the way to transcribe one recording more than once — a second language, a different model, a re-run — without sending it again. The file's type is read from its first bytes rather than from its name, and audio and video files are both accepted.
What a stored file is. It belongs to the workspace your API key belongs to, and only that workspace can transcribe it. It is write-only: you can list it and read its metadata, but the bytes cannot be downloaded again, so the Files API is not a general store. It expires after seven days unless you ask for another lifetime, and it counts against your workspace's file storage until then — delete what you no longer need with DELETE /v1/files/{id}.
To choose the lifetime, send expires_after with the upload, anchored to creation and given in seconds, from one hour to thirty days:
curl -X POST https://api.inworld.ai/v1/files \
-H "Authorization: Basic $INWORLD_API_KEY" \
-F "purpose=user_data" \
-F "expires_after[anchor]=created_at" \
-F "expires_after[seconds]=86400" \
-F "file=@recording.wav"A single upload request holds a file of up to 100 MB; that is the request's limit, not the file's — the Files API stores an audio file of up to 1 GB and a video file of up to 4 GB. For a larger recording, upload it in parts — POST /v1/uploads, then POST /v1/uploads/{id}/parts, then POST /v1/uploads/{id}/complete — which answers the same file object. A job started before the file expires finishes even if the file expires while it runs.
By URL
{
"transcribeConfig": { "modelId": "inworld/inworld-stt-1", "audioEncoding": "LINEAR16" },
"audioUri": "https://storage.googleapis.com/your-bucket/recording.wav?..."
}The URL must use https and serve the file directly without your credentials. It can be public or include its own authorization, such as a signed cloud-storage URL. Redirects are refused, so use the URL that serves the file. Audio and video files are fetched the same way. The submit request waits for the fetch: an unreachable URL fails the submit, not the job, and submitting a long recording takes as long as fetching it.
Most convenient sharing links redirect — file-sharing services, shortened URLs, and console URLs such as storage.cloud.google.com. Use the direct serving URL, for example https://storage.googleapis.com/<bucket>/<object>.
Configuration
transcribeConfig takes the same fields as synchronous transcription, with two differences.
Every audio encoding is accepted, including the compressed formats streaming rejects — MP3, FLAC, OGG_OPUS — because the audio is a stored file rather than a live stream. AUTO_DETECT works where the file carries headers.
Video files work too. Send an MP4 (also .m4v and .mov), WEBM or MXF and its audio track is extracted and transcribed; the video is discarded and you are billed for the audio duration. Use async for video: a few minutes of 1080p exceeds the synchronous endpoint's ~16 MB cap even when the audio is small. An async job accepts a video file of up to 4 GB. With audioUri, Inworld fetches the file from its URL, so you do not upload it in the submit request. The codec inside the container is read from the file — see audio formats for the full list.
Live-session fields are ignored: inactivityTimeoutSeconds and endOfTurnConfidenceThreshold mean nothing to a recording that is already complete.
Custom vocabulary works here too. Pass prompts exactly as in synchronous transcription, with the same limits: at most 100 terms, each using only letters, digits, spaces, and . , ' ( ) : ! ? ; - — a term with any other character (such as & or @) rejects the submit with INVALID_ARGUMENT. See best practices for how to choose terms.
Speaker diarization, voice profiles and word timestamps all work as they do synchronously. Their output lands in the transcript document rather than in the operation — see below.
Reading the result
While the job runs, the operation reports done: false. When it finishes:
{
"name": "workspaces/my-workspace/sttTranscriptionJobs/6f1c.../operations/1790...",
"done": true,
"response": {
"resultUri": "https://storage.googleapis.com/...?X-Goog-Signature=...",
"expireTime": "2026-10-01T12:00:00Z",
"language": "English",
"usage": { "transcribedAudioMs": 7200000 }
}
}A job that failed carries an error instead of a response, with a code and a message. Either way the operation is done, so polling ends.
resultUri points at the transcript document:
{
"jobId": "6f1c...",
"transcript": "Full text of the recording...",
"language": "English",
"segments": [
{ "endTimeMs": 7200000, "transcript": "Full text of the recording..." }
],
"usage": { "transcribedAudioMs": 7200000, "modelId": "inworld/inworld-stt-1" }
}Word timestamps and speaker labels
Asking for includeWordTimestamps adds a wordTimestamps array to each segment, and enableSpeakerDiarization adds a speaker to each word in it:
{
"segments": [
{
"endTimeMs": 25861,
"transcript": "Furthermore, our universal fit phone cases...",
"wordTimestamps": [
{ "word": "Furthermore", "startTimeMs": 60, "endTimeMs": 870, "speaker": 0 },
{ "word": "our", "startTimeMs": 1240, "endTimeMs": 1420, "speaker": 0 }
]
}
]
}Speaker identifiers are small integers starting at 0, scoped to the one job: they mark "same speaker in this recording", not a person you can recognise across jobs. There is no segment-level speaker field — group words by their speaker value to build per-speaker segments. speaker is optional. A value of 0 identifies speaker 0. A word without speaker is unattributed: don't give it the previous word's speaker.
Voice profiles arrive the same way. Asking for voiceProfileConfig.enableVoiceProfile adds a voiceProfile object to each segment. The profile has the same categories and { label, confidence } shape as a synchronous response, and voiceProfileConfig.allowedLabels restricts its labels the same way.
language contains the detected language's name, such as English, rather than a BCP-47 tag. The millisecond fields, such as startTimeMs and transcribedAudioMs, arrive as JSON numbers. A millisecond field equal to 0 is omitted, for example startTimeMs on the first segment or first word. Read an omitted millisecond field as 0.
segments currently contains a single entry spanning the whole recording. The field is a list so that finer segmentation can be added without changing the document's shape. Do not rely on there being exactly one entry.
Limits
| Limit | Value |
|---|---|
| Audio per job | Up to 4 hours of audio. A stored file is held to the Files API's own size limits — 1 GB for an audio file, 4 GB for a video one; a recording past either cap, or past four hours, is refused on the submit with RESOURCE_EXHAUSTED |
| Jobs in flight per account | Depends on your plan |
| Result retention | 7 days from completion, after which the transcript is deleted and its link stops working |
| Submitted audio retention | 7 days, after which the recording is deleted. A stored file keeps its own lifetime instead — seven days unless the upload asked for another, and you may delete it sooner |
audioUri fetch timeout | 5 minutes, and the submit waits for it |
402.Submitting while you are already at your in-flight limit is refused with RESOURCE_EXHAUSTED, before the audio is transferred. Wait for a job to finish and submit again.
The link is signed once, when the job completes. Polling the operation again returns the same link rather than a fresh one. The seven days run from completion, however late you collect the result. Download the transcript and keep your own copy if you need it after that; neither it nor the submitted audio is a permanent store.
Errors
| What you see | What it means |
|---|---|
401 / 403 | The API key is missing, wrong, or belongs to a different environment. |
RESOURCE_EXHAUSTED | The in-flight job limit, the request rate limit, or a recording past the size or duration cap. The message says which. |
INVALID_ARGUMENT | A malformed request — check audioEncoding, modelId, and the audioUri rules above. A fileId naming no file of your workspace is reported here too: an id that was never issued, one belonging to another workspace, and one whose file has expired are deliberately indistinguishable. |
FAILED_PRECONDITION | The audioUri could not be fetched. The request was well formed; the fetch was not. It is answered on the submit, since that is when the fetch happens. |