Speech-to-text. Two input modes — multipart file (25 MB, OpenAI Whisper compatible) or JSON audio_url (Kyma extension; 100 MB on whisper-v3-turbo, 25 MB on other models). Synchronous, billed per second with a 10-second minimum per request.
Synchronous endpoint. Send audio in, get the transcript back in one call. Two input modes:
Mode 1 — File upload (multipart/form-data, up to 25 MB). Drop-in OpenAI Whisper replacement.
Mode 2 — URL fetch (application/json, audio_url up to 100 MB on whisper-v3-turbo and 25 MB on every other model, https only). Kyma extension — pass a public URL, Kyma fetches the bytes upstream so you don’t proxy them through your client.
The same request also benefits from automatic never-die failover when the primary model has a transient hiccup — see Automatic failover (never-die STT).
Mode 2 is a Kyma extension. It is not part of the OpenAI Whisper API. The OpenAI Python and Node SDKs only support multipart upload — for audio_url mode, use requests (Python), fetch (Node), or curl.
Request
Both modes accept the same set of model / language / format parameters.
Mode 1 — multipart upload
file
required
Audio file. Accepted formats: mp3, wav, m4a, ogg, flac, webm — the set every transcription model accepts, measured against each one. ogg and webm mean Opus in those containers, which is what browser MediaRecorder emits. Max 25 MB. ~30 minutes of mono 16kHz mp3 fits comfortably.The part’s Content-Type may be generic (application/octet-stream, or missing) — the file extension decides. Anything else is refused with 415 unsupported_audio_type before any charge.
string
default:"whisper-v3-turbo"
Choose by model id:
whisper-v3-turbo (default) — fastest and cheapest, $0.0009/min. Best for high-volume bulk transcription.
gpt-4o-mini-transcribe-2025-12-15 — premium accuracy on noisy / conversational / code-switching audio (Vi/En mixing), $0.00405/min. Retiring 2027-02-26 — see gpt-transcribe below.
gpt-transcribe — OpenAI’s current premium STT and the replacement it names for the model above, $0.006075/min. Opt-in by SKU;
gemini-3.5-transcribe — Google file STT, $0.00675/min. Opt-in by SKU.
Not every model returns per-segment timestamps — see Segment timestamps by model before choosing verbose_json, srt or vtt.
Or pin a specific SKU directly (e.g. whisper-v3-turbo, gpt-transcribe, gpt-4o-mini-transcribe-2025-12-15, gemini-3.5-transcribe). See Audio models and Model Aliases.
string
ISO-639-1 code (e.g. en, vi, ja). Optional — both providers auto-detect when omitted. Supplying it improves accuracy on short clips.
string
One of: json, verbose_json, text, srt, vtt. JSON formats embed a billing block in the response body. text returns the bare transcript and srt / vtt return subtitle files; for those three, billing rides on X-Kyma-* response headers so the body stays a clean transcript or subtitle file.verbose_json, srt and vtt need per-segment timestamps. On a model that returns a plain transcript they are refused with 400 segments_unsupported — before any provider call, so nothing is charged. See Segment timestamps by model.
number
default:"0"
Sampling temperature 0–1. Default 0 (deterministic).
string
Optional priming text. Use it to nudge the model toward known proper nouns, acronyms, or domain vocabulary in your audio.
Mode 2 — JSON audio_url
string
required
Public HTTPS URL of the audio file. Kyma fetches the bytes upstream — no need to download and re-upload from your client. Max 100 MB on whisper-v3-turbo; every other model, and the whisper-1 failover, fetches at most 25 MB and fails a larger file. http:// and other schemes are rejected to prevent SSRF / mixed-content. The bytes are fetched and passed to the model as the host serves them — Kyma does not inspect the URL’s Content-Type — so use one of the Mode 1 formats; anything else is the model’s own error.
string
default:"whisper-v3-turbo"
Same as Mode 1.
string
Same as Mode 1.
string
Same as Mode 1. Mode 2 still benefits from never-die failover (retry + the timestamp-preserving secondary); the plain-text tertiary tier is skipped in URL mode. See Automatic failover.
number
Same as Mode 1.
string
Same as Mode 1.
Response
200 OK with the transcript and a Kyma billing block.
Detected language (full name, e.g. "English"). Like task, duration and segments, it is returned only with verbose_json, which only timestamp models serve. With json the body is text, model and billing, plus logprobs when you asked for them.
number
Audio duration in seconds (decoded from the file, not estimated). 0 only when the plain-text tertiary tier (gemini-3-flash) served the request, which does not return duration.
array
Per-segment timestamps and text. Present when response_format is verbose_json and the model returns timestamps (supports_segments: true on /v1/models) — whisper-v3-turbo, or its failover whisper-1. A model without them cannot be asked for verbose_json at all (400 segments_unsupported).
string
The model SKU you requested, which is the one you are billed for. It stays the same when a failover model served; see X-Kyma-Served-Model.
number
Seconds charged: the audio duration rounded up to the next whole second, with a 10-second minimum per request.
number
billable_seconds expressed in whole minutes, rounded up. Kept for compatibility; the charge is computed from billable_seconds.
number
Final cost charged for this request.
number
Remaining balance after this charge.
Non-JSON formats
When response_format is text, srt, or vtt, the body is a plain transcript or subtitle file (no JSON envelope) and billing comes back on response headers (see below).srt returns a SubRip subtitle file (application/x-subrip; charset=utf-8); vtt returns a WebVTT file (text/vtt; charset=utf-8). Both are built from the same per-segment timestamps verbose_json exposes, so the timing matches across formats.
Segment timestamps by model
Only some transcription models return per-segment timestamps (segments[] with start, end, avg_logprob, no_speech_prob). The catalogue says which: GET /v1/models carries supports_segments on every transcription SKU, and a request for verbose_json / srt / vtt on a model without them is refused up front with 400 segments_unsupported and a suggested_models list.
Model
Returns segments
Formats available
whisper-v3-turbo
Yes
json, verbose_json, text, srt, vtt
gpt-4o-mini-transcribe-2025-12-15
No
json, text
gpt-transcribe
No
json, text
gemini-3.5-transcribe
No
json, text
If you need timestamps or confidence per segment, use whisper-v3-turbo. Cutting a plain transcript into pseudo-segments client-side and estimating times from character counts produces invented timings — it is not something Kyma does for you.
Response headers
The billing headers are returned on text, srt and vtt responses. json and verbose_json responses carry the same figures in the body’s billing block instead. X-Kyma-Fallback and X-Kyma-Served-Model are set on every format, when a failover model served.
Header
Meaning
X-Kyma-Model
The model SKU you requested and are billed for (e.g. whisper-v3-turbo)
X-Kyma-Duration-Sec
Detected audio duration in seconds (0 only when the plain-text tertiary tier served)
X-Kyma-Billable-Seconds in whole minutes, rounded up. Kept for compatibility
X-Kyma-Cost-USD
Final cost in USD
X-Kyma-Balance-USD
Remaining account balance
X-Kyma-Fallback
Secondary model SKU that served (whisper-1 or gemini-3-flash) only when a secondary served. Absent on the primary path and on a bare primary retry.
X-Kyma-Served-Model
The model SKU that answered, only when it is not the one you requested. Same value as X-Kyma-Fallback. You are still billed at the requested model’s rate.
Automatic failover (never-die STT)
Transcription is never-die. On a transient hiccup with the primary model (default whisper-v3-turbo), Kyma transparently works through a failover chain so your request still completes — same request, same price, same response shape. You don’t opt in: it’s on by default.Why it matters. A single transcription request is normally a single point of failure — one transient hiccup and the pipeline built on top of it (a dub, a caption job, a voice agent) dies, leaving you to write retry and fallback logic yourself. Kyma absorbs that for you: the request either completes or fails honestly — never silently mangled. You ship the feature, not the plumbing.The chain is format-aware, because only some models preserve per-segment timestamps:
Retry the primary once (short backoff). Absorbs the vast majority of transient blips, which recover immediately. Nothing in your response changes.
Secondary — whisper-1. A timestamp-preserving model. Because it returns real per-segment timestamps, it serves every caller, including verbose_json, srt, and vtt.
Tertiary — gemini-3-flash. A plain-text transcription tier. Used only for plain-text transcripts (text / json) — it does not return segment timestamps, so callers that need them (verbose_json / srt / vtt) never route here. URL mode (audio_url) also skips this tier (it needs inline bytes).
If every tier is exhausted, you get a clean error (the chain genuinely had nothing left), not a leaked upstream message.Only genuine client errors fail fast. A bad file, a too-large upload, or an unsupported format (400 / 413 / 415 / 422) is surfaced immediately with no failover — failover is a reliability tool, not an error-hiding one. On whisper-v3-turbo, a rate limit on the primary model moves the request down the chain like any other hiccup. On the models that do not fail over, it returns 429 with code provider_rate_limited and a Retry-After header.You can see which tier served:
X-Kyma-Served-Model and X-Kyma-Fallback headers — the secondary model SKU that served, when a secondary served. Both are set on every response format.
segments is present whenever a timestamp-preserving model served (primary or whisper-1); absent only on the plain-text tertiary tier, where duration is also 0 (billed as the 10-second minimum).
Only whisper-v3-turbo has the chain. The other SKUs opt out — you chose that model, so Kyma won’t silently swap it. That covers gpt-4o-mini-transcribe-2025-12-15, gpt-transcribe and gemini-3.5-transcribe. Their errors surface as 502 transcription_failed.
Pricing
SKU
Per minute
1-hour file
whisper-v3-turbo (default)
$0.0009
$0.054
gpt-4o-mini-transcribe-2025-12-15
$0.00405
$0.243
gpt-transcribe
$0.006075
$0.3645
gemini-3.5-transcribe
$0.00675
$0.405
Billed per second at the per-minute rate above, with a 10-second minimum per request: a 5-second clip is billed 10 seconds, a 45-second clip 45 seconds, a 61-second clip 61 seconds. On whisper-v3-turbo those cost $0.00015, $0.000675 and $0.000915. Failover transcriptions are billed at the same rate as the primary whisper-v3-turbo path — it doesn’t matter which tier ultimately served, you always pay the whisper-v3-turbo price. The other models do not fall back (your choice of model is respected).
Errors
Status
error.type
error.code
When
400
invalid_request
—
Missing file (Mode 1) or invalid JSON body (Mode 2)
400
invalid_request
audio_url_required
Mode 2 body without audio_url field
400
invalid_request
audio_url_invalid_scheme
audio_url not https:// (SSRF protection)
400
invalid_request
not_a_transcription_model
model is not a transcription SKU. error.suggested_models lists ones that are.
400
invalid_request
segments_unsupported
verbose_json / srt / vtt requested on a model that returns no per-segment timestamps. Refused before any provider call — nothing is charged. error.suggested_models lists timestamp-preserving models.
401
auth_error
—
Missing or invalid API key
402
billing_error
insufficient_credits
Balance does not cover the file. Checked before the audio leaves Kyma: the amount is the file’s own length — read exactly from an uncompressed file’s header, estimated conservatively otherwise — priced in whole minutes with one minute as the floor, so a short clip needs a minute’s balance to start even though it is billed by the second. Nothing is charged, and no provider is called.
408
timeout
audio_upload_timeout
The multipart upload did not finish arriving in time, usually a slow connection. Retry, or use Mode 2
413
invalid_request
—
Multipart body > 25 MB. For larger files, use Mode 2 with whisper-v3-turbo (audio_url up to 100 MB).
415
invalid_request
unsupported_audio_type
The part is not one of the accepted formats. A generic application/octet-stream is fine when the filename carries the extension. Not charged.
422
invalid_request
no_speech_detected
The file decoded but contains no speech (silent, or damaged in a convert step). Not charged. Listen to the file that was actually sent, not the source recording. error.suggested_models is included.
429
rate_limit_error
audio_concurrent_limit
Your tier’s audio concurrency cap is reached. Retry-After: 5. See Rate Limits.
429
rate_limit_error
provider_rate_limited
The model is rate-limited and the SKU does not fail over (or the chain was exhausted). Wait for Retry-After.
502
provider_error
transcription_failed
The never-die chain was exhausted (every eligible tier failed), or a premium SKU that does not fail over is down. The error message is provider-isolated — no upstream identity is leaked. error.suggested_models names transcription models you can switch to in the meantime.
503
provider_error
—
Transcription is not available right now. Retry shortly.
A transcription that ran is charged for the duration the provider measured, even if your balance fell below it while the file was being transcribed — the same rule /v1/chat/completions follows. The balance can go slightly negative for that one request; the next request is refused with 402 until you top up.Every transcription error that leaves you without a transcript carries error.suggested_models: up to three other transcription model ids, filtered to ones that can serve the format you asked for. They are suggestions — Kyma never swaps the model you named.
Returns the bare transcript. If the primary model has a transient hiccup, the request transparently completes via a secondary or tertiary tier and you’ll see X-Kyma-Fallback naming the model SKU that served.
Rate Limits — concurrency caps for audio endpoints
watch-cli — open-source CLI that uses these endpoints to give any agent eyes and ears for any social video
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Kyma API","colors":{"primary":"#D4A843","light":"#F2D675","dark":"#C8952E"},"favicon":"https://mintcdn.com/kyma/Ir71WrmY8XrY4SLl/favicon.png?fit=max\u0026auto=format\u0026n=Ir71WrmY8XrY4SLl\u0026q=85\u0026s=9027f99aa13fcc832643ead1f6fb1d86","logo":{"light":"https://mintcdn.com/kyma/Ir71WrmY8XrY4SLl/logo/light.svg?fit=max\u0026auto=format\u0026n=Ir71WrmY8XrY4SLl\u0026q=85\u0026s=dcfc23077ffc3b8109d9c3d5d8c4cfc3","dark":"https://mintcdn.com/kyma/Ir71WrmY8XrY4SLl/logo/dark.svg?fit=max\u0026auto=format\u0026n=Ir71WrmY8XrY4SLl\u0026q=85\u0026s=c21c20f5709c51359720a141096fbfc9"},"api":{"mdx":{"server":"https://kymaapi.com","auth":{"method":"bearer","name":null}}},"background":{"decoration":null,"color":{"light":null,"dark":"#08081a"}},"navbar":{"links":[{"label":"Dashboard","href":"https://kymaapi.com/dashboard"}],"primary":{"type":"button","label":"Get API Key","href":"https://kymaapi.com"}},"footer":{"socials":{"x":"https://x.com/Kyma_API"}},"integrations":{"posthog":{"apiKey":"phc_yCxqxwS8Quvpuxtgrwddye9ucgRPoQBGyAUBYz4UjStV","apiHost":"https://us.i.posthog.com","sessionRecording":false}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kyma","hasAudioNarration":false,"actualSubdomain":"kyma","customDomains":["docs.kymaapi.com"],"gitSource":{"type":"github","owner":"kyma-api","repo":"kyma-api","deployBranch":"main","contentDirectory":"docs-site","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b09f521d31c90b31eec06bb","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Models","count":74},{"language":"default","tag":"Guides","count":64},{"language":"default","tag":"API Reference","count":25},{"language":"default","tag":"Endpoints","count":25},{"language":"default","tag":"Integrations","count":19},{"language":"default","tag":"Text \u0026 code","count":16},{"language":"default","tag":"Use Cases","count":9},{"language":"default","tag":"Image","count":7},{"language":"default","tag":"Documentation","count":5},{"language":"default","tag":"Audio","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/audio-transcriptions","slug":"/api-reference/audio-transcriptions","pageMetadata":{"title":"Audio Transcriptions","api":"POST /v1/audio/transcriptions","description":"Speech-to-text. Two input modes — multipart file (25 MB, OpenAI Whisper compatible) or JSON audio_url (Kyma extension; 100 MB on whisper-v3-turbo, 25 MB on other models). Synchronous, billed per second with a 10-second minimum per request.","href":"/api-reference/audio-transcriptions"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Speech-to-text. Two input modes — multipart file (25 MB, OpenAI Whisper compatible) or JSON audio_url (Kyma extension; 100 MB on whisper-v3-turbo, 25 MB on other models). Synchronous, billed per second with a 10-second minimum per request.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Synchronous endpoint. Send audio in, get the transcript back in one call. Two input modes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Mode 1 — File upload`}),` (`,_jsx(_components.code,{children:`multipart/form-data`}),`, up to 25 MB). Drop-in OpenAI Whisper replacement.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Mode 2 — URL fetch`}),` (`,_jsx(_components.code,{children:`application/json`}),`, `,_jsx(_components.code,{children:`audio_url`}),` up to 100 MB on `,_jsx(_components.code,{children:`whisper-v3-turbo`}),` and 25 MB on every other model, https only). Kyma extension — pass a public URL, Kyma fetches the bytes upstream so you don’t proxy them through your client.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The same request also benefits from automatic never-die failover when the primary model has a transient hiccup — see `,_jsx(_components.a,{href:`#automatic-failover-never-die-stt`,children:`Automatic failover (never-die STT)`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Mode 1 — multipart upload (OpenAI-compatible)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://kymaapi.com/v1/audio/transcriptions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KYMA_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@meeting.mp3\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model=whisper-v3-turbo\"`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Mode 2 — JSON audio_url (Kyma extension)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://kymaapi.com/v1/audio/transcriptions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KYMA_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"audio_url\": \"https://cdn.example.com/podcast.mp3\", \"model\": \"whisper-v3-turbo\"}'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`choosing-a-mode`,children:`Choosing a mode`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{children:`Mode 1 — multipart`}),_jsxs(_components.th,{children:[`Mode 2 — JSON `,_jsx(_components.code,{children:`audio_url`})]})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Content-Type`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`multipart/form-data`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`application/json`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Source field`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`file`}),` (binary part)`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`audio_url`}),` (https string)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Max size`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`25 MB`}),_jsxs(_components.td,{children:[`100 MB on `,_jsx(_components.code,{children:`whisper-v3-turbo`}),`; 25 MB on other models`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`OpenAI SDK compatible`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`No — use raw HTTP`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Never-die failover`}),_jsx(_components.td,{children:`Full chain (timestamp + plain-text tiers)`}),_jsx(_components.td,{children:`Retry + timestamp-preserving secondary`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Best for`}),_jsx(_components.td,{children:`Local files, recordings, short clips`}),_jsx(_components.td,{children:`Cloud-hosted media, podcasts, long-form`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Mode 2 is a Kyma extension.`}),` It is not part of the OpenAI Whisper API. The OpenAI Python and Node SDKs only support multipart upload — for `,_jsx(_components.code,{children:`audio_url`}),` mode, use `,_jsx(_components.code,{children:`requests`}),` (Python), `,_jsx(_components.code,{children:`fetch`}),` (Node), or `,_jsx(_components.code,{children:`curl`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(_components.p,{children:`Both modes accept the same set of model / language / format parameters.`}),`\n`,_jsx(Heading,{level:`3`,id:`mode-1-—-multipart-upload`,children:`Mode 1 — multipart upload`}),`\n`,_jsxs(ParamField,{body:`file`,type:`file`,required:true,id:`param-file`,children:[_jsxs(_components.p,{children:[`Audio file. Accepted formats: `,_jsx(_components.code,{children:`mp3`}),`, `,_jsx(_components.code,{children:`wav`}),`, `,_jsx(_components.code,{children:`m4a`}),`, `,_jsx(_components.code,{children:`ogg`}),`, `,_jsx(_components.code,{children:`flac`}),`, `,_jsx(_components.code,{children:`webm`}),` — the set every transcription model accepts, measured against each one. `,_jsx(_components.code,{children:`ogg`}),` and `,_jsx(_components.code,{children:`webm`}),` mean Opus in those containers, which is what browser MediaRecorder emits. Max 25 MB. ~30 minutes of mono 16kHz mp3 fits comfortably.`]}),_jsxs(_components.p,{children:[`The part’s `,_jsx(_components.code,{children:`Content-Type`}),` may be generic (`,_jsx(_components.code,{children:`application/octet-stream`}),`, or missing) — the file extension decides. Anything else is refused with `,_jsx(_components.code,{children:`415 unsupported_audio_type`}),` before any charge.`]})]}),`\n`,_jsxs(ParamField,{body:`model`,type:`string`,default:`whisper-v3-turbo`,id:`param-model`,children:[_jsx(_components.p,{children:`Choose by model id:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`whisper-v3-turbo`}),` (default) — fastest and cheapest, $0.0009/min. Best for high-volume bulk transcription.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`gpt-4o-mini-transcribe-2025-12-15`}),` — premium accuracy on noisy / conversational / code-switching audio (Vi/En mixing), $0.00405/min. `,_jsx(_components.strong,{children:`Retiring 2027-02-26`}),` — see `,_jsx(_components.code,{children:`gpt-transcribe`}),` below.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`gpt-transcribe`}),` — OpenAI’s current premium STT and the replacement it names for the model above, $0.006075/min. Opt-in by SKU;`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`gemini-3.5-transcribe`}),` — Google file STT, $0.00675/min. Opt-in by SKU.`]}),`\n`]}),_jsxs(_components.p,{children:[`Not every model returns per-segment timestamps — see `,_jsx(_components.a,{href:`#segment-timestamps-by-model`,children:`Segment timestamps by model`}),` before choosing `,_jsx(_components.code,{children:`verbose_json`}),`, `,_jsx(_components.code,{children:`srt`}),` or `,_jsx(_components.code,{children:`vtt`}),`.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Or pin a specific SKU directly (e.g. `,_jsx(_components.code,{children:`whisper-v3-turbo`}),`, `,_jsx(_components.code,{children:`gpt-transcribe`}),`, `,_jsx(_components.code,{children:`gpt-4o-mini-transcribe-2025-12-15`}),`, `,_jsx(_components.code,{children:`gemini-3.5-transcribe`}),`). See `,_jsx(_components.a,{href:`/models/audio`,children:`Audio models`}),` and `,_jsx(_components.a,{href:`/guides/model-aliases`,children:`Model Aliases`}),`.`]}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`language`,type:`string`,id:`param-language`,children:_jsxs(_components.p,{children:[`ISO-639-1 code (e.g. `,_jsx(_components.code,{children:`en`}),`, `,_jsx(_components.code,{children:`vi`}),`, `,_jsx(_components.code,{children:`ja`}),`). Optional — both providers auto-detect when omitted. Supplying it improves accuracy on short clips.`]})}),`\n`,_jsxs(ParamField,{body:`response_format`,type:`string`,default:`verbose_json on models with supports_segments, json otherwise`,id:`param-response-format`,children:[_jsxs(_components.p,{children:[`One of: `,_jsx(_components.code,{children:`json`}),`, `,_jsx(_components.code,{children:`verbose_json`}),`, `,_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`srt`}),`, `,_jsx(_components.code,{children:`vtt`}),`. JSON formats embed a `,_jsx(_components.code,{children:`billing`}),` block in the response body. `,_jsx(_components.code,{children:`text`}),` returns the bare transcript and `,_jsx(_components.code,{children:`srt`}),` / `,_jsx(_components.code,{children:`vtt`}),` return subtitle files; for those three, billing rides on `,_jsx(_components.code,{children:`X-Kyma-*`}),` response headers so the body stays a clean transcript or subtitle file.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`verbose_json`}),`, `,_jsx(_components.code,{children:`srt`}),` and `,_jsx(_components.code,{children:`vtt`}),` need per-segment timestamps. On a model that returns a plain transcript they are refused with `,_jsx(_components.code,{children:`400 segments_unsupported`}),` — before any provider call, so nothing is charged. See `,_jsx(_components.a,{href:`#segment-timestamps-by-model`,children:`Segment timestamps by model`}),`.`]})]}),`\n`,_jsx(ParamField,{body:`temperature`,type:`number`,default:`0`,id:`param-temperature`,children:_jsx(_components.p,{children:`Sampling temperature 0–1. Default 0 (deterministic).`})}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt`,children:_jsx(_components.p,{children:`Optional priming text. Use it to nudge the model toward known proper nouns, acronyms, or domain vocabulary in your audio.`})}),`\n`,_jsxs(Heading,{level:`3`,id:`mode-2-—-json-audio_url`,children:[`Mode 2 — JSON `,_jsx(_components.code,{children:`audio_url`})]}),`\n`,_jsx(ParamField,{body:`audio_url`,type:`string`,required:true,id:`param-audio-url`,children:_jsxs(_components.p,{children:[`Public `,_jsx(_components.strong,{children:`HTTPS URL`}),` of the audio file. Kyma fetches the bytes upstream — no need to download and re-upload from your client. Max 100 MB on `,_jsx(_components.code,{children:`whisper-v3-turbo`}),`; every other model, and the `,_jsx(_components.code,{children:`whisper-1`}),` failover, fetches at most 25 MB and fails a larger file. `,_jsx(_components.code,{children:`http://`}),` and other schemes are rejected to prevent SSRF / mixed-content. The bytes are fetched and passed to the model as the host serves them — Kyma does not inspect the URL’s `,_jsx(_components.code,{children:`Content-Type`}),` — so use one of the Mode 1 formats; anything else is the model’s own error.`]})}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,default:`whisper-v3-turbo`,id:`param-model-1`,children:_jsx(_components.p,{children:`Same as Mode 1.`})}),`\n`,_jsx(ParamField,{body:`language`,type:`string`,id:`param-language-1`,children:_jsx(_components.p,{children:`Same as Mode 1.`})}),`\n`,_jsx(ParamField,{body:`response_format`,type:`string`,default:`verbose_json on models with supports_segments, json otherwise`,id:`param-response-format-1`,children:_jsxs(_components.p,{children:[`Same as Mode 1. Mode 2 still benefits from never-die failover (retry + the timestamp-preserving secondary); the plain-text tertiary tier is skipped in URL mode. See `,_jsx(_components.a,{href:`#automatic-failover-never-die-stt`,children:`Automatic failover`}),`.`]})}),`\n`,_jsx(ParamField,{body:`temperature`,type:`number`,id:`param-temperature-1`,children:_jsx(_components.p,{children:`Same as Mode 1.`})}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt-1`,children:_jsx(_components.p,{children:`Same as Mode 1.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`200 OK`}),` with the transcript and a Kyma billing block.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`27`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`27`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"task\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"transcribe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"language\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"English\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5.03`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"For too long, I have watched mortals suffer.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"segments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"start\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4.74`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"For too long, I have watched mortals suffer.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50365`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1171`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`886`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`938`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`11`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`286`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`362`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`6337`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`6599`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1124`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`9753`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`13`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50602`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"temperature\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"avg_logprob\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`-0.20`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"compression_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.85`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"no_speech_prob\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.0`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"whisper-v3-turbo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"billing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration_sec\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5.03`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"billable_seconds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"billable_minutes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cost_usd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.00015`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"balance_usd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`41.469`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(ResponseField,{name:`text`,type:`string`,id:`param-text`,children:`The full transcript.`}),`\n`,_jsxs(ResponseField,{name:`language`,type:`string`,id:`param-language-2`,children:[`Detected language (full name, e.g. `,_jsx(_components.code,{children:`\"English\"`}),`). Like `,_jsx(_components.code,{children:`task`}),`, `,_jsx(_components.code,{children:`duration`}),` and `,_jsx(_components.code,{children:`segments`}),`, it is returned only with `,_jsx(_components.code,{children:`verbose_json`}),`, which only timestamp models serve. With `,_jsx(_components.code,{children:`json`}),` the body is `,_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`model`}),` and `,_jsx(_components.code,{children:`billing`}),`, plus `,_jsx(_components.code,{children:`logprobs`}),` when you asked for them.`]}),`\n`,_jsxs(ResponseField,{name:`duration`,type:`number`,id:`param-duration`,children:[`Audio duration in seconds (decoded from the file, not estimated). `,_jsx(_components.code,{children:`0`}),` only when the plain-text tertiary tier (`,_jsx(_components.code,{children:`gemini-3-flash`}),`) served the request, which does not return duration.`]}),`\n`,_jsxs(ResponseField,{name:`segments`,type:`array`,id:`param-segments`,children:[`Per-segment timestamps and text. Present when `,_jsx(_components.code,{children:`response_format`}),` is `,_jsx(_components.code,{children:`verbose_json`}),` and the model returns timestamps (`,_jsx(_components.code,{children:`supports_segments: true`}),` on `,_jsx(_components.code,{children:`/v1/models`}),`) — `,_jsx(_components.code,{children:`whisper-v3-turbo`}),`, or its failover `,_jsx(_components.code,{children:`whisper-1`}),`. A model without them cannot be asked for `,_jsx(_components.code,{children:`verbose_json`}),` at all (`,_jsx(_components.code,{children:`400 segments_unsupported`}),`).`]}),`\n`,_jsxs(ResponseField,{name:`model`,type:`string`,id:`param-model-2`,children:[`The model SKU you requested, which is the one you are billed for. It stays the same when a failover model served; see `,_jsx(_components.code,{children:`X-Kyma-Served-Model`}),`.`]}),`\n`,_jsx(ResponseField,{name:`billing.billable_seconds`,type:`number`,id:`param-billing-billable-seconds`,children:`Seconds charged: the audio duration rounded up to the next whole second, with a 10-second minimum per request.`}),`\n`,_jsxs(ResponseField,{name:`billing.billable_minutes`,type:`number`,id:`param-billing-billable-minutes`,children:[_jsx(_components.code,{children:`billable_seconds`}),` expressed in whole minutes, rounded up. Kept for compatibility; the charge is computed from `,_jsx(_components.code,{children:`billable_seconds`}),`.`]}),`\n`,_jsx(ResponseField,{name:`billing.cost_usd`,type:`number`,id:`param-billing-cost-usd`,children:`Final cost charged for this request.`}),`\n`,_jsx(ResponseField,{name:`billing.balance_usd`,type:`number`,id:`param-billing-balance-usd`,children:`Remaining balance after this charge.`}),`\n`,_jsx(Heading,{level:`3`,id:`non-json-formats`,children:`Non-JSON formats`}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`response_format`}),` is `,_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`srt`}),`, or `,_jsx(_components.code,{children:`vtt`}),`, the body is a plain transcript or subtitle file (no JSON envelope) and billing comes back on response headers (see below).`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`srt`}),` returns a SubRip subtitle file (`,_jsx(_components.code,{children:`application/x-subrip; charset=utf-8`}),`); `,_jsx(_components.code,{children:`vtt`}),` returns a WebVTT file (`,_jsx(_components.code,{children:`text/vtt; charset=utf-8`}),`). Both are built from the same per-segment timestamps `,_jsx(_components.code,{children:`verbose_json`}),` exposes, so the timing matches across formats.`]}),`\n`,_jsx(Heading,{level:`2`,id:`segment-timestamps-by-model`,children:`Segment timestamps by model`}),`\n`,_jsxs(_components.p,{children:[`Only some transcription models return per-segment timestamps (`,_jsx(_components.code,{children:`segments[]`}),` with `,_jsx(_components.code,{children:`start`}),`, `,_jsx(_components.code,{children:`end`}),`, `,_jsx(_components.code,{children:`avg_logprob`}),`, `,_jsx(_components.code,{children:`no_speech_prob`}),`). The catalogue says which: `,_jsx(_components.code,{children:`GET /v1/models`}),` carries `,_jsx(_components.code,{children:`supports_segments`}),` on every transcription SKU, and a request for `,_jsx(_components.code,{children:`verbose_json`}),` / `,_jsx(_components.code,{children:`srt`}),` / `,_jsx(_components.code,{children:`vtt`}),` on a model without them is refused up front with `,_jsx(_components.code,{children:`400 segments_unsupported`}),` and a `,_jsx(_components.code,{children:`suggested_models`}),` list.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Model`}),_jsxs(_components.th,{style:{textAlign:`center`},children:[`Returns `,_jsx(_components.code,{children:`segments`})]}),_jsx(_components.th,{children:`Formats available`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`whisper-v3-turbo`})}),_jsx(_components.td,{style:{textAlign:`center`},children:`Yes`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`json`}),`, `,_jsx(_components.code,{children:`verbose_json`}),`, `,_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`srt`}),`, `,_jsx(_components.code,{children:`vtt`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gpt-4o-mini-transcribe-2025-12-15`})}),_jsx(_components.td,{style:{textAlign:`center`},children:`No`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`json`}),`, `,_jsx(_components.code,{children:`text`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gpt-transcribe`})}),_jsx(_components.td,{style:{textAlign:`center`},children:`No`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`json`}),`, `,_jsx(_components.code,{children:`text`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gemini-3.5-transcribe`})}),_jsx(_components.td,{style:{textAlign:`center`},children:`No`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`json`}),`, `,_jsx(_components.code,{children:`text`})]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`If you need timestamps or confidence per segment, use `,_jsx(_components.code,{children:`whisper-v3-turbo`}),`. Cutting a plain transcript into pseudo-segments client-side and estimating times from character counts produces invented timings — it is not something Kyma does for you.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response-headers`,children:`Response headers`}),`\n`,_jsxs(_components.p,{children:[`The billing headers are returned on `,_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`srt`}),` and `,_jsx(_components.code,{children:`vtt`}),` responses. `,_jsx(_components.code,{children:`json`}),` and `,_jsx(_components.code,{children:`verbose_json`}),` responses carry the same figures in the body’s `,_jsx(_components.code,{children:`billing`}),` block instead. `,_jsx(_components.code,{children:`X-Kyma-Fallback`}),` and `,_jsx(_components.code,{children:`X-Kyma-Served-Model`}),` are set on every format, when a failover model served.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Header`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Kyma-Model`})}),_jsxs(_components.td,{children:[`The model SKU you requested and are billed for (e.g. `,_jsx(_components.code,{children:`whisper-v3-turbo`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Kyma-Duration-Sec`})}),_jsxs(_components.td,{children:[`Detected audio duration in seconds (`,_jsx(_components.code,{children:`0`}),` only when the plain-text tertiary tier served)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Kyma-Billable-Seconds`})}),_jsx(_components.td,{children:`Seconds charged (whole seconds, 10-second minimum)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Kyma-Billable-Minutes`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`X-Kyma-Billable-Seconds`}),` in whole minutes, rounded up. Kept for compatibility`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Kyma-Cost-USD`})}),_jsx(_components.td,{children:`Final cost in USD`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Kyma-Balance-USD`})}),_jsx(_components.td,{children:`Remaining account balance`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Kyma-Fallback`})}),_jsxs(_components.td,{children:[`Secondary model SKU that served (`,_jsx(_components.code,{children:`whisper-1`}),` or `,_jsx(_components.code,{children:`gemini-3-flash`}),`) `,_jsx(_components.strong,{children:`only when a secondary served`}),`. Absent on the primary path and on a bare primary retry.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`X-Kyma-Served-Model`})}),_jsxs(_components.td,{children:[`The model SKU that answered, `,_jsx(_components.strong,{children:`only when it is not the one you requested`}),`. Same value as `,_jsx(_components.code,{children:`X-Kyma-Fallback`}),`. You are still billed at the requested model’s rate.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`automatic-failover-never-die-stt`,children:`Automatic failover (never-die STT)`}),`\n`,_jsxs(_components.p,{children:[`Transcription is `,_jsx(_components.strong,{children:`never-die`}),`. On a transient hiccup with the primary model (default `,_jsx(_components.code,{children:`whisper-v3-turbo`}),`), Kyma transparently works through a failover chain so your request still completes — same request, same price, same response shape. You don’t opt in: it’s on by default.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Why it matters.`}),` A single transcription request is normally a single point of failure — one transient hiccup and the pipeline built on top of it (a dub, a caption job, a voice agent) dies, leaving you to write retry and fallback logic yourself. Kyma absorbs that for you: the request either completes or fails honestly — never silently mangled. You ship the feature, not the plumbing.`]}),`\n`,_jsxs(_components.p,{children:[`The chain is `,_jsx(_components.strong,{children:`format-aware`}),`, because only some models preserve per-segment timestamps:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Retry the primary`}),` once (short backoff). Absorbs the vast majority of transient blips, which recover immediately. Nothing in your response changes.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Secondary — `,_jsx(_components.code,{children:`whisper-1`}),`.`]}),` A timestamp-preserving model. Because it returns real per-segment timestamps, it serves `,_jsx(_components.strong,{children:`every`}),` caller, including `,_jsx(_components.code,{children:`verbose_json`}),`, `,_jsx(_components.code,{children:`srt`}),`, and `,_jsx(_components.code,{children:`vtt`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Tertiary — `,_jsx(_components.code,{children:`gemini-3-flash`}),`.`]}),` A plain-text transcription tier. Used `,_jsx(_components.strong,{children:`only for plain-text transcripts`}),` (`,_jsx(_components.code,{children:`text`}),` / `,_jsx(_components.code,{children:`json`}),`) — it does not return segment timestamps, so callers that need them (`,_jsx(_components.code,{children:`verbose_json`}),` / `,_jsx(_components.code,{children:`srt`}),` / `,_jsx(_components.code,{children:`vtt`}),`) never route here. URL mode (`,_jsx(_components.code,{children:`audio_url`}),`) also skips this tier (it needs inline bytes).`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`If every tier is exhausted, you get a clean error (the chain genuinely had nothing left), not a leaked upstream message.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Only genuine client errors fail fast.`}),` A bad file, a too-large upload, or an unsupported format (`,_jsx(_components.code,{children:`400`}),` / `,_jsx(_components.code,{children:`413`}),` / `,_jsx(_components.code,{children:`415`}),` / `,_jsx(_components.code,{children:`422`}),`) is surfaced immediately with no failover — failover is a reliability tool, not an error-hiding one. On `,_jsx(_components.code,{children:`whisper-v3-turbo`}),`, a rate limit on the primary model moves the request down the chain like any other hiccup. On the models that do not fail over, it returns `,_jsx(_components.code,{children:`429`}),` with code `,_jsx(_components.code,{children:`provider_rate_limited`}),` and a `,_jsx(_components.code,{children:`Retry-After`}),` header.`]}),`\n`,_jsx(_components.p,{children:`You can see which tier served:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`X-Kyma-Served-Model`}),` and `,_jsx(_components.code,{children:`X-Kyma-Fallback`}),` headers — the secondary model SKU that served, when a secondary served. Both are set on every response format.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`segments`}),` is present whenever a timestamp-preserving model served (primary or `,_jsx(_components.code,{children:`whisper-1`}),`); absent only on the plain-text tertiary tier, where `,_jsx(_components.code,{children:`duration`}),` is also `,_jsx(_components.code,{children:`0`}),` (billed as the 10-second minimum).`]}),`\n`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Only `,_jsx(_components.code,{children:`whisper-v3-turbo`}),` has the chain. The other SKUs opt out — you chose that model, so Kyma won’t silently swap it. That covers `,_jsx(_components.code,{children:`gpt-4o-mini-transcribe-2025-12-15`}),`, `,_jsx(_components.code,{children:`gpt-transcribe`}),` and `,_jsx(_components.code,{children:`gemini-3.5-transcribe`}),`. Their errors surface as `,_jsx(_components.code,{children:`502 transcription_failed`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`pricing`,children:`Pricing`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`SKU`}),_jsx(_components.th,{style:{textAlign:`right`},children:`Per minute`}),_jsx(_components.th,{style:{textAlign:`right`},children:`1-hour file`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`whisper-v3-turbo`}),` (default)`]}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`right`},children:`$0.0009`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`right`},children:`$0.054`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gpt-4o-mini-transcribe-2025-12-15`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`right`},children:`$0.00405`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`right`},children:`$0.243`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gpt-transcribe`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`right`},children:`$0.006075`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`right`},children:`$0.3645`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gemini-3.5-transcribe`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`right`},children:`$0.00675`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`right`},children:`$0.405`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Billed per second at the per-minute rate above, with a 10-second minimum per request: a 5-second clip is billed 10 seconds, a 45-second clip 45 seconds, a 61-second clip 61 seconds. On `,_jsx(_components.code,{children:`whisper-v3-turbo`}),` those cost `,`$0.00015, $`,`0.000675 and $0.000915. Failover transcriptions are billed at the `,_jsx(_components.strong,{children:`same rate`}),` as the primary `,_jsx(_components.code,{children:`whisper-v3-turbo`}),` path — it doesn’t matter which tier ultimately served, you always pay the `,_jsx(_components.code,{children:`whisper-v3-turbo`}),` price. The other models do not fall back (your choice of model is respected). `]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error.type`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error.code`})}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsx(_components.td,{children:`—`}),_jsxs(_components.td,{children:[`Missing `,_jsx(_components.code,{children:`file`}),` (Mode 1) or invalid JSON body (Mode 2)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`audio_url_required`})}),_jsxs(_components.td,{children:[`Mode 2 body without `,_jsx(_components.code,{children:`audio_url`}),` field`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`audio_url_invalid_scheme`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`audio_url`}),` not `,_jsx(_components.code,{children:`https://`}),` (SSRF protection)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`not_a_transcription_model`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`model`}),` is not a transcription SKU. `,_jsx(_components.code,{children:`error.suggested_models`}),` lists ones that are.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`segments_unsupported`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`verbose_json`}),` / `,_jsx(_components.code,{children:`srt`}),` / `,_jsx(_components.code,{children:`vtt`}),` requested on a model that returns no per-segment timestamps. Refused before any provider call — nothing is charged. `,_jsx(_components.code,{children:`error.suggested_models`}),` lists timestamp-preserving models.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`auth_error`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`Missing or invalid API key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`402`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_error`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`insufficient_credits`})}),_jsxs(_components.td,{children:[`Balance does not cover the file. Checked `,_jsx(_components.strong,{children:`before`}),` the audio leaves Kyma: the amount is the file’s own length — read exactly from an uncompressed file’s header, estimated conservatively otherwise — priced in whole minutes with one minute as the floor, so a short clip needs a minute’s balance to start even though it is billed by the second. Nothing is charged, and no provider is called.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`408`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`timeout`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`audio_upload_timeout`})}),_jsx(_components.td,{children:`The multipart upload did not finish arriving in time, usually a slow connection. Retry, or use Mode 2`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`413`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsx(_components.td,{children:`—`}),_jsxs(_components.td,{children:[`Multipart body > 25 MB. For larger files, use Mode 2 with `,_jsx(_components.code,{children:`whisper-v3-turbo`}),` (`,_jsx(_components.code,{children:`audio_url`}),` up to 100 MB).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`415`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`unsupported_audio_type`})}),_jsxs(_components.td,{children:[`The part is not one of the accepted formats. A generic `,_jsx(_components.code,{children:`application/octet-stream`}),` is fine when the filename carries the extension. Not charged.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`no_speech_detected`})}),_jsxs(_components.td,{children:[`The file decoded but contains no speech (silent, or damaged in a convert step). Not charged. Listen to the file that was actually sent, not the source recording. `,_jsx(_components.code,{children:`error.suggested_models`}),` is included.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`rate_limit_error`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`audio_concurrent_limit`})}),_jsxs(_components.td,{children:[`Your tier’s audio concurrency cap is reached. `,_jsx(_components.code,{children:`Retry-After: 5`}),`. See `,_jsx(_components.a,{href:`/guides/rate-limits#audio-limits-per-capability-sub-pools`,children:`Rate Limits`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`rate_limit_error`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`provider_rate_limited`})}),_jsxs(_components.td,{children:[`The model is rate-limited and the SKU does not fail over (or the chain was exhausted). Wait for `,_jsx(_components.code,{children:`Retry-After`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`502`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`provider_error`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`transcription_failed`})}),_jsxs(_components.td,{children:[`The never-die chain was exhausted (every eligible tier failed), or a premium SKU that does not fail over is down. The error message is provider-isolated — no upstream identity is leaked. `,_jsx(_components.code,{children:`error.suggested_models`}),` names transcription models you can switch to in the meantime.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`provider_error`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`Transcription is not available right now. Retry shortly.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`A transcription that ran is charged for the duration the provider measured, even if your balance fell below it while the file was being transcribed — the same rule `,_jsx(_components.code,{children:`/v1/chat/completions`}),` follows. The balance can go slightly negative for that one request; the next request is refused with `,_jsx(_components.code,{children:`402`}),` until you top up.`]}),`\n`,_jsxs(_components.p,{children:[`Every transcription error that leaves you without a transcript carries `,_jsx(_components.code,{children:`error.suggested_models`}),`: up to three other transcription model ids, filtered to ones that can serve the format you asked for. They are suggestions — Kyma never swaps the model you named.`]}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`pin-a-specific-model`,children:`Pin a specific model`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://kymaapi.com/v1/audio/transcriptions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KYMA_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@interview.mp3\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model=whisper-v3-turbo\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"response_format=verbose_json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"language=en\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`just-the-transcript-text-full-never-die-chain`,children:`Just the transcript text (full never-die chain)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://kymaapi.com/v1/audio/transcriptions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KYMA_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@clip.mp3\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model=whisper-v3-turbo\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"response_format=text\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Returns the bare transcript. If the primary model has a transient hiccup, the request transparently completes via a secondary or tertiary tier and you’ll see `,_jsx(_components.code,{children:`X-Kyma-Fallback`}),` naming the model SKU that served.`]}),`\n`,_jsx(Heading,{level:`3`,id:`url-mode-—-node-fetch`,children:`URL mode — Node fetch`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://kymaapi.com/v1/audio/transcriptions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`process`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`KYMA_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` audio_url:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://cdn.example.com/podcast.mp3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"whisper-v3-turbo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response_format:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"verbose_json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`url-mode-—-python-requests`,children:`URL mode — Python requests`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`resp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://kymaapi.com/v1/audio/transcriptions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'KYMA_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"audio_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.example.com/podcast.mp3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"whisper-v3-turbo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"response_format\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"verbose_json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` resp.json()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(result[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The OpenAI Python SDK only supports multipart uploads — use `,_jsx(_components.code,{children:`requests`}),` directly for Mode 2.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`python-openai-sdk-—-mode-1-only`,children:`Python (OpenAI SDK — Mode 1 only)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` openai `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` OpenAI`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` OpenAI(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` base_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://kymaapi.com/v1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"kyma-...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"meeting.mp3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.audio.transcriptions.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"whisper-v3-turbo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`f,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(result.text)`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`see-also`,children:`See also`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/audio-understand`,children:`Audio Understand`}),` — the rest of the audio scene (tone, music, mood)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/models/audio`,children:`Audio models`}),` — SKUs available for transcription`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/guides/rate-limits`,children:`Rate Limits`}),` — concurrency caps for audio endpoints`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://github.com/sonpiaz/watch-cli`,children:_jsx(_components.code,{children:`watch-cli`})}),` — open-source CLI that uses these endpoints to give any agent eyes and ears for any social video`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Audio Transcriptions","api":"POST /v1/audio/transcriptions","description":"Speech-to-text. Two input modes — multipart file (25 MB, OpenAI Whisper compatible) or JSON audio_url (Kyma extension; 100 MB on whisper-v3-turbo, 25 MB on other models). Synchronous, billed per second with a 10-second minimum per request.","href":"/api-reference/audio-transcriptions"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Choosing a mode","slug":"choosing-a-mode","depth":2,"children":[]},{"title":"Request","slug":"request","depth":2,"children":[{"title":"Mode 1 — multipart upload","slug":"mode-1-—-multipart-upload","depth":3,"children":[]},{"title":"Mode 2 — JSON audio_url","slug":"mode-2-—-json-audio_url","depth":3,"children":[]}]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"Non-JSON formats","slug":"non-json-formats","depth":3,"children":[]}]},{"title":"Segment timestamps by model","slug":"segment-timestamps-by-model","depth":2,"children":[]},{"title":"Response headers","slug":"response-headers","depth":2,"children":[]},{"title":"Automatic failover (never-die STT)","slug":"automatic-failover-never-die-stt","depth":2,"children":[]},{"title":"Pricing","slug":"pricing","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[{"title":"Pin a specific model","slug":"pin-a-specific-model","depth":3,"children":[]},{"title":"Just the transcript text (full never-die chain)","slug":"just-the-transcript-text-full-never-die-chain","depth":3,"children":[]},{"title":"URL mode — Node fetch","slug":"url-mode-—-node-fetch","depth":3,"children":[]},{"title":"URL mode — Python requests","slug":"url-mode-—-python-requests","depth":3,"children":[]},{"title":"Python (OpenAI SDK — Mode 1 only)","slug":"python-openai-sdk-—-mode-1-only","depth":3,"children":[]}]},{"title":"See also","slug":"see-also","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Audio Transcriptions","path":"/v1/audio/transcriptions","servers":[{"url":"https://kymaapi.com"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"file":[{"type":"file","description":"Audio file. Accepted formats: `mp3` , `wav` , `m4a` , `ogg` , `flac` , `webm` — the set every transcription model accepts, measured against each one. `ogg` and `webm` mean Opus in those containers, which is what browser MediaRecorder emits. Max 25 MB. ~30 minutes of mono 16kHz mp3 fits comfortably. The part’s `Content-Type` may be generic ( `application/octet-stream` , or missing) — the file extension decides. Anything else is refused with `415 unsupported_audio_type` before any charge.","required":true}],"model":[{"type":"string","description":"Same as Mode 1."}],"language":[{"type":"string","description":"Same as Mode 1."}],"response_format":[{"type":"string","description":"Same as Mode 1. Mode 2 still benefits from never-die failover (retry + the timestamp-preserving secondary); the plain-text tertiary tier is skipped in URL mode. See Automatic failover ."}],"temperature":[{"type":"number","description":"Same as Mode 1."}],"prompt":[{"type":"string","description":"Same as Mode 1."}],"audio_url":[{"type":"string","description":"Public HTTPS URL of the audio file. Kyma fetches the bytes upstream — no need to download and re-upload from your client. Max 100 MB on `whisper-v3-turbo` ; every other model, and the `whisper-1` failover, fetches at most 25 MB and fails a larger file. `http://` and other schemes are rejected to prevent SSRF / mixed-content. The bytes are fetched and passed to the model as the host serves them — Kyma does not inspect the URL’s `Content-Type` — so use one of the Mode 1 formats; anything else is the model’s own error.","required":true}]}}],"examples":{"example":{"value":{"model":"\u003cstring>","language":"\u003cstring>","response_format":"\u003cstring>","temperature":123,"prompt":"\u003cstring>","audio_url":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"text":[{"type":"string","description":"The full transcript."}],"language":[{"type":"string","description":"Detected language (full name, e.g. `\"English\"` ). Like `task` , `duration` and `segments` , it is returned only with `verbose_json` , which only timestamp models serve. With `json` the body is `text` , `model` and `billing` , plus `logprobs` when you asked for them."}],"duration":[{"type":"number","description":"Audio duration in seconds (decoded from the file, not estimated). `0` only when the plain-text tertiary tier ( `gemini-3-flash` ) served the request, which does not return duration."}],"segments":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Per-segment timestamps and text. Present when `response_format` is `verbose_json` and the model returns timestamps ( `supports_segments: true` on `/v1/models` ) — `whisper-v3-turbo` , or its failover `whisper-1` . A model without them cannot be asked for `verbose_json` at all ( `400 segments_unsupported` )."}],"model":[{"type":"string","description":"The model SKU you requested, which is the one you are billed for. It stays the same when a failover model served; see `X-Kyma-Served-Model` ."}],"billing.billable_seconds":[{"type":"number","description":"Seconds charged: the audio duration rounded up to the next whole second, with a 10-second minimum per request."}],"billing.billable_minutes":[{"type":"number","description":"`billable_seconds` expressed in whole minutes, rounded up. Kept for compatibility; the charge is computed from `billable_seconds` ."}],"billing.cost_usd":[{"type":"number","description":"Final cost charged for this request."}],"billing.balance_usd":[{"type":"number","description":"Remaining balance after this charge."}]}}],"examples":{"example":{"value":{"text":"\u003cstring>","language":"\u003cstring>","duration":123,"segments":[{}],"model":"\u003cstring>","billing.billable_seconds":123,"billing.billable_minutes":123,"billing.cost_usd":123,"billing.balance_usd":123}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"kyma","siteName":"Kyma API","title":"Audio Transcriptions - Kyma API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-27T21:43:02.914Z","originalFileLocation":"api-reference/audio-transcriptions.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Speech-to-text. Two input modes — multipart file (25 MB, OpenAI Whisper compatible) or JSON audio_url (Kyma extension; 100 MB on whisper-v3-turbo, 25 MB on other models). Synchronous, billed per second with a 10-second minimum per request.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kyma API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Audio Transcriptions - Kyma API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Speech-to-text. Two input modes — multipart file (25 MB, OpenAI Whisper compatible) or JSON audio_url (Kyma extension; 100 MB on whisper-v3-turbo, 25 MB on other models). Synchronous, billed per second with a 10-second minimum per request.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kyma API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.kymaapi.com/api-reference/audio-transcriptions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kyma.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Audio+Transcriptions\u0026amp;description=Speech-to-text.+Two+input+modes+%E2%80%94+multipart+file+%2825+MB%2C+OpenAI+Whisper+compatible%29+or+JSON+audio_url+%28Kyma+extension%3B+100+MB+on+whisper-v3-turbo%2C+25+MB+on+othe\u0026amp;theme=9d9285143cba3d744d7c7101\u0026amp;signature=3936e3926f6e51a7424d6f09aff15e2a5cc5366110ffca2c0e6ded1b1aadef6b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Audio Transcriptions - Kyma API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Speech-to-text. Two input modes — multipart file (25 MB, OpenAI Whisper compatible) or JSON audio_url (Kyma extension; 100 MB on whisper-v3-turbo, 25 MB on other models). Synchronous, billed per second with a 10-second minimum per request.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kyma.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Audio+Transcriptions\u0026amp;description=Speech-to-text.+Two+input+modes+%E2%80%94+multipart+file+%2825+MB%2C+OpenAI+Whisper+compatible%29+or+JSON+audio_url+%28Kyma+extension%3B+100+MB+on+whisper-v3-turbo%2C+25+MB+on+othe\u0026amp;theme=9d9285143cba3d744d7c7101\u0026amp;signature=3936e3926f6e51a7424d6f09aff15e2a5cc5366110ffca2c0e6ded1b1aadef6b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kyma API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#D4A843\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.kymaapi.com/api-reference/audio-transcriptions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/audio-transcriptions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.kymaapi.com/#organization\",\"name\":\"Kyma API\",\"url\":\"https://docs.kymaapi.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kyma/Ir71WrmY8XrY4SLl/logo/light.svg?fit=max\u0026auto=format\u0026n=Ir71WrmY8XrY4SLl\u0026q=85\u0026s=dcfc23077ffc3b8109d9c3d5d8c4cfc3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.kymaapi.com#website\",\"name\":\"Kyma API\",\"url\":\"https://docs.kymaapi.com\",\"publisher\":{\"@id\":\"https://docs.kymaapi.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.kymaapi.com/api-reference/audio-transcriptions#webpage\",\"url\":\"https://docs.kymaapi.com/api-reference/audio-transcriptions\",\"name\":\"Audio Transcriptions\",\"description\":\"Speech-to-text. Two input modes — multipart file (25 MB, OpenAI Whisper compatible) or JSON audio_url (Kyma extension; 100 MB on whisper-v3-turbo, 25 MB on other models). Synchronous, billed per second with a 10-second minimum per request.\",\"dateModified\":\"2026-10-27T21:43:02.914Z\",\"isPartOf\":{\"@id\":\"https://docs.kymaapi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.kymaapi.com/api-reference/audio-transcriptions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.kymaapi.com/api-reference/audio-transcriptions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.kymaapi.com/api-reference/errors\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Audio Transcriptions\",\"item\":\"https://docs.kymaapi.com/api-reference/audio-transcriptions\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.kymaapi.com/api-reference/audio-transcriptions#apireference\",\"headline\":\"Audio Transcriptions\",\"name\":\"Audio Transcriptions\",\"description\":\"Speech-to-text. Two input modes — multipart file (25 MB, OpenAI Whisper compatible) or JSON audio_url (Kyma extension; 100 MB on whisper-v3-turbo, 25 MB on other models). Synchronous, billed per second with a 10-second minimum per request.\",\"url\":\"https://docs.kymaapi.com/api-reference/audio-transcriptions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.kymaapi.com/api-reference/audio-transcriptions#webpage\"},\"dateModified\":\"2026-10-27T21:43:02.914Z\",\"publisher\":{\"@id\":\"https://docs.kymaapi.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.kymaapi.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kyma API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Kyma API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/audio-transcriptions.md","siteName":"Kyma API","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/any-openai-client"}]},{"tab":"API Reference","groups":[{"group":"Endpoints","pages":[{"title":"Errors","href":"/api-reference/errors"},{"title":"Chat Completions","api":"POST /v1/chat/completions","href":"/api-reference/chat-completions"},{"title":"Messages (Anthropic format)","api":"POST /v1/messages","href":"/api-reference/messages"},{"title":"Create embeddings","api":"POST /v1/embeddings","href":"/api-reference/embeddings"},{"title":"Rerank documents","api":"POST /v1/rerank","href":"/api-reference/rerank"},{"title":"Make a decision","api":"POST /v1/decisions","href":"/api-reference/decisions"},{"title":"Create a completion (legacy)","api":"POST /v1/completions","href":"/api-reference/completions"},{"title":"Image Generations","api":"POST /v1/images/generations","href":"/api-reference/images-generations"},{"title":"Video Generations","api":"POST /v1/videos/generations","description":"Generate video clips with kling-3-pro or kling-avatar-v2-pro. Async, billed per second of footage.","href":"/api-reference/videos-generations"},{"title":"Audio Transcriptions","api":"POST /v1/audio/transcriptions","href":"/api-reference/audio-transcriptions"},{"title":"Audio Speech (TTS)","api":"POST /v1/audio/speech","description":"Text-to-speech. Synchronous, returns audio bytes, billed per character. Several voice models, 3,000+ pre-made voices.","href":"/api-reference/audio-speech"},{"title":"Audio Music","api":"POST /v1/audio/music","href":"/api-reference/audio-music"},{"title":"Audio Voices","api":"GET /v1/audio/voices","href":"/api-reference/audio-voices"},{"title":"List Models","api":"GET /v1/models","href":"/api-reference/models-list"},{"title":"Recommend a model","api":"GET /v1/models/recommend","href":"/api-reference/models-recommend"},{"title":"Pricing Catalog","api":"GET /v1/pricing","href":"/api-reference/pricing-catalog"},{"title":"Tier Matrix","api":"GET /v1/limits/tiers","href":"/api-reference/limits-tiers"},{"title":"Credit balance","api":"GET /v1/credits/balance","href":"/api-reference/credits-balance"},{"title":"Register","api":"POST /v1/auth/register","href":"/api-reference/auth-register"},{"title":"Login","api":"POST /v1/auth/login","href":"/api-reference/auth-login"},{"title":"Get User Info","api":"GET /v1/auth/me","href":"/api-reference/auth-me"},{"title":"Manage API Keys","href":"/api-reference/auth-keys"},{"title":"Usage by model","api":"GET /v1/auth/usage/models","href":"/api-reference/auth-usage-models"},{"title":"Usage by day","api":"GET /v1/auth/usage/daily","href":"/api-reference/auth-usage-daily"},{"title":"GET /v1/auth/limits","href":"/api-reference/auth-limits"}]}]},{"tab":"Models","pages":[{"title":"Models","href":"/models/overview"}]}]},"basePath":"","title":"Audio Transcriptions - Kyma API","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js"]}