> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opper.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Transcribe audio

> Transcribe audio to text. By default runs synchronously and returns the transcript inline (200); `audio` accepts a `file_<id>`, an https URL, or a base64 data-URI (max 25MB decoded). Set `stream: true` to receive the transcript live as Server-Sent Events (`transcript.text.delta` chunks then a final `transcript.text.done`, terminated by `data: [DONE]`) — supported on streaming models like `mistral/voxtral-mini-2602`, a 400 otherwise. Set `async: true` to run on the background worker and get a 202 with a status URL to poll instead — use it for long recordings that can exceed the synchronous timeout; it accepts the same `audio` sources (an inline data-URI is staged in Opper's storage in eu-north-1 and deleted when the worker starts the job) and lifts the decoded-audio cap to 100MB. A `file_<id>` or https URL reaches the full 100MB; a data-URI is also bound by the 100 MiB request body limit, which with base64 overhead allows about 75MB of decoded audio. The result is deleted 24 hours after the job finishes, 1 hour on a zero-retention project, or earlier with DELETE /v3/artifacts/{id} (then the status URL answers 404); each status poll returns a fresh download link valid for 1 hour. `stream` and `async` are mutually exclusive. `model` and `audio` are required; `language` and `prompt` are passed through as hints; `diarize` requests speaker labels (400 on models without diarization support); everything in `parameters` is forwarded verbatim to the provider, and the keys each model takes are listed with descriptions under `params.stt.parameters` in GET /v3/models.

See the [Audio guide](https://docs.opper.ai/build/multimodal/audio.md) for runnable examples.


## OpenAPI

````yaml post /v3/audio/transcriptions
openapi: 3.1.0
info:
  description: Schema-driven generative API that orchestrates LLM-powered workflows.
  title: Task API
  version: 3.0.0
servers:
  - description: Production
    url: https://api.opper.ai
  - description: Local development
    url: http://localhost:8080
security:
  - BearerAuth: []
tags:
  - description: OpenAI-compatible chat completions
    name: Chat
  - description: OpenAI Responses API compatible endpoint
    name: Responses
  - description: Google-compatible interactions endpoint
    name: Interactions
  - description: Model registry and capabilities
    name: Models
  - description: Synchronous image generation
    name: Images
  - description: Text-to-speech and speech-to-text
    name: Audio
  - description: Asynchronous video generation
    name: Videos
  - description: Realtime WebSocket sessions and their ephemeral tickets
    name: Realtime
  - description: Many requests on a provider's batch API at the batch price
    name: Batches
  - description: Reusable file storage for media inputs and generated outputs
    name: Files
  - description: Async generation status and downloads
    name: Artifacts
  - description: >-
      Signed completion webhooks for async jobs, and the project secret that
      signs them
    name: Webhooks
  - description: OpenAI-compatible embeddings
    name: Embeddings
  - description: Recorded HTTP request/response generations
    name: Generations
  - description: System health and status
    name: System
  - description: Roundtable endpoint — fan out a query to multiple LLMs and combine results
    name: Roundtable
  - description: Web search, fetch, and other utility tools
    name: Tools
  - description: Caller identity, credits, and usage
    name: Account
  - description: >-
      Programmatic project and API-key management. Authenticates with an
      `op-mak-…` management token; available on the control_plane and enterprise
      plans.
    name: Management
paths:
  /v3/audio/transcriptions:
    post:
      tags:
        - Audio
      summary: Transcribe audio (STT)
      description: >-
        Transcribe audio to text. By default runs synchronously and returns the
        transcript inline (200); `audio` accepts a `file_<id>`, an https URL, or
        a base64 data-URI (max 25MB decoded). Set `stream: true` to receive the
        transcript live as Server-Sent Events (`transcript.text.delta` chunks
        then a final `transcript.text.done`, terminated by `data: [DONE]`) —
        supported on streaming models like `mistral/voxtral-mini-2602`, a 400
        otherwise. Set `async: true` to run on the background worker and get a
        202 with a status URL to poll instead — use it for long recordings that
        can exceed the synchronous timeout; it accepts the same `audio` sources
        (an inline data-URI is staged in Opper's storage in eu-north-1 and
        deleted when the worker starts the job) and lifts the decoded-audio cap
        to 100MB. A `file_<id>` or https URL reaches the full 100MB; a data-URI
        is also bound by the 100 MiB request body limit, which with base64
        overhead allows about 75MB of decoded audio. The result is deleted 24
        hours after the job finishes, 1 hour on a zero-retention project, or
        earlier with DELETE /v3/artifacts/{id} (then the status URL answers
        404); each status poll returns a fresh download link valid for 1 hour.
        `stream` and `async` are mutually exclusive. `model` and `audio` are
        required; `language` and `prompt` are passed through as hints; `diarize`
        requests speaker labels (400 on models without diarization support);
        everything in `parameters` is forwarded verbatim to the provider, and
        the keys each model takes are listed with descriptions under
        `params.stt.parameters` in GET /v3/models.
      operationId: createTranscription
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TranscriptionRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TranscriptionResponse'
          description: Successful response
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TranscriptionJobResponse'
          description: >-
            Accepted – async transcription submitted (async: true). Poll the
            returned `status_url` (GET /v3/artifacts/{id}/status) for a
            presigned URL to the transcript JSON when complete.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad request
        '401':
          description: Unauthorized - missing or invalid API key
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal server error
components:
  schemas:
    TranscriptionRequest:
      properties:
        async:
          type: boolean
        audio:
          type: string
        diarize:
          type: boolean
        language:
          type: string
        model:
          type: string
        parameters:
          description: >-
            Provider settings, forwarded verbatim. The keys each model takes are
            listed with descriptions in its `params.stt.parameters` (GET
            /v3/models?type=stt); a key the provider does not know is its error.
          type: object
        prompt:
          type: string
        stream:
          type: boolean
      required:
        - model
        - audio
      type: object
    TranscriptionResponse:
      properties:
        created:
          type: integer
        duration:
          type: number
        id:
          type: string
        language:
          type: string
        model:
          type: string
        segments:
          items:
            properties:
              end:
                type: number
              speaker:
                type: string
              start:
                type: number
              text:
                type: string
            required:
              - start
              - end
              - text
            type: object
          type: array
        text:
          type: string
        usage:
          properties:
            cost:
              type: number
            seconds:
              type: number
          required:
            - cost
            - seconds
          type: object
        words:
          items:
            properties:
              confidence:
                type: number
              end:
                type: number
              start:
                type: number
              word:
                type: string
            required:
              - word
              - start
              - end
            type: object
          type: array
      required:
        - id
        - model
        - created
        - text
        - usage
      type: object
    TranscriptionJobResponse:
      properties:
        id:
          type: string
        status_url:
          type: string
      required:
        - id
        - status_url
      type: object
    ErrorResponse:
      properties:
        error:
          properties:
            code:
              type: string
            details:
              description: Any value
            message:
              type: string
          required:
            - code
            - message
          type: object
        meta:
          type: object
      required:
        - error
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: API Key
      description: API key authentication. Pass your API key as a Bearer token.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.