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

# Transcription Corrections API

> Tell Morph what a transcript should have said, for a file transcription or a realtime turn.

For the guide, see [Speech to Text](https://docs.morphllm.com/models/speech-to-text.md#corrections).

## Overview

When a transcript comes back wrong, send the text it should have been. Morph keeps the correction with that request's audio and transcript, and uses them to find and fix recognition errors.

```bash theme={null}
curl --fail-with-body https://api.morphllm.com/v1/audio/corrections \
  -H "Authorization: Bearer $MORPH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"request_id": "78078d1a-75e4-4c87-904b-925eb943ab3a", "text": "He hoped there would be stew for dinner."}'
```

```json theme={null}
{
  "id": "corr_2454dab71ec47f08b0cf1cf6",
  "object": "transcription.correction",
  "created_at": 1796074557,
  "request_id": "78078d1a-75e4-4c87-904b-925eb943ab3a"
}
```

## Which transcript

* **File transcriptions:** `request_id` is the `x-request-id` header of the `/v1/audio/transcriptions` response.
* **Realtime turns:** `item_id` is the turn's `item_id` from `conversation.item.input_audio_transcription.completed`.

Send exactly one. `text` is the whole corrected transcript, not a diff, and `""` when nothing was said. A dictation app can send the text the user ended up with. You can send again for the same request, and the newest correction is the one that counts.

## Limits and errors

Bodies up to 1 MB; `note` up to 2,000 characters. Errors use the OpenAI envelope: `400` invalid body, `401` `invalid_api_key`, `403` `zero_data_retention` (Morph keeps nothing for those keys, so there is nothing to correct), `429` `rate_limit_exceeded`.


## OpenAPI

````yaml POST /v1/audio/corrections
openapi: 3.1.0
info:
  title: Morph API
  version: 1.2.0
  description: >-
    The Morph public API at api.morphllm.com: OpenAI- and Anthropic-compatible
    inference (chat completions, messages), Fast Apply code editing, Compact
    context compression, System One typed decisions, speech to text (audio
    transcription and translation), model listing, and dedicated endpoint
    management, agentic credit top-ups paid over x402, account usage and billing
    settings, and organization member budgets. Model ids, prices, and context
    windows are served live at https://www.morphllm.com/api/models/json.
  contact:
    name: Morph
    url: https://morphllm.com
    email: info@morphllm.com
  license:
    name: Proprietary
    url: https://morphllm.com/privacy/tos
servers:
  - url: https://api.morphllm.com
    description: Production
security: []
tags:
  - name: chat
    description: >-
      OpenAI- and Anthropic-compatible chat inference, including Fast Apply and
      WarpGrep models.
  - name: compact
    description: Context compression for long agent conversations.
  - name: systemone
    description: 'Typed decisions: a state in, a probability distribution per question out.'
  - name: audio
    description: >-
      Speech to text: transcription and translation of audio files,
      OpenAI-compatible.
  - name: models
    description: Model listing.
  - name: dedicated
    description: Dedicated endpoint discovery, status, and cancellation.
  - name: compute
    description: >-
      Dedicated compute: reserve whole GPU nodes by the month, manage SSH keys,
      give notice. Limited preview.
  - name: credits
    description: Agentic credit top-ups paid in USDC over x402.
  - name: account
    description: >-
      Usage and spend per day; billing settings: extra usage, spend limit and
      alert, auto-reload.
  - name: organization
    description: Organization member budgets.
  - name: telemetry
    description: Usage reporting hooks.
paths:
  /v1/audio/corrections:
    post:
      tags:
        - audio
      summary: Correct a transcript
      description: >-
        Tell Morph what a transcription or realtime turn should have said. The
        correction is kept with that request's audio and transcript and used to
        find and fix recognition errors. Send the whole corrected transcript,
        not a diff; send again as often as it changes, and the newest correction
        for a request is the one that counts. Not available to keys with zero
        data retention, since nothing is kept for them.
      operationId: createTranscriptionCorrection
      requestBody:
        required: true
        description: The request or turn, and what its transcript should have said.
        content:
          application/json:
            example:
              request_id: 78078d1a-75e4-4c87-904b-925eb943ab3a
              text: He hoped there would be stew for dinner.
            schema:
              $ref: '#/components/schemas/TranscriptionCorrectionRequest'
      responses:
        '200':
          description: The correction was stored.
          content:
            application/json:
              example:
                id: corr_2454dab71ec47f08b0cf1cf6
                object: transcription.correction
                created_at: 1796074557
                request_id: 78078d1a-75e4-4c87-904b-925eb943ab3a
              schema:
                $ref: '#/components/schemas/TranscriptionCorrection'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            The key has zero data retention, so no audio or transcripts are kept
            for it.
          content:
            application/json:
              example:
                error:
                  message: >-
                    This key has zero data retention, so Morph keeps no audio or
                    transcripts for it and cannot take corrections.
                  type: invalid_request_error
                  param: null
                  code: zero_data_retention
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - bearerAuth: []
components:
  schemas:
    TranscriptionCorrectionRequest:
      type: object
      properties:
        request_id:
          type: string
          description: >-
            The `x-request-id` header of the transcription to correct. Send this
            or `item_id`.
          example: 78078d1a-75e4-4c87-904b-925eb943ab3a
        item_id:
          type: string
          description: >-
            A realtime turn's `item_id`, from its
            `conversation.item.input_audio_transcription.completed` event. Send
            this or `request_id`.
          example: item_2033d174d01849c3ac234c22
        text:
          type: string
          description: >-
            The full transcript the request or turn should have returned. An
            empty string means nothing was said.
          example: He hoped there would be stew for dinner.
        note:
          type: string
          maxLength: 2000
          description: What went wrong, in your words. Up to 2,000 characters.
          example: Dropped the last three words.
      required:
        - text
      description: >-
        The transcript a request or realtime turn should have returned, named by
        exactly one of `request_id` or `item_id`.
    TranscriptionCorrection:
      type: object
      properties:
        id:
          type: string
          example: corr_2454dab71ec47f08b0cf1cf6
        object:
          type: string
          enum:
            - transcription.correction
          example: transcription.correction
        created_at:
          type: integer
          description: Unix seconds.
          example: 1796074557
        request_id:
          type: string
          example: 78078d1a-75e4-4c87-904b-925eb943ab3a
        item_id:
          type: string
          example: item_2033d174d01849c3ac234c22
      required:
        - id
        - object
        - created_at
      description: A stored correction.
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: invalid_request_error
              description: Machine-readable error code.
            message:
              type: string
              example: The request body is missing the `model` field.
              description: Human-readable explanation of the failure.
          required:
            - code
            - message
      required:
        - error
      description: Standard error envelope returned by every non-2xx response.
      example:
        error:
          code: invalid_request_error
          message: The request body is missing the `model` field.
  responses:
    BadRequest:
      description: Malformed request — missing or invalid fields.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_request_error
              message: The request body is missing the `model` field.
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unauthorized
              message: Invalid API key provided.
    RateLimited:
      description: Rate limited — retry after the interval in the Retry-After header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: rate_limited
              message: Too many requests. Retry in 12 seconds.
    InternalError:
      description: Internal error — safe to retry with backoff.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: internal_error
              message: Something went wrong on our side.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: >-
        Morph API key, passed as `Authorization: Bearer sk-...`. Create keys at
        https://www.morphllm.com/dashboard/api-keys.

````

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