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

# Create a transcript

> Start transcribing audio with A5S Async v1. The job runs asynchronously: poll [Get a transcript](/api-reference/get-transcript) or pass `webhook_url`.



## OpenAPI

````yaml POST /v1/transcripts
openapi: 3.1.0
info:
  title: AirCaps API
  version: 1.0.0
  description: >-
    Speech-to-text for English. A5S Async v1 (REST) and A5S v2 Streaming
    (WebSocket).
servers:
  - url: https://api.aircaps.com
security:
  - bearerAuth: []
tags:
  - name: Transcripts
  - name: Files
  - name: Account
paths:
  /v1/transcripts:
    post:
      tags:
        - Transcripts
      summary: Create a transcript
      description: >-
        Start transcribing audio with A5S Async v1. The job runs asynchronously:
        poll [Get a transcript](/api-reference/get-transcript) or pass
        `webhook_url`.
      operationId: createTranscript
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Up to 255 characters. Makes retries safe: the same key and body
            return the original job.
          schema:
            type: string
            maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTranscriptRequest'
            example:
              model: a5s-async-v1
              audio_url: https://example.com/meeting.mp3
              language_code: en
              webhook_url: https://example.com/hooks/aircaps
              metadata:
                meeting_id: 42
      responses:
        '201':
          description: >-
            Created. A retried request with the same `Idempotency-Key` returns
            the original transcript with `200`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transcript'
              example:
                id: tr_01k6z3m4q8w7e5r2t1y0u9i8o7
                object: transcript
                status: queued
                created_at: '2026-10-06T18:01:02.123Z'
                started_at: null
                completed_at: null
                audio_url: null
                file_id: file_01k6z3m4q8w7e5r2t1y0u9i8o7
                language_code: en
                model: a5s-async-v1
                audio_duration: null
                metadata:
                  meeting_id: 42
                webhook_url: https://example.com/hooks/aircaps
                webhook_status_code: null
                error: null
          headers:
            Location:
              description: URL of the new transcript.
              schema:
                type: string
        '400':
          description: >-
            Invalid request. Codes: `invalid_request`, `unsupported_language`,
            `unsupported_model`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: invalid_request_error
                  code: unsupported_language
                  message: >-
                    language 'de' is not supported; only English ("en", "en-US",
                    ...) is available today. Multilingual support is planned.
                  param: null
                  request_id: req_01k6z3m4q8w7e5r2t1y0u9i8o7
        '401':
          description: 'Missing or invalid API key. Codes: `unauthorized`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: authentication_error
                  code: unauthorized
                  message: invalid API key
                  param: null
                  request_id: req_01k6z3m4q8w7e5r2t1y0u9i8o7
        '403':
          description: >-
            The account may not do this. Codes: `account_suspended`,
            `account_disabled`, `usage_limit_reached`, `model_access_denied`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: permission_error
                  code: model_access_denied
                  message: >-
                    This account does not have access to A5S Async v1. To get
                    access, talk to sales at
                    https://research.aircaps.com/contact.
                  param: null
                  request_id: req_01k6z3m4q8w7e5r2t1y0u9i8o7
        '409':
          description: >-
            Idempotency key reused with a different body. Codes:
            `idempotency_conflict`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: invalid_request_error
                  code: idempotency_conflict
                  message: Idempotency-Key was used with a different request
                  param: null
                  request_id: req_01k6z3m4q8w7e5r2t1y0u9i8o7
        '429':
          description: 'Rate or queue limit reached. Codes: `rate_limited`, `queue_full`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: rate_limit_error
                  code: rate_limited
                  message: too many requests; retry after the Retry-After interval
                  param: null
                  request_id: req_01k6z3m4q8w7e5r2t1y0u9i8o7
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
        '500':
          description: >-
            Server error. Safe to retry (use the same Idempotency-Key). Codes:
            `internal_error`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: api_error
                  code: internal_error
                  message: internal error
                  param: null
                  request_id: req_01k6z3m4q8w7e5r2t1y0u9i8o7
components:
  schemas:
    CreateTranscriptRequest:
      type: object
      additionalProperties: false
      description: Provide exactly one of `audio_url` or `file_id`.
      properties:
        model:
          type: string
          enum:
            - a5s-async-v1
          default: a5s-async-v1
          description: The model. Any other value returns `400 unsupported_model`.
        audio_url:
          type: string
          maxLength: 8192
          format: uri
          description: >-
            An http(s) URL to download the audio from (public or presigned), up
            to 5 GB, resolving to a public address.
          example: https://example.com/meeting.mp3
        file_id:
          type: string
          maxLength: 64
          description: >-
            ID from [Create an upload URL](/api-reference/upload-url) or [Upload
            a file](/api-reference/upload-file).
        language_code:
          type: string
          maxLength: 16
          default: en
          description: >-
            Language of the audio. English only today: `en` or a regional
            variant (`en-US`, `en-GB`, `en-AU`, `en-CA`, `en-IN`, `en-IE`,
            `en-NZ`, `en-ZA`; case-insensitive, `-` or `_`). Any other value
            returns `400 unsupported_language`. Multilingual support is planned.
          example: en-US
        webhook_url:
          type: string
          maxLength: 2048
          format: uri
          description: >-
            Called with a [webhook event](/api-reference/objects/webhook-event)
            when the job finishes.
        webhook_auth_header_name:
          type: string
          maxLength: 256
          description: Name of a header to add to webhook requests. Requires `webhook_url`.
          example: Authorization
        webhook_auth_header_value:
          type: string
          maxLength: 4096
          description: Value of that header.
        metadata:
          type: object
          description: >-
            Any JSON object up to 16 KB; echoed on the transcript and in
            webhooks.
          example:
            meeting_id: 42
    Transcript:
      type: object
      required:
        - id
        - object
        - status
        - created_at
        - started_at
        - completed_at
        - audio_url
        - file_id
        - language_code
        - model
        - audio_duration
        - metadata
        - webhook_url
        - webhook_status_code
        - error
      properties:
        id:
          type: string
          description: Transcript ID.
          example: tr_01k6z3m4q8w7e5r2t1y0u9i8o7
        object:
          type: string
          enum:
            - transcript
          example: transcript
        status:
          type: string
          enum:
            - queued
            - processing
            - completed
            - error
          description: >-
            `queued`: waiting for a processing slot. `processing`: being
            transcribed. `completed`: result fields present. `error`: see
            `error`.
        created_at:
          type: string
          format: date-time
          description: When the transcript was created (UTC).
        started_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When processing started.
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the job finished (completed or error).
        audio_url:
          type:
            - string
            - 'null'
          description: The submitted `audio_url`, if any.
        file_id:
          type:
            - string
            - 'null'
          description: The submitted `file_id`, if any.
        language_code:
          type: string
          enum:
            - en
          description: Language of the transcript (normalised).
        model:
          type: string
          enum:
            - a5s-async-v1
        audio_duration:
          type:
            - number
            - 'null'
          description: Audio duration in seconds, once known.
          example: 3600.512
        metadata:
          type:
            - object
            - 'null'
          description: Your `metadata`, echoed back.
        webhook_url:
          type:
            - string
            - 'null'
          description: Webhook target, if any.
        webhook_status_code:
          type:
            - integer
            - 'null'
          description: HTTP status of the last webhook delivery.
        error:
          oneOf:
            - $ref: '#/components/schemas/JobError'
            - type: 'null'
          description: Set when `status` is `error`.
        text:
          type: string
          description: >-
            Completed only. Full transcript: verbatim, lowercase, no
            punctuation.
        speakers:
          type: array
          items:
            $ref: '#/components/schemas/Speaker'
          description: Completed only.
        utterances:
          type: array
          items:
            $ref: '#/components/schemas/Utterance'
          description: >-
            Completed only. Speaker turns, in time order; overlapping speech
            overlaps.
        words:
          type: array
          items:
            $ref: '#/components/schemas/Word'
          description: Completed only. Every word, in time order.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
            - request_id
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - authentication_error
                - permission_error
                - rate_limit_error
                - api_error
            code:
              type: string
              description: Machine-readable code; see [Errors](/errors).
            message:
              type: string
            param:
              type:
                - string
                - 'null'
              description: The request field at fault, if any.
            request_id:
              type: string
              description: >-
                Also in the `x-request-id` header. Include it when contacting
                support.
    JobError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          enum:
            - invalid_audio
            - audio_too_long
            - file_too_large
            - download_failed
            - file_not_found
            - usage_limit_reached
            - internal_error
            - canceled
          description: Why the job failed. Failed jobs never count toward usage.
        message:
          type: string
          description: Human-readable detail.
    Speaker:
      type: object
      required:
        - id
        - speaking_time
      properties:
        id:
          type: string
          example: speaker_0
        speaking_time:
          type: number
          description: Seconds this speaker talks.
          example: 1402.11
    Utterance:
      type: object
      required:
        - speaker
        - start
        - end
        - text
        - words
      properties:
        speaker:
          type: string
          description: >-
            Speaker label (`speaker_0`, `speaker_1`, … in order of first
            speech).
          example: speaker_0
        start:
          type: number
          description: Start time in seconds.
          example: 0.48
        end:
          type: number
          description: End time in seconds.
          example: 6.12
        text:
          type: string
          description: Text of the utterance.
          example: hey good afternoon everybody
        words:
          type: array
          items:
            $ref: '#/components/schemas/Word'
          description: Words of the utterance.
    Word:
      type: object
      required:
        - text
        - start
        - end
        - speaker
      properties:
        text:
          type: string
          description: The word.
          example: hey
        start:
          type: number
          description: Start time in seconds.
          example: 0.48
        end:
          type: number
          description: End time in seconds.
          example: 0.71
        speaker:
          type: string
          description: Speaker label.
          example: speaker_0
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key: `Authorization: Bearer aircaps_sk_...`'

````

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