Transcribe an audio file through the attested TEE gateway using multipart/form-data. Responses
are buffered JSON with an X-Receipt-Id header for verification.
POST https://api.redpill.ai/v1/audio/transcriptions
Request body
string
required
Transcription model id, for example openai/whisper-large-v3; see the
models catalog (GET /v1/models) for available ids.
Transcription models have output_modalities: ["transcription"] in the catalog.
file
required
Exactly one nonempty file, up to 25 MiB (26,214,400 bytes). The filename must include one of
these extensions: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
qwen/qwen3-asr-1.7b and qwen/qwen3-asr-0.6b accept up to 600 seconds of audio per
request and return 400 invalid_request_error for longer files.
string
Language code of 2–3 lowercase ASCII letters, for example en.
The Qwen3-ASR models detect the language themselves and may ignore this hint.
string
Optional context for transcription, up to 4,096 Unicode characters.
number
Sampling temperature from 0 through 1.
string
json (default) is supported by every model. verbose_json is supported only by
openai/whisper-large-v3; mistralai/voxtral-small-24b-2507, qwen/qwen3-asr-1.7b and
qwen/qwen3-asr-0.6b return 400 invalid_request_error for verbose_json. Text, subtitle,
and other response formats are not supported.
string[]
word and/or segment, once each, only with openai/whisper-large-v3 and
response_format=verbose_json. Repeat the field to request both. timestamp_granularities
is also accepted; do not mix spellings. Word-level timestamps are not returned; segments
may be absent.
boolean
Omit this field or send the literal form value false. Streaming is not supported;
true and all other values return 400.
string
Accepted for SDK compatibility but removed before forwarding upstream.
Duplicate scalar fields, malformed multipart, and invalid UTF-8 text return 400. Other fields,
including provider, chunking_strategy, include[], and speaker fields, return
400 unknown_parameter. ACI E2EE is not supported on this endpoint.The upload must complete within 60 seconds, the file must be at most 25 MiB, and malformed or
oversized multipart metadata returns 400 or 413.
Verified-serving constraints
string
A JSON object with the same routing constraints as the JSON provider field, for example
{"aci_verified":true}. The header is consumed by the gateway and never forwarded upstream.
A provider form field is not accepted.
aci_verified: true requires a verified upstream. aci_session_ids pins a nonempty list of
64-hex session ids and implies verified serving; combining pins with aci_verified: false is
invalid. Unavailable pins return 412 session_not_accepted; failed required verification returns
503 upstream_verification_failed, before forwarding the audio. The header must appear once,
contain only ASCII bytes, and be at most 8,192 bytes. Malformed or non-object JSON, invalid pins,
and unknown aci_ members return 400. JSON endpoints reject this header.Before uploading with constraints, obtain the attestation report over the accepted attested,
SPKI-pinned channel, accept its workload provenance, and confirm that
service_capabilities.supported_multipart_constraint_endpoints contains
/v1/audio/transcriptions. Refuse the upload locally if support is absent. Intersect caller
session pins with locally accepted sessions and refuse disjoint sets. Retain the effective policy
and check the receipt’s cited session against it: receipt body hashes do not commit to this
header. TEE-only host requirements apply independently.
Example
Let the client set the multipart Content-Type boundary. Name Node SDK files explicitly:
toFile(buf) uses unknown_file, which has no extension and returns 400.
To require verified serving with cURL, add -H 'X-ACI-Provider: {"aci_verified":true}' after
checking the capability above.For Private AI Proxy, auth-headers.txt contains Authorization: Bearer <key>; restrict its
permissions to your user and remove it after use. pap curl verifies and pins the gateway channel;
it does not audit receipts. Use pap serve or ACI verifier SDK clients for receipt audits
(Verify a response); the plain OpenAI SDK examples do not audit receipts.
Response
The cost below is illustrative, not a model price.
json returns text, usage, and optional languages: [{"code":"en"}]. For
openai/whisper-large-v3, verbose_json also includes duration and language.
Word-level timestamps are not returned. With verbose_json, Whisper responses may include
segments; they can be absent.usage contains type: "duration" and integer seconds. Audio pricing is USD per second of input
audio, billed per started second: usage.seconds is rounded up (2.965 becomes 3). Verbose
duration retains the raw value. The gateway adds usage.cost only when the deployment has audio
pricing, in USD: billable seconds times the applicable rate. Provider-reported cost is not echoed.
Without a valid duration, the transcript is withheld with 502 and no audio is billed.Read X-Receipt-Id and fetch GET /v1/aci/receipts/{id} using the same bearer token. Audio receipts
have chat_id: null, so use the receipt id. See Get receipt and
Verify a response.
Errors
Errors use a JSON error object, with error.code and error.param where applicable.
Status
Error field
Condition
400
code: unknown_parameter
Unrecognized form field; param names the field.
400
code: invalid_parameter
Missing or invalid required fields, unsupported filename extension, response format other than json or verbose_json, invalid timestamp options, duplicate scalar fields, invalid UTF-8, malformed multipart, or exceeded multipart metadata limits.
verbose_json with mistralai/voxtral-small-24b-2507: Currently do not support verbose_json for voxtral-small-24b.
400
type: invalid_request_error
Invalid or duplicate X-ACI-Provider header, including malformed constraints.
400
type: e2ee_unsupported_endpoint
E2EE headers are present; the refusal is decided before parsing or admission.
404
type: model_not_found
No eligible route supports transcription for the requested model.
408
code: upload_timeout
Upload exceeds the 60-second deadline; the connection closes.
413
code: request_too_large
File or whole-body size limit exceeded; the connection closes.
429
type: rate_limit_error, code: rate_limit_exceeded
Capacity is full or a rate limit is reached; respect Retry-After when present.
502
type: upstream_error
Upstream failure, response over 8 MiB, missing string text, or invalid duration. Without a valid duration, the transcript is withheld and no audio is billed.
Authentication, budget, and other routing constraint errors follow the shared
error handling reference.
Related
Models
Find available model ids and capabilities.
Get receipt
Retrieve the signed receipt using X-Receipt-Id.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"RedPill AI","colors":{"primary":"#c96442","light":"#d97757","dark":"#b0512f"},"logo":{"light":"https://mintcdn.com/phala-47f19b07/5vRaVvmX8pi5Nukr/logo/light.svg?fit=max\u0026auto=format\u0026n=5vRaVvmX8pi5Nukr\u0026q=85\u0026s=03f8dbe12d0f593a956cccba7b18115f","dark":"https://mintcdn.com/phala-47f19b07/5vRaVvmX8pi5Nukr/logo/dark.svg?fit=max\u0026auto=format\u0026n=5vRaVvmX8pi5Nukr\u0026q=85\u0026s=dd49c6b52615b7312317e2fc353ac289"},"favicon":"https://mintcdn.com/phala-47f19b07/jUpTfTWRxXYc1F5K/favicon.svg?fit=max\u0026auto=format\u0026n=jUpTfTWRxXYc1F5K\u0026q=85\u0026s=1ac7304fa03ccc515bee40d9694e75e2","api":{"mdx":{"auth":{"method":"bearer"},"server":"https://api.redpill.ai/v1"}},"navbar":{"links":[{"href":"https://www.redpill.ai/dashboard","label":"Dashboard"}],"primary":{"type":"button","label":"Start building","href":"https://redpill.ai/start-building"}},"footer":{"socials":{"twitter":"https://twitter.com/redpill_ai","github":"https://github.com/redpill-ai","discord":"https://discord.gg/P2ukR4Z5ps"}},"fonts":{"heading":{"family":"Poppins","weight":600},"body":{"family":"Inter","weight":400}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":false},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.gg/P2ukR4Z5ps"},{"anchor":"GitHub","icon":"github","href":"https://github.com/redpill-ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"phala-47f19b07","hasAudioNarration":false,"actualSubdomain":"phala-47f19b07","customDomains":["docs.redpill.ai"],"gitSource":{"type":"github","owner":"redpill-ai","repo":"redpill-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6afff3edceccfd47eed42282","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"default","tag":"Documentation","count":49},{"language":"default","tag":"API Reference","count":13},{"language":"default","tag":"Endpoints","count":10},{"language":"default","tag":"Use in agents","count":9},{"language":"default","tag":"Build with the API","count":8},{"language":"default","tag":"Get started","count":7},{"language":"default","tag":"Features","count":7},{"language":"default","tag":"How it works","count":6},{"language":"default","tag":"Verify and control","count":6},{"language":"default","tag":"Providers and trust","count":4}]},"assistantConfig":{},"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":"workos-onboarding","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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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}],"googleFontsInlined":true},"customCss":[{"filePath":"styles.css","content":"h1,h2,h3,h4,h5,h6{font-family:\"Poppins\", sans-serif}"}]}
{"page":{"pagePath":"api-reference/audio","slug":"/api-reference/audio","pageMetadata":{"title":"Audio transcription","description":"Transcribe audio with multipart uploads and duration-based billing.","api":"POST /audio/transcriptions","playground":"simple","href":"/api-reference/audio"},"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: \"Transcribe audio with multipart uploads and duration-based billing.\"\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`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Heading,ParamField,Table}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Transcribe an audio file through the attested TEE gateway using `,_jsx(_components.code,{children:`multipart/form-data`}),`. Responses\nare buffered JSON with an `,_jsx(_components.code,{children:`X-Receipt-Id`}),` header for verification.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.redpill.ai/v1/audio/transcriptions`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`Transcription model id, for example `,_jsx(_components.code,{children:`openai/whisper-large-v3`}),`; see the\n`,_jsx(_components.a,{href:`/api-reference/models`,children:`models catalog`}),` (`,_jsx(_components.code,{children:`GET /v1/models`}),`) for available ids.\nTranscription models have `,_jsx(_components.code,{children:`output_modalities: [\"transcription\"]`}),` in the catalog.`]})}),`\n`,_jsx(ParamField,{body:`file`,type:`file`,required:true,id:`param-file`,children:_jsxs(_components.p,{children:[`Exactly one nonempty file, up to 25 MiB (26,214,400 bytes). The filename must include one of\nthese extensions: `,_jsx(_components.code,{children:`flac`}),`, `,_jsx(_components.code,{children:`mp3`}),`, `,_jsx(_components.code,{children:`mp4`}),`, `,_jsx(_components.code,{children:`mpeg`}),`, `,_jsx(_components.code,{children:`mpga`}),`, `,_jsx(_components.code,{children:`m4a`}),`, `,_jsx(_components.code,{children:`ogg`}),`, `,_jsx(_components.code,{children:`wav`}),`, or `,_jsx(_components.code,{children:`webm`}),`.\n`,_jsx(_components.code,{children:`qwen/qwen3-asr-1.7b`}),` and `,_jsx(_components.code,{children:`qwen/qwen3-asr-0.6b`}),` accept up to 600 seconds of audio per\nrequest and return `,_jsx(_components.code,{children:`400 invalid_request_error`}),` for longer files.`]})}),`\n`,_jsx(ParamField,{body:`language`,type:`string`,id:`param-language`,children:_jsxs(_components.p,{children:[`Language code of 2–3 lowercase ASCII letters, for example `,_jsx(_components.code,{children:`en`}),`.\nThe Qwen3-ASR models detect the language themselves and may ignore this hint.`]})}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt`,children:_jsx(_components.p,{children:`Optional context for transcription, up to 4,096 Unicode characters.`})}),`\n`,_jsx(ParamField,{body:`temperature`,type:`number`,id:`param-temperature`,children:_jsx(_components.p,{children:`Sampling temperature from 0 through 1.`})}),`\n`,_jsx(ParamField,{body:`response_format`,type:`string`,id:`param-response-format`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`json`}),` (default) is supported by every model. `,_jsx(_components.code,{children:`verbose_json`}),` is supported only by\n`,_jsx(_components.code,{children:`openai/whisper-large-v3`}),`; `,_jsx(_components.code,{children:`mistralai/voxtral-small-24b-2507`}),`, `,_jsx(_components.code,{children:`qwen/qwen3-asr-1.7b`}),` and\n`,_jsx(_components.code,{children:`qwen/qwen3-asr-0.6b`}),` return `,_jsx(_components.code,{children:`400 invalid_request_error`}),` for `,_jsx(_components.code,{children:`verbose_json`}),`. Text, subtitle,\nand other response formats are not supported.`]})}),`\n`,_jsx(ParamField,{body:`timestamp_granularities[]`,type:`string[]`,id:`param-timestamp-granularities`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`word`}),` and/or `,_jsx(_components.code,{children:`segment`}),`, once each, only with `,_jsx(_components.code,{children:`openai/whisper-large-v3`}),` and\n`,_jsx(_components.code,{children:`response_format=verbose_json`}),`. Repeat the field to request both. `,_jsx(_components.code,{children:`timestamp_granularities`}),`\nis also accepted; do not mix spellings. Word-level timestamps are not returned; segments\nmay be absent.`]})}),`\n`,_jsx(ParamField,{body:`stream`,type:`boolean`,id:`param-stream`,children:_jsxs(_components.p,{children:[`Omit this field or send the literal form value `,_jsx(_components.code,{children:`false`}),`. Streaming is not supported;\n`,_jsx(_components.code,{children:`true`}),` and all other values return `,_jsx(_components.code,{children:`400`}),`.`]})}),`\n`,_jsx(ParamField,{body:`user`,type:`string`,id:`param-user`,children:_jsx(_components.p,{children:`Accepted for SDK compatibility but removed before forwarding upstream.`})}),`\n`,_jsxs(_components.p,{children:[`Duplicate scalar fields, malformed multipart, and invalid UTF-8 text return `,_jsx(_components.code,{children:`400`}),`. Other fields,\nincluding `,_jsx(_components.code,{children:`provider`}),`, `,_jsx(_components.code,{children:`chunking_strategy`}),`, `,_jsx(_components.code,{children:`include[]`}),`, and speaker fields, return\n`,_jsx(_components.code,{children:`400 unknown_parameter`}),`. ACI E2EE is not supported on this endpoint.`]}),`\n`,_jsxs(_components.p,{children:[`The upload must complete within 60 seconds, the file must be at most 25 MiB, and malformed or\noversized multipart metadata returns `,_jsx(_components.code,{children:`400`}),` or `,_jsx(_components.code,{children:`413`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`verified-serving-constraints`,children:`Verified-serving constraints`}),`\n`,_jsx(ParamField,{header:`X-ACI-Provider`,type:`string`,id:`param-x-aci-provider`,children:_jsxs(_components.p,{children:[`A JSON object with the same routing constraints as the JSON `,_jsx(_components.code,{children:`provider`}),` field, for example\n`,_jsx(_components.code,{children:`{\"aci_verified\":true}`}),`. The header is consumed by the gateway and never forwarded upstream.\nA `,_jsx(_components.code,{children:`provider`}),` form field is not accepted.`]})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`aci_verified: true`}),` requires a verified upstream. `,_jsx(_components.code,{children:`aci_session_ids`}),` pins a nonempty list of\n64-hex session ids and implies verified serving; combining pins with `,_jsx(_components.code,{children:`aci_verified: false`}),` is\ninvalid. Unavailable pins return `,_jsx(_components.code,{children:`412 session_not_accepted`}),`; failed required verification returns\n`,_jsx(_components.code,{children:`503 upstream_verification_failed`}),`, before forwarding the audio. The header must appear once,\ncontain only ASCII bytes, and be at most 8,192 bytes. Malformed or non-object JSON, invalid pins,\nand unknown `,_jsx(_components.code,{children:`aci_`}),` members return `,_jsx(_components.code,{children:`400`}),`. JSON endpoints reject this header.`]}),`\n`,_jsxs(_components.p,{children:[`Before uploading with constraints, obtain the attestation report over the accepted attested,\nSPKI-pinned channel, accept its workload provenance, and confirm that\n`,_jsx(_components.code,{children:`service_capabilities.supported_multipart_constraint_endpoints`}),` contains\n`,_jsx(_components.code,{children:`/v1/audio/transcriptions`}),`. Refuse the upload locally if support is absent. Intersect caller\nsession pins with locally accepted sessions and refuse disjoint sets. Retain the effective policy\nand check the receipt’s cited session against it: receipt body hashes do not commit to this\nheader. TEE-only host requirements apply independently.`]}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsxs(_components.p,{children:[`Let the client set the multipart `,_jsx(_components.code,{children:`Content-Type`}),` boundary. Name Node SDK files explicitly:\n`,_jsx(_components.code,{children:`toFile(buf)`}),` uses `,_jsx(_components.code,{children:`unknown_file`}),`, which has no extension and returns `,_jsx(_components.code,{children:`400`}),`.`]}),`\n`,`\n`,_jsxs(_components.p,{children:[`To require verified serving with cURL, add `,_jsx(_components.code,{children:`-H 'X-ACI-Provider: {\"aci_verified\":true}'`}),` after\nchecking the capability above.`]}),`\n`,_jsxs(_components.p,{children:[`For Private AI Proxy, `,_jsx(_components.code,{children:`auth-headers.txt`}),` contains `,_jsx(_components.code,{children:`Authorization: Bearer \u003ckey>`}),`; restrict its\npermissions to your user and remove it after use. `,_jsx(_components.code,{children:`pap curl`}),` verifies and pins the gateway channel;\nit does not audit receipts. Use `,_jsx(_components.code,{children:`pap serve`}),` or ACI verifier SDK clients for receipt audits\n(`,_jsx(_components.a,{href:`/guides/verify-a-response`,children:`Verify a response`}),`); the plain OpenAI SDK examples do not audit receipts.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`The cost below is illustrative, not a model price.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,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:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello, world.\"`}),_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:` \"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"seconds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"cost\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.0003`}),_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`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`json`}),` returns `,_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`usage`}),`, and optional `,_jsx(_components.code,{children:`languages: [{\"code\":\"en\"}]`}),`. For\n`,_jsx(_components.code,{children:`openai/whisper-large-v3`}),`, `,_jsx(_components.code,{children:`verbose_json`}),` also includes `,_jsx(_components.code,{children:`duration`}),` and `,_jsx(_components.code,{children:`language`}),`.\nWord-level timestamps are not returned. With `,_jsx(_components.code,{children:`verbose_json`}),`, Whisper responses may include\n`,_jsx(_components.code,{children:`segments`}),`; they can be absent.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`usage`}),` contains `,_jsx(_components.code,{children:`type: \"duration\"`}),` and integer `,_jsx(_components.code,{children:`seconds`}),`. Audio pricing is USD per second of input\naudio, billed per started second: `,_jsx(_components.code,{children:`usage.seconds`}),` is rounded up (`,_jsx(_components.code,{children:`2.965`}),` becomes `,_jsx(_components.code,{children:`3`}),`). Verbose\n`,_jsx(_components.code,{children:`duration`}),` retains the raw value. The gateway adds `,_jsx(_components.code,{children:`usage.cost`}),` only when the deployment has audio\npricing, in USD: billable seconds times the applicable rate. Provider-reported cost is not echoed.\nWithout a valid duration, the transcript is withheld with `,_jsx(_components.code,{children:`502`}),` and no audio is billed.`]}),`\n`,_jsxs(_components.p,{children:[`Read `,_jsx(_components.code,{children:`X-Receipt-Id`}),` and fetch `,_jsx(_components.code,{children:`GET /v1/aci/receipts/{id}`}),` using the same bearer token. Audio receipts\nhave `,_jsx(_components.code,{children:`chat_id: null`}),`, so use the receipt id. See `,_jsx(_components.a,{href:`/api-reference/receipts`,children:`Get receipt`}),` and\n`,_jsx(_components.a,{href:`/guides/verify-a-response`,children:`Verify a response`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(_components.p,{children:[`Errors use a JSON `,_jsx(_components.code,{children:`error`}),` object, with `,_jsx(_components.code,{children:`error.code`}),` and `,_jsx(_components.code,{children:`error.param`}),` where applicable.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Error field`}),_jsx(_components.th,{children:`Condition`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`code: unknown_parameter`})}),_jsxs(_components.td,{children:[`Unrecognized form field; `,_jsx(_components.code,{children:`param`}),` names the field.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`code: invalid_parameter`})}),_jsxs(_components.td,{children:[`Missing or invalid required fields, unsupported filename extension, response format other than `,_jsx(_components.code,{children:`json`}),` or `,_jsx(_components.code,{children:`verbose_json`}),`, invalid timestamp options, duplicate scalar fields, invalid UTF-8, malformed multipart, or exceeded multipart metadata limits.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`type: invalid_request_error`}),`, `,_jsx(_components.code,{children:`code: null`}),`, `,_jsx(_components.code,{children:`param: null`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`verbose_json`}),` with `,_jsx(_components.code,{children:`mistralai/voxtral-small-24b-2507`}),`: `,_jsx(_components.code,{children:`Currently do not support verbose_json for voxtral-small-24b`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`type: invalid_request_error`})}),_jsxs(_components.td,{children:[`Invalid or duplicate `,_jsx(_components.code,{children:`X-ACI-Provider`}),` header, including malformed constraints.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`type: e2ee_unsupported_endpoint`})}),_jsx(_components.td,{children:`E2EE headers are present; the refusal is decided before parsing or admission.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`type: model_not_found`})}),_jsx(_components.td,{children:`No eligible route supports transcription for the requested model.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`408`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`code: upload_timeout`})}),_jsx(_components.td,{children:`Upload exceeds the 60-second deadline; the connection closes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`413`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`code: request_too_large`})}),_jsx(_components.td,{children:`File or whole-body size limit exceeded; the connection closes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`type: rate_limit_error`}),`, `,_jsx(_components.code,{children:`code: rate_limit_exceeded`})]}),_jsxs(_components.td,{children:[`Capacity is full or a rate limit is reached; respect `,_jsx(_components.code,{children:`Retry-After`}),` when present.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`502`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`type: upstream_error`})}),_jsxs(_components.td,{children:[`Upstream failure, response over 8 MiB, missing string `,_jsx(_components.code,{children:`text`}),`, or invalid duration. Without a valid duration, the transcript is withheld and no audio is billed.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Authentication, budget, and other routing constraint errors follow the shared\n`,_jsx(_components.a,{href:`/guides/error-handling`,children:`error handling reference`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Models`,icon:`list`,href:`/api-reference/models`,children:_jsx(_components.p,{children:`Find available model ids and capabilities.`})}),_jsx(Card,{title:`Get receipt`,icon:`receipt`,href:`/api-reference/receipts`,children:_jsx(_components.p,{children:`Retrieve the signed receipt using X-Receipt-Id.`})})]})]})}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 transcription","description":"Transcribe audio with multipart uploads and duration-based billing.","api":"POST /audio/transcriptions","playground":"simple","href":"/api-reference/audio"}}},"mdxSourceWithNoJs":{"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`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Heading,ParamField,RequestExample,Table}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Transcribe an audio file through the attested TEE gateway using `,_jsx(_components.code,{children:`multipart/form-data`}),`. Responses\nare buffered JSON with an `,_jsx(_components.code,{children:`X-Receipt-Id`}),` header for verification.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.redpill.ai/v1/audio/transcriptions`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`Transcription model id, for example `,_jsx(_components.code,{children:`openai/whisper-large-v3`}),`; see the\n`,_jsx(_components.a,{href:`/api-reference/models`,children:`models catalog`}),` (`,_jsx(_components.code,{children:`GET /v1/models`}),`) for available ids.\nTranscription models have `,_jsx(_components.code,{children:`output_modalities: [\"transcription\"]`}),` in the catalog.`]})}),`\n`,_jsx(ParamField,{body:`file`,type:`file`,required:true,id:`param-file`,children:_jsxs(_components.p,{children:[`Exactly one nonempty file, up to 25 MiB (26,214,400 bytes). The filename must include one of\nthese extensions: `,_jsx(_components.code,{children:`flac`}),`, `,_jsx(_components.code,{children:`mp3`}),`, `,_jsx(_components.code,{children:`mp4`}),`, `,_jsx(_components.code,{children:`mpeg`}),`, `,_jsx(_components.code,{children:`mpga`}),`, `,_jsx(_components.code,{children:`m4a`}),`, `,_jsx(_components.code,{children:`ogg`}),`, `,_jsx(_components.code,{children:`wav`}),`, or `,_jsx(_components.code,{children:`webm`}),`.\n`,_jsx(_components.code,{children:`qwen/qwen3-asr-1.7b`}),` and `,_jsx(_components.code,{children:`qwen/qwen3-asr-0.6b`}),` accept up to 600 seconds of audio per\nrequest and return `,_jsx(_components.code,{children:`400 invalid_request_error`}),` for longer files.`]})}),`\n`,_jsx(ParamField,{body:`language`,type:`string`,id:`param-language`,children:_jsxs(_components.p,{children:[`Language code of 2–3 lowercase ASCII letters, for example `,_jsx(_components.code,{children:`en`}),`.\nThe Qwen3-ASR models detect the language themselves and may ignore this hint.`]})}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt`,children:_jsx(_components.p,{children:`Optional context for transcription, up to 4,096 Unicode characters.`})}),`\n`,_jsx(ParamField,{body:`temperature`,type:`number`,id:`param-temperature`,children:_jsx(_components.p,{children:`Sampling temperature from 0 through 1.`})}),`\n`,_jsx(ParamField,{body:`response_format`,type:`string`,id:`param-response-format`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`json`}),` (default) is supported by every model. `,_jsx(_components.code,{children:`verbose_json`}),` is supported only by\n`,_jsx(_components.code,{children:`openai/whisper-large-v3`}),`; `,_jsx(_components.code,{children:`mistralai/voxtral-small-24b-2507`}),`, `,_jsx(_components.code,{children:`qwen/qwen3-asr-1.7b`}),` and\n`,_jsx(_components.code,{children:`qwen/qwen3-asr-0.6b`}),` return `,_jsx(_components.code,{children:`400 invalid_request_error`}),` for `,_jsx(_components.code,{children:`verbose_json`}),`. Text, subtitle,\nand other response formats are not supported.`]})}),`\n`,_jsx(ParamField,{body:`timestamp_granularities[]`,type:`string[]`,id:`param-timestamp-granularities`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`word`}),` and/or `,_jsx(_components.code,{children:`segment`}),`, once each, only with `,_jsx(_components.code,{children:`openai/whisper-large-v3`}),` and\n`,_jsx(_components.code,{children:`response_format=verbose_json`}),`. Repeat the field to request both. `,_jsx(_components.code,{children:`timestamp_granularities`}),`\nis also accepted; do not mix spellings. Word-level timestamps are not returned; segments\nmay be absent.`]})}),`\n`,_jsx(ParamField,{body:`stream`,type:`boolean`,id:`param-stream`,children:_jsxs(_components.p,{children:[`Omit this field or send the literal form value `,_jsx(_components.code,{children:`false`}),`. Streaming is not supported;\n`,_jsx(_components.code,{children:`true`}),` and all other values return `,_jsx(_components.code,{children:`400`}),`.`]})}),`\n`,_jsx(ParamField,{body:`user`,type:`string`,id:`param-user`,children:_jsx(_components.p,{children:`Accepted for SDK compatibility but removed before forwarding upstream.`})}),`\n`,_jsxs(_components.p,{children:[`Duplicate scalar fields, malformed multipart, and invalid UTF-8 text return `,_jsx(_components.code,{children:`400`}),`. Other fields,\nincluding `,_jsx(_components.code,{children:`provider`}),`, `,_jsx(_components.code,{children:`chunking_strategy`}),`, `,_jsx(_components.code,{children:`include[]`}),`, and speaker fields, return\n`,_jsx(_components.code,{children:`400 unknown_parameter`}),`. ACI E2EE is not supported on this endpoint.`]}),`\n`,_jsxs(_components.p,{children:[`The upload must complete within 60 seconds, the file must be at most 25 MiB, and malformed or\noversized multipart metadata returns `,_jsx(_components.code,{children:`400`}),` or `,_jsx(_components.code,{children:`413`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`verified-serving-constraints`,children:`Verified-serving constraints`}),`\n`,_jsx(ParamField,{header:`X-ACI-Provider`,type:`string`,id:`param-x-aci-provider`,children:_jsxs(_components.p,{children:[`A JSON object with the same routing constraints as the JSON `,_jsx(_components.code,{children:`provider`}),` field, for example\n`,_jsx(_components.code,{children:`{\"aci_verified\":true}`}),`. The header is consumed by the gateway and never forwarded upstream.\nA `,_jsx(_components.code,{children:`provider`}),` form field is not accepted.`]})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`aci_verified: true`}),` requires a verified upstream. `,_jsx(_components.code,{children:`aci_session_ids`}),` pins a nonempty list of\n64-hex session ids and implies verified serving; combining pins with `,_jsx(_components.code,{children:`aci_verified: false`}),` is\ninvalid. Unavailable pins return `,_jsx(_components.code,{children:`412 session_not_accepted`}),`; failed required verification returns\n`,_jsx(_components.code,{children:`503 upstream_verification_failed`}),`, before forwarding the audio. The header must appear once,\ncontain only ASCII bytes, and be at most 8,192 bytes. Malformed or non-object JSON, invalid pins,\nand unknown `,_jsx(_components.code,{children:`aci_`}),` members return `,_jsx(_components.code,{children:`400`}),`. JSON endpoints reject this header.`]}),`\n`,_jsxs(_components.p,{children:[`Before uploading with constraints, obtain the attestation report over the accepted attested,\nSPKI-pinned channel, accept its workload provenance, and confirm that\n`,_jsx(_components.code,{children:`service_capabilities.supported_multipart_constraint_endpoints`}),` contains\n`,_jsx(_components.code,{children:`/v1/audio/transcriptions`}),`. Refuse the upload locally if support is absent. Intersect caller\nsession pins with locally accepted sessions and refuse disjoint sets. Retain the effective policy\nand check the receipt’s cited session against it: receipt body hashes do not commit to this\nheader. TEE-only host requirements apply independently.`]}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsxs(_components.p,{children:[`Let the client set the multipart `,_jsx(_components.code,{children:`Content-Type`}),` boundary. Name Node SDK files explicitly:\n`,_jsx(_components.code,{children:`toFile(buf)`}),` uses `,_jsx(_components.code,{children:`unknown_file`}),`, which has no extension and returns `,_jsx(_components.code,{children:`400`}),`.`]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`7`,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:`7`,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:` --fail-with-body`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --silent`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --show-error`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.redpill.ai/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:`$REDPILL_AI_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:` -D`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` audio-headers.txt`}),_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=openai/whisper-large-v3'`}),_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=@audio.wav'`}),_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=json'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`15`,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:`15`,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:`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:` api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"REDPILL_AI_API_KEY\"`}),_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:` base_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.redpill.ai/v1\"`}),_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:`\"audio.wav\"`}),_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:` audio:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response `}),_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:`\"openai/whisper-large-v3\"`}),_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:`audio,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` response_format`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"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:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.text)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`15`,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:`15`,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:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`readFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'node:fs/promises'`}),_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\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OpenAI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`toFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'openai'`}),_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\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` OpenAI`}),_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:` apiKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`REDPILL_AI_API_KEY`}),_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:` baseURL:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.redpill.ai/v1'`}),_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\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` buf`}),_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:` readFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'audio.wav'`}),_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:` 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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`audio`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`transcriptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_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:` 'openai/whisper-large-v3'`}),_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:` file:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` toFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`buf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'audio.wav'`}),_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:` '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:`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:`response`}),_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`]})})}),_jsx(CodeBlock,{filename:`Private AI Proxy`,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:`pap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.redpill.ai/v1/audio/transcriptions`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},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:` --fail-with-body`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --silent`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --show-error`}),_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:` @auth-headers.txt`}),_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=@audio.wav'`}),_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=openai/whisper-large-v3'`}),_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:` 'X-ACI-Provider: {\"aci_verified\":true}'`})]}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`To require verified serving with cURL, add `,_jsx(_components.code,{children:`-H 'X-ACI-Provider: {\"aci_verified\":true}'`}),` after\nchecking the capability above.`]}),`\n`,_jsxs(_components.p,{children:[`For Private AI Proxy, `,_jsx(_components.code,{children:`auth-headers.txt`}),` contains `,_jsx(_components.code,{children:`Authorization: Bearer \u003ckey>`}),`; restrict its\npermissions to your user and remove it after use. `,_jsx(_components.code,{children:`pap curl`}),` verifies and pins the gateway channel;\nit does not audit receipts. Use `,_jsx(_components.code,{children:`pap serve`}),` or ACI verifier SDK clients for receipt audits\n(`,_jsx(_components.a,{href:`/guides/verify-a-response`,children:`Verify a response`}),`); the plain OpenAI SDK examples do not audit receipts.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`The cost below is illustrative, not a model price.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,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:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello, world.\"`}),_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:` \"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"seconds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"cost\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.0003`}),_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`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`json`}),` returns `,_jsx(_components.code,{children:`text`}),`, `,_jsx(_components.code,{children:`usage`}),`, and optional `,_jsx(_components.code,{children:`languages: [{\"code\":\"en\"}]`}),`. For\n`,_jsx(_components.code,{children:`openai/whisper-large-v3`}),`, `,_jsx(_components.code,{children:`verbose_json`}),` also includes `,_jsx(_components.code,{children:`duration`}),` and `,_jsx(_components.code,{children:`language`}),`.\nWord-level timestamps are not returned. With `,_jsx(_components.code,{children:`verbose_json`}),`, Whisper responses may include\n`,_jsx(_components.code,{children:`segments`}),`; they can be absent.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`usage`}),` contains `,_jsx(_components.code,{children:`type: \"duration\"`}),` and integer `,_jsx(_components.code,{children:`seconds`}),`. Audio pricing is USD per second of input\naudio, billed per started second: `,_jsx(_components.code,{children:`usage.seconds`}),` is rounded up (`,_jsx(_components.code,{children:`2.965`}),` becomes `,_jsx(_components.code,{children:`3`}),`). Verbose\n`,_jsx(_components.code,{children:`duration`}),` retains the raw value. The gateway adds `,_jsx(_components.code,{children:`usage.cost`}),` only when the deployment has audio\npricing, in USD: billable seconds times the applicable rate. Provider-reported cost is not echoed.\nWithout a valid duration, the transcript is withheld with `,_jsx(_components.code,{children:`502`}),` and no audio is billed.`]}),`\n`,_jsxs(_components.p,{children:[`Read `,_jsx(_components.code,{children:`X-Receipt-Id`}),` and fetch `,_jsx(_components.code,{children:`GET /v1/aci/receipts/{id}`}),` using the same bearer token. Audio receipts\nhave `,_jsx(_components.code,{children:`chat_id: null`}),`, so use the receipt id. See `,_jsx(_components.a,{href:`/api-reference/receipts`,children:`Get receipt`}),` and\n`,_jsx(_components.a,{href:`/guides/verify-a-response`,children:`Verify a response`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(_components.p,{children:[`Errors use a JSON `,_jsx(_components.code,{children:`error`}),` object, with `,_jsx(_components.code,{children:`error.code`}),` and `,_jsx(_components.code,{children:`error.param`}),` where applicable.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Error field`}),_jsx(_components.th,{children:`Condition`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`code: unknown_parameter`})}),_jsxs(_components.td,{children:[`Unrecognized form field; `,_jsx(_components.code,{children:`param`}),` names the field.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`code: invalid_parameter`})}),_jsxs(_components.td,{children:[`Missing or invalid required fields, unsupported filename extension, response format other than `,_jsx(_components.code,{children:`json`}),` or `,_jsx(_components.code,{children:`verbose_json`}),`, invalid timestamp options, duplicate scalar fields, invalid UTF-8, malformed multipart, or exceeded multipart metadata limits.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`type: invalid_request_error`}),`, `,_jsx(_components.code,{children:`code: null`}),`, `,_jsx(_components.code,{children:`param: null`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`verbose_json`}),` with `,_jsx(_components.code,{children:`mistralai/voxtral-small-24b-2507`}),`: `,_jsx(_components.code,{children:`Currently do not support verbose_json for voxtral-small-24b`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`type: invalid_request_error`})}),_jsxs(_components.td,{children:[`Invalid or duplicate `,_jsx(_components.code,{children:`X-ACI-Provider`}),` header, including malformed constraints.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`type: e2ee_unsupported_endpoint`})}),_jsx(_components.td,{children:`E2EE headers are present; the refusal is decided before parsing or admission.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`type: model_not_found`})}),_jsx(_components.td,{children:`No eligible route supports transcription for the requested model.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`408`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`code: upload_timeout`})}),_jsx(_components.td,{children:`Upload exceeds the 60-second deadline; the connection closes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`413`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`code: request_too_large`})}),_jsx(_components.td,{children:`File or whole-body size limit exceeded; the connection closes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`type: rate_limit_error`}),`, `,_jsx(_components.code,{children:`code: rate_limit_exceeded`})]}),_jsxs(_components.td,{children:[`Capacity is full or a rate limit is reached; respect `,_jsx(_components.code,{children:`Retry-After`}),` when present.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`502`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`type: upstream_error`})}),_jsxs(_components.td,{children:[`Upstream failure, response over 8 MiB, missing string `,_jsx(_components.code,{children:`text`}),`, or invalid duration. Without a valid duration, the transcript is withheld and no audio is billed.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Authentication, budget, and other routing constraint errors follow the shared\n`,_jsx(_components.a,{href:`/guides/error-handling`,children:`error handling reference`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Models`,icon:`list`,href:`/api-reference/models`,children:_jsx(_components.p,{children:`Find available model ids and capabilities.`})}),_jsx(Card,{title:`Get receipt`,icon:`receipt`,href:`/api-reference/receipts`,children:_jsx(_components.p,{children:`Retrieve the signed receipt using X-Receipt-Id.`})})]})]})}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 transcription","description":"Transcribe audio with multipart uploads and duration-based billing.","api":"POST /audio/transcriptions","playground":"simple","href":"/api-reference/audio"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request body","slug":"request-body","depth":2,"children":[]},{"title":"Verified-serving constraints","slug":"verified-serving-constraints","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --fail-with-body\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --silent\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --show-error\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.redpill.ai/v1/audio/transcriptions\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$REDPILL_AI_API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -D\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> audio-headers.txt\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -F\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'model=openai/whisper-large-v3'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -F\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'file=@audio.wav'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -F\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'response_format=json'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> os\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">from\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> openai \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> OpenAI\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">client \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> OpenAI(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> api_key\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">os.environ[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"REDPILL_AI_API_KEY\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> base_url\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://api.redpill.ai/v1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">with\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> open\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"audio.wav\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"rb\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">as\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> audio:\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> client.audio.transcriptions.create(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> model\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"openai/whisper-large-v3\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> file\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">audio,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> response_format\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> )\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(response.text)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Node.js","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">readFile\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> } \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">from\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'node:fs/promises'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> OpenAI\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">toFile\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> } \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">from\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'openai'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> client\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> OpenAI\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> apiKey:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> process\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">env\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\">REDPILL_AI_API_KEY\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> baseURL:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://api.redpill.ai/v1'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> buf\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> readFile\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'audio.wav'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> client\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">audio\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">transcriptions\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">create\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> model:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'openai/whisper-large-v3'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> file:\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> toFile\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">buf\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'audio.wav'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response_format:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'json'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">text\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Private AI Proxy","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">pap\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> curl\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.redpill.ai/v1/audio/transcriptions\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --fail-with-body\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --silent\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --show-error\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> @auth-headers.txt\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -F\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'file=@audio.wav'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -F\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'model=openai/whisper-large-v3'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'X-ACI-Provider: {\"aci_verified\":true}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Audio transcription","path":"/audio/transcriptions","servers":[{"url":"https://api.redpill.ai/v1"}],"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":{"X-ACI-Provider":{"schema":[{"type":"string","description":"A JSON object with the same routing constraints as the JSON `provider` field, for example `{\"aci_verified\":true}` . The header is consumed by the gateway and never forwarded upstream. A `provider` form field is not accepted."}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"model":[{"type":"string","description":"Transcription model id, for example `openai/whisper-large-v3` ; see the models catalog ( `GET /v1/models` ) for available ids. Transcription models have `output_modalities: [\"transcription\"]` in the catalog.","required":true}],"file":[{"type":"file","description":"Exactly one nonempty file, up to 25 MiB (26,214,400 bytes). The filename must include one of these extensions: `flac` , `mp3` , `mp4` , `mpeg` , `mpga` , `m4a` , `ogg` , `wav` , or `webm` . `qwen/qwen3-asr-1.7b` and `qwen/qwen3-asr-0.6b` accept up to 600 seconds of audio per request and return `400 invalid_request_error` for longer files.","required":true}],"language":[{"type":"string","description":"Language code of 2–3 lowercase ASCII letters, for example `en` . The Qwen3-ASR models detect the language themselves and may ignore this hint."}],"prompt":[{"type":"string","description":"Optional context for transcription, up to 4,096 Unicode characters."}],"temperature":[{"type":"number","description":"Sampling temperature from 0 through 1."}],"response_format":[{"type":"string","description":"`json` (default) is supported by every model. `verbose_json` is supported only by `openai/whisper-large-v3` ; `mistralai/voxtral-small-24b-2507` , `qwen/qwen3-asr-1.7b` and `qwen/qwen3-asr-0.6b` return `400 invalid_request_error` for `verbose_json` . Text, subtitle, and other response formats are not supported."}],"timestamp_granularities[]":[{"type":"array","items":[{"type":"string"}],"description":"`word` and/or `segment` , once each, only with `openai/whisper-large-v3` and `response_format=verbose_json` . Repeat the field to request both. `timestamp_granularities` is also accepted; do not mix spellings. Word-level timestamps are not returned; segments may be absent."}],"stream":[{"type":"boolean","description":"Omit this field or send the literal form value `false` . Streaming is not supported; `true` and all other values return `400` ."}],"user":[{"type":"string","description":"Accepted for SDK compatibility but removed before forwarding upstream."}]}}],"examples":{"example":{"value":{"model":"\u003cstring>","language":"\u003cstring>","prompt":"\u003cstring>","temperature":123,"response_format":"\u003cstring>","timestamp_granularities[]":["\u003cstring>"],"stream":true,"user":"\u003cstring>"}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"phala-47f19b07","siteName":"RedPill AI","title":"Audio transcription - RedPill AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-17T16:16:57.762Z","originalFileLocation":"api-reference/audio.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=\"Transcribe audio with multipart uploads and duration-based billing.\">\u003cmeta data-mint-head name=\"application-name\" content=\"RedPill AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/phala-47f19b07/Y9aC6lrEn-iBCXi1/_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/phala-47f19b07/Y9aC6lrEn-iBCXi1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/phala-47f19b07/Y9aC6lrEn-iBCXi1/_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/phala-47f19b07/Y9aC6lrEn-iBCXi1/_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/phala-47f19b07/Y9aC6lrEn-iBCXi1/_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/phala-47f19b07/Y9aC6lrEn-iBCXi1/_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/phala-47f19b07/Y9aC6lrEn-iBCXi1/_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/phala-47f19b07/Y9aC6lrEn-iBCXi1/_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/phala-47f19b07/Y9aC6lrEn-iBCXi1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Audio transcription - RedPill AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Transcribe audio with multipart uploads and duration-based billing.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"RedPill AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.redpill.ai/api-reference/audio\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://phala-47f19b07.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Audio+transcription\u0026amp;description=Transcribe+audio+with+multipart+uploads+and+duration-based+billing.\u0026amp;theme=96a53a94fb39586c2c87277f\u0026amp;signature=8cc6a79830e224144007aa2993611cad3df8853447de9c9d7dafb802f5f103cf\">\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 transcription - RedPill AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Transcribe audio with multipart uploads and duration-based billing.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://phala-47f19b07.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Audio+transcription\u0026amp;description=Transcribe+audio+with+multipart+uploads+and+duration-based+billing.\u0026amp;theme=96a53a94fb39586c2c87277f\u0026amp;signature=8cc6a79830e224144007aa2993611cad3df8853447de9c9d7dafb802f5f103cf\">\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/phala-47f19b07/Y9aC6lrEn-iBCXi1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"RedPill AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#c96442\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.redpill.ai/api-reference/audio\">\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.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.redpill.ai/#organization\",\"name\":\"RedPill AI\",\"url\":\"https://docs.redpill.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/phala-47f19b07/5vRaVvmX8pi5Nukr/logo/light.svg?fit=max\u0026auto=format\u0026n=5vRaVvmX8pi5Nukr\u0026q=85\u0026s=03f8dbe12d0f593a956cccba7b18115f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.redpill.ai#website\",\"name\":\"RedPill AI\",\"url\":\"https://docs.redpill.ai\",\"publisher\":{\"@id\":\"https://docs.redpill.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.redpill.ai/api-reference/audio#webpage\",\"url\":\"https://docs.redpill.ai/api-reference/audio\",\"name\":\"Audio transcription\",\"description\":\"Transcribe audio with multipart uploads and duration-based billing.\",\"dateModified\":\"2026-11-17T16:16:57.762Z\",\"isPartOf\":{\"@id\":\"https://docs.redpill.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.redpill.ai/api-reference/audio#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.redpill.ai/api-reference/audio#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.redpill.ai/api-reference/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Audio transcription\",\"item\":\"https://docs.redpill.ai/api-reference/audio\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.redpill.ai/api-reference/audio#apireference\",\"headline\":\"Audio transcription\",\"name\":\"Audio transcription\",\"description\":\"Transcribe audio with multipart uploads and duration-based billing.\",\"url\":\"https://docs.redpill.ai/api-reference/audio\",\"mainEntityOfPage\":{\"@id\":\"https://docs.redpill.ai/api-reference/audio#webpage\"},\"dateModified\":\"2026-11-17T16:16:57.762Z\",\"publisher\":{\"@id\":\"https://docs.redpill.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.redpill.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"RedPill AI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"RedPill AI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/audio.md","siteName":"RedPill AI","nav":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.gg/P2ukR4Z5ps"},{"anchor":"GitHub","icon":"github","href":"https://github.com/redpill-ai"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/get-started/introduction"}]},{"tab":"API Reference","groups":[{"group":"Endpoints","pages":[{"title":"Overview","href":"/api-reference/overview"},{"title":"Chat completions","api":"POST /chat/completions","href":"/api-reference/chat-completions"},{"title":"Responses","api":"POST /responses","href":"/api-reference/responses"},{"title":"Messages","api":"POST /messages","href":"/api-reference/messages"},{"title":"Embeddings","api":"POST /embeddings","href":"/api-reference/embeddings"},{"title":"Image generation","description":"Generate images and decode inline base64 output.","api":"POST /images/generations","href":"/api-reference/images"},{"title":"Audio transcription","api":"POST /audio/transcriptions","playground":"simple","href":"/api-reference/audio"},{"title":"System One","description":"Ask a model typed questions about a state and get structured decisions.","api":"POST /systemone","href":"/api-reference/systemone"},{"title":"Models","api":"GET /models","href":"/api-reference/models"},{"title":"Completions (legacy)","api":"POST /completions","href":"/api-reference/completions"}]},{"group":"Verification","pages":[{"title":"Attestation report","api":"GET https://tee.redpill.ai/v1/aci/attestation","href":"/api-reference/attestation"},{"title":"Receipt","api":"GET https://tee.redpill.ai/v1/aci/receipts/{id}","href":"/api-reference/receipts"},{"title":"Session","api":"GET https://tee.redpill.ai/v1/aci/sessions/{session_id}","href":"/api-reference/sessions"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Audio transcription - RedPill AI","deploymentId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","buildId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-CrDfRf61.js","snippetPresets-Dv-cOUrx.js","utils-BUTreAgv.js","style-to-object-BY3JEAdk.js","utils-wsznt9RM.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DEsMlaPy.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DontW4xJ.js","_Uint8Array-pP7X6_RM.js","isObject-FP1Yky1u.js","ApiExamples-CU_aGGP0.js","usePlaygroundInputsStore-7dNmUIbS.js","shallow-fTtruD8x.js","isEqual-BRfNFpSD.js","CodeSnippets-52884wUJ.js","CodeSnippet-eoRjC4Le.js","getApiPlaygroundDisplay-CZyAPlR2.js","Page-Cr9IwkK7.js","DynamicMarkdown-NFqqduU7.js","SectionHeading-DQ-mJoAt.js","icon-DXTBUt6s.js","MethodPill-2v-b3js5.js","getPastedJson-v_8Y1_4v.js","DuplicateIcon-DXIkhZIo.js","createIcon-DRpYuPZs.js","axios-CsQoIw0U.js"]}