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

# Create transcription

> OpenAI-compatible speech-to-text. Send `multipart/form-data` with a `file` (WAV recommended) and a `model` id. Billed per second of audio.



## OpenAPI

````yaml POST /v1/audio/transcriptions
openapi: 3.1.0
info:
  title: Kubox API
  description: >-
    OpenAI-compatible AI endpoints on sovereign Australian infrastructure.
    Authenticate with your `kbx_live_…` API key as a Bearer token. This
    reference is generated from the gateway source code.
  version: 1.0.0
servers:
  - url: https://api.kubox.ai
    description: Kubox cloud
security:
  - bearerAuth: []
paths:
  /v1/audio/transcriptions:
    post:
      summary: Create transcription (speech-to-text)
      description: >-
        OpenAI-compatible speech-to-text. Send `multipart/form-data` with a
        `file` (WAV recommended) and a `model` id. Billed per second of audio.
      operationId: createTranscription
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
                - model
              properties:
                file:
                  type: string
                  format: binary
                  description: The audio file to transcribe.
                model:
                  type: string
                  description: A speech-to-text model id from `GET /v1/models`.
      responses:
        '200':
          description: The transcription.
          content:
            application/json:
              schema:
                type: object
                properties:
                  text:
                    type: string
                  duration:
                    type: number
                    description: Audio length in seconds, when reported.
        '400':
          description: Body must be multipart/form-data with `file` and `model` fields.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: invalid_request_error
                  code: invalid_request
                  message: >-
                    Body must be multipart/form-data with `file` and `model`
                    fields.
        '401':
          description: Incorrect API key provided.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: invalid_request_error
                  code: invalid_api_key
                  message: Incorrect API key provided.
        '402':
          description: Insufficient credits. Top up to continue.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: insufficient_quota
                  code: insufficient_balance
                  message: Insufficient credits. Top up to continue.
        '404':
          description: The model `<id>` does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: invalid_request_error
                  code: model_not_found
                  message: The model `<id>` does not exist.
        '502':
          description: The provider rejected the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: api_error
                  code: upstream_error
                  message: The provider rejected the request.
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your Kubox API key (`kbx_live_…`) from the console.

````