Skip to navigation

Transcribe audio (Speech to Text)

View as Markdown

Relays to https://api.fish.audio/v1/asr, overwriting Authorization with the gateway’s Fish Audio key. No model header — Fish Audio’s ASR is a single model. Billed on the response’s real duration, rounded up to the nearest second, at $0.3798/audio hour, fee included.

Authentication

AuthorizationBearer

Your per-client bearer token — the API key the gateway issued to you. Present it in Authorization: Bearer <token> form. A token that is missing, unknown, or revoked draws a 401. Before the call is sent upstream the token is removed (stripped, or swapped for the upstream’s own credential); it never makes it past the gateway.

Request

This endpoint expects an object.
audiostringRequired

Audio to transcribe, base64-encoded.

languagestring or nullOptional
Optional language hint.
ignore_timestampsbooleanOptionalDefaults to true

Set false for per-segment timing on audio under 30 seconds, at higher latency.

Response

The transcription, relayed untouched.
textstring
durationdouble

Duration of the audio in seconds — the figure the gateway bills from.

segmentslist of objects

Errors

401
Unauthorized Error
404
Not Found Error