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

# Synchronous Transcription

> Transcribe up to 60 seconds of audio and get the transcript in the same response — no job to poll, no webhook.

Upload a short audio clip and get the transcript back in the response body, typically within one to two seconds. Built for voice notes, voice commands, voice input in chat and other short clips where polling a job would be slower than the transcription itself.

> [!NOTE]
>
> **Synchronous.** The transcript comes back in the response body. There is nothing to poll and no webhook. `request_id` identifies the call in your usage history and for support; the finished request can also be looked up later with `GET /api/v2/jobs/{request_id}` ([Job Results](https://docs.deapi.ai/api/v2/utilities/jobs.md)). The amount charged is returned in `price`.

> [!NOTE]
>
> **The model is `FluidSpeechPro`.** [GET /api/v2/models](https://docs.deapi.ai/api/v2/utilities/models.md) lists it with the inference type `audio_sync2text`. A model built for the asynchronous endpoint, such as `WhisperLargeV3Ct2`, is rejected with `422`.

### Sync or async

| | Synchronous (this endpoint) | [Asynchronous](https://docs.deapi.ai/api/v2/audio/transcriptions.md) |
| - | - | - |
| Result | In the response | Job to poll, or a webhook |
| Model | `FluidSpeechPro` | `WhisperLargeV3Ct2` |
| Source | File upload only | File upload or URL (YouTube, TikTok, Instagram, X, Twitch, Kick) |
| Length | Up to 60 seconds, 16 MiB | Long audio and video |
| Language | Detected automatically | Detected, or hinted with `lang` |
| Timestamps | `segment` and `word` | `segment` and `word` |
| Speaker labels | No | Yes (`diarize`) |

### Audio input

Send the clip as multipart `source_file`. The type is detected from the content, not the file name: AAC, MP3, M4A/MP4, OGG/Opus, WAV, WebM and FLAC are accepted, including browser voice recordings (WebM/Opus from Chrome, MP4/AAC from Safari). A video file is accepted too, and its audio track is transcribed.

A clip longer than 60 seconds is rejected with `422` and a message pointing at the asynchronous endpoint. Nothing is charged.

### Timestamps

Set `include_ts: true` to get a `segments` array next to the transcript. `ts_level` picks the granularity:

* **`segment`** (default) — one entry per sentence-like segment, each with `start`, `end` and `text`.
* **`word`** — one segment covering the whole clip, with per-word timing in `words`.

Timestamps do not change the price. `ts_level` is ignored when `include_ts` is not set.

### Example

```bash theme={null}
curl -X POST "https://api.deapi.ai/api/v2/audio/transcriptions/sync" \
  -H "Authorization: Bearer $DEAPI_API_KEY" \
  -H "Accept: application/json" \
  -F "model=FluidSpeechPro" \
  -F "source_file=@voice-note.m4a" \
  -F "include_ts=true"
```

```json theme={null}
{
  "data": {
    "request_id": "59ed02e3-3257-4f10-88ea-fc4281b7aa4a",
    "transcription": "All, all free men, wherever they may live, are citizens of Berlin. And therefore, as a free man, I take pride in the words Ich bin ein Berliner.",
    "duration": 22.999,
    "language": "en",
    "price": 0.0092,
    "ts_level": "segment",
    "segments": [
      { "start": 0.14, "end": 8.86, "text": "All, all free men, wherever they may live, are citizens of Berlin." },
      { "start": 10.06, "end": 19.1, "text": "And therefore, as a free man, I take pride in the words Ich bin ein Berliner." }
    ]
  }
}
```

`ts_level` and `segments` are present only when timestamps were requested.

**A clip with no speech returns an empty transcript, not an error.** Silence, music only or ambient noise answers `200` with `transcription: ""` and `language: null`, and the call is billed like any other. Branch on the empty string rather than treating it as a failure.

### Pricing

Billed per second of audio: **0.0004 USD per second** (0.024 USD per minute), with no per-request fee. A 10-second voice note costs 0.004 USD. You are charged only when the call answers `200`. To get a quote first, use [Synchronous Transcription Price Calculation](https://docs.deapi.ai/api/v2/audio/transcriptions-sync-price.md).

### Rate limits

| Account | RPM | RPD |
| - | - | - |
| Basic | 10 | 200 |
| Premium | 300 | No daily limit |

The counter is separate from the asynchronous transcription endpoint. Exceeding it returns `429`; see [Limits & Quotas](https://docs.deapi.ai/limits-and-quotas.md) for the response headers and how the windows reset.

### When the call cannot be served

The endpoint never queues. When it cannot transcribe right away it answers `503` and charges nothing. The `code` field says what to do:

| `code` | Meaning | What to do |
| - | - | - |
| `capacity` | Momentarily at capacity | Retry after the number of seconds in the `Retry-After` header |
| `sync_unavailable` | Synchronous transcription is temporarily unavailable | Send the clip to [POST /api/v2/audio/transcriptions](https://docs.deapi.ai/api/v2/audio/transcriptions.md) instead |

```json theme={null}
{
  "message": "Synchronous transcription is temporarily unavailable. Use /api/v2/audio/transcriptions.",
  "code": "sync_unavailable"
}
```

> [!TIP]
>
> Build the fallback in from the start: on `503` with `code: sync_unavailable`, submit the same file to the asynchronous endpoint with `WhisperLargeV3Ct2` and poll the job as usual.


## OpenAPI

````yaml openapi.json POST /api/v2/audio/transcriptions/sync
openapi: 3.1.0
info:
  title: deAPI REST API
  description: >-
    Decentralized AI inference API for image generation, video processing, audio
    transcription, and more.


    ## Rate limits


    Two windows can apply to a request: a per-minute one (RPM) and a per-day one
    (RPD). Every

    throttled response — success or 429 — carries the `X-RateLimit-*` headers,
    so you can pace

    traffic without waiting to be rejected. Each header documents itself: see
    `components/headers`,

    or the headers listed on any response. What follows is only what a header
    cannot say about

    itself.


    Windows open on your first request into a bucket and run their full length
    from that second —

    never to a calendar boundary, in any timezone. That is deliberate: a
    boundary every account

    shares is a boundary every account can double up on.


    **The headers describe the pool *this* request landed in, and
    `X-RateLimit-Source` is what

    identifies it — not `X-RateLimit-Limit` alone.** A per-model limit is keyed
    to the model you

    named, so a request that carried no recognised `model` — rejected at
    validation, an unknown

    slug, an empty body — was counted against your tier pool, and it is the tier
    pool the headers

    then describe. The two pools are fully independent: separate minute window,
    separate day,

    separate `X-RateLimit-Daily-Reset`. This is a consequence of rate limiting
    running *before*

    validation, which is what keeps malformed traffic from reaching the rest of
    the API

    uncounted. Compare headers only across responses carrying the same
    `X-RateLimit-Source`.


    **Buckets are shared in ways worth knowing.** API **v1 and v2 count against
    the same bucket**,

    so migrating grants no fresh allowance and mixed traffic behaves as one
    stream. All `*/price`

    and `*/price-calculation` endpoints share a single quote bucket, separate
    from generation.

    Prompt enhancement (`/v2/prompts/enhancements`) has its own bucket as well,
    so heavy prompt

    work no longer eats into your image throughput.


    **Counting is exact in sequence, best-effort in parallel.** Sent one after
    another, your

    requests are counted precisely: the one that crosses the limit is the one
    that gets 429. Sent

    in parallel, a few beyond the limit can slip through, because the counter is
    read and then

    incremented as two steps and requests already in flight are not yet visible
    to one another.

    The excess is bounded by how many of your own requests are in flight at
    once, and it only

    ever runs in your favour — you are never rejected while below your limit. So
    do not treat

    `X-RateLimit-Remaining` as a reservation: it is a snapshot, and a request
    you sent a

    millisecond ago may already have spent what it shows.


    **Not every 429 comes from the request rate.** Creating API keys has its own
    hourly bucket,

    and a key with an IP whitelist has one for calls from addresses it refuses.
    A 429 always

    describes the bucket that actually refused it — `X-RateLimit-Type` names
    that bucket, and

    every other `X-RateLimit-*` header on the response belongs to it. So back
    off on the headers

    you were sent, and do not carry figures from one 429 over to the next.


    **A call refused by a key's IP whitelist does not spend the account's
    request allowance.**

    It is counted against the address it came from instead, on a much tighter
    window — so a

    whitelist cannot be turned against the owner it protects, and being refused
    still does not

    come free.


    Requests rejected before authentication (HTTP 401) never reach the limiter
    and carry no

    rate-limit headers at all.
  contact:
    name: deAPI Support
    url: https://deapi.ai
    email: support@deapi.ai
  version: 0.0.1
servers:
  - url: https://api.deapi.ai
    description: Production API Server base URL
security:
  - bearerAuth: []
tags:
  - name: Client API v2
    description: Current client endpoints (OpenAI-aligned noun-based paths)
paths:
  /api/v2/audio/transcriptions/sync:
    post:
      tags:
        - Client API v2
      summary: Transcribe short audio synchronously
      description: >-
        Transcribe up to 60 seconds of audio and get the transcript in the same
        response, typically within one to two seconds. There is no job to poll
        and no webhook. Built for voice notes, voice commands and other short
        clips. Model: `FluidSpeechPro` (synchronous models are not listed by GET
        /api/v2/models). Only a file upload is accepted: for URLs, longer audio,
        diarization or a forced language use POST /api/v2/audio/transcriptions.
        A call that fails on our side is never charged. When synchronous
        capacity is unavailable the call answers 503 instead of queueing: retry
        shortly (`code: capacity`, with `Retry-After`) or fall back to the
        asynchronous endpoint (`code: sync_unavailable`).
      operationId: createSyncTranscription
      parameters:
        - $ref: '#/components/parameters/AcceptHeader'
      requestBody:
        description: The audio file and options.
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SyncTranscribeRequestBody'
      responses:
        '200':
          description: The transcript.
          headers:
            X-RateLimit-Policy:
              $ref: '#/components/headers/X-RateLimit-Policy'
            X-RateLimit-Source:
              $ref: '#/components/headers/X-RateLimit-Source'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            X-RateLimit-Daily-Limit:
              $ref: '#/components/headers/X-RateLimit-Daily-Limit'
            X-RateLimit-Daily-Remaining:
              $ref: '#/components/headers/X-RateLimit-Daily-Remaining'
            X-RateLimit-Daily-Reset:
              $ref: '#/components/headers/X-RateLimit-Daily-Reset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SyncTranscriptionResponse'
        '401':
          description: Unauthorized user.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/response_error_default'
        '402':
          $ref: '#/components/responses/KeyLimitExceeded'
        '403':
          $ref: '#/components/responses/AccountSuspended'
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
        '503':
          description: >-
            Synchronous transcription cannot serve the call right now. Not
            charged. `code: capacity`: retry after the `Retry-After` seconds.
            `code: sync_unavailable`: use POST /api/v2/audio/transcriptions.
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying. Sent with `code: capacity`
                only.
              schema:
                type: integer
                example: 1
          content:
            application/json:
              schema:
                required:
                  - message
                  - code
                properties:
                  message:
                    type: string
                    example: >-
                      Synchronous transcription is at capacity. Retry shortly or
                      use /api/v2/audio/transcriptions.
                  code:
                    type: string
                    example: capacity
                    enum:
                      - capacity
                      - sync_unavailable
                type: object
      security:
        - bearerAuth: []
components:
  parameters:
    AcceptHeader:
      name: Accept
      in: header
      required: true
      schema:
        type: string
        default: application/json
        enum:
          - application/json
  schemas:
    SyncTranscribeRequestBody:
      required:
        - model
        - source_file
      properties:
        model:
          description: >-
            The synchronous transcription model: use `FluidSpeechPro`.
            Synchronous models are not listed by GET /api/v2/models, so the slug
            is given here. A model built for the asynchronous endpoint is
            refused with a 422.
          type: string
          example: FluidSpeechPro
        source_file:
          description: >-
            The audio to transcribe: up to 60 seconds and 16 MiB. The type is
            detected from the content, not the file name: AAC, MP3, M4A/MP4,
            OGG/Opus, WAV, WebM and FLAC are accepted, including browser voice
            recordings (WebM/Opus from Chrome, MP4/AAC from Safari). A video
            file is accepted too, and its audio track is transcribed. Longer or
            larger audio is refused with a 422 that points at POST
            /api/v2/audio/transcriptions.
          type: string
          format: binary
        include_ts:
          description: >-
            Return timestamps in `segments`. Same name and meaning as on POST
            /api/v2/audio/transcriptions.
          type:
            - boolean
            - 'null'
          example: false
          default: false
        ts_level:
          description: >-
            Timestamp granularity when `include_ts` is true: `segment` (one
            entry per sentence-like segment) or `word` (one segment covering the
            whole audio, with per-word timing in `words`). Ignored without
            `include_ts`.
          type:
            - string
            - 'null'
          example: segment
          default: segment
          enum:
            - segment
            - word
            - null
      type: object
    SyncTranscriptionResponse:
      required:
        - data
      properties:
        data:
          required:
            - request_id
            - transcription
            - duration
            - language
            - price
          properties:
            request_id:
              description: >-
                Unique id of this request. It appears in your usage history;
                quote it when contacting support.
              type: string
              format: uuid
              example: 5558e657-baa6-44f6-946c-e44578ffe9e1
            transcription:
              description: >-
                The full transcript. An empty string when the audio carries no
                recognisable speech.
              type: string
              example: >-
                And so, my fellow Americans, ask not what your country can do
                for you, ask what you can do for your country.
            duration:
              description: Audio length in seconds, as measured by deAPI.
              type: number
              format: float
              example: 11
            language:
              description: >-
                Detected language code, e.g. `en`. The language is detected
                automatically and cannot be set. Null when it could not be
                determined.
              type:
                - string
                - 'null'
              example: en
            price:
              description: >-
                What this call cost, in USD. Charged only when the call answers
                200.
              type: number
              format: float
              example: 0.0044
            ts_level:
              description: Present only when timestamps were requested.
              type: string
              example: segment
              enum:
                - segment
                - word
            segments:
              description: Present only when timestamps were requested.
              type: array
              items:
                $ref: '#/components/schemas/SyncTranscriptionSegment'
          type: object
      type: object
    response_error_default:
      description: >-
        An error response. `message` is always present; `errors` only on a
        validation error (422); `code` only where a response publishes one.
        There is no status code in the body — read it from the HTTP response.
      properties:
        message:
          description: >-
            Error general message. On a validation error it is the first
            message, followed by `(and N more errors)` when there are more.
          type: string
        errors:
          description: >-
            Validation errors (422 only): a map of field name → list of
            messages. An object, not an array. Nested fields use dot notation
            (`urls.0`).
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        code:
          description: >-
            A stable, machine-readable reason, on the responses that publish
            one. Refused credentials (401): `missing_key` — no Bearer
            credentials arrived at all; `invalid_key` — a key was presented but
            is unknown, carries the wrong secret, or is malformed; `key_expired`
            — past its expiry date; `key_revoked` — deactivated. Refused
            requests: `insufficient_permissions` (403), `ip_not_allowed` (403),
            `active_key_limit_reached` (422), `insufficient_balance` (422),
            `key_limit_exceeded` (402), `rate_limited` (429). Web endpoints:
            `content_rejected` (422), `concurrency_limited` (429). Absent
            wherever a response publishes no code, so treat an unknown value as
            the status code alone — the list grows.
          type: string
          enum:
            - missing_key
            - invalid_key
            - key_expired
            - key_revoked
            - insufficient_permissions
            - ip_not_allowed
            - active_key_limit_reached
            - insufficient_balance
            - key_limit_exceeded
            - rate_limited
            - content_rejected
            - concurrency_limited
      type: object
    SyncTranscriptionSegment:
      required:
        - start
        - end
        - text
      properties:
        start:
          description: Start, in seconds from the beginning of the audio.
          type: number
          format: float
          example: 0
        end:
          description: End, in seconds from the beginning of the audio.
          type: number
          format: float
          example: 4.12
        text:
          description: What was said in this segment.
          type: string
          example: And so, my fellow Americans,
        words:
          description: 'Per-word timing. Present only with `ts_level: word`.'
          type: array
          items:
            required:
              - word
              - start
              - end
            properties:
              word:
                type: string
                example: Americans,
              start:
                type: number
                format: float
                example: 2.9
              end:
                type: number
                format: float
                example: 3.6
            type: object
      type: object
    response_error_rate_limit:
      description: Rate limit exceeded response
      properties:
        message:
          description: Error message
          type: string
          example: Too Many Attempts.
      type: object
  headers:
    X-RateLimit-Policy:
      description: >-
        Every window that applies, as `<limit>;w=<seconds>` elements. Always
        present on a throttled response, so a single element means there is no
        daily limit — do not infer that from the absence of the Daily-* headers.
        `300;w=60` is minute-only; `3;w=60, 100;w=86400` is both.
      schema:
        type: string
        example: 3;w=60, 100;w=86400
    X-RateLimit-Source:
      description: >-
        Where the limit came from, so you know what would change it:

        `tier` — your account tier's rate for this endpoint;

        `fallback` — no rate configured for this tier and endpoint, degraded
        default in force;

        `model` — a per-model override for the model in the request, unaffected
        by your tier

        (only when the request carried a recognised `model`, otherwise the tier
        pool applies);

        `static` — a flat limit outside the tier system, identical for every
        account.


        If you ever see `fallback`, tell us: it means no rate is configured for
        that tier and endpoint.
      schema:
        type: string
        example: tier
        enum:
          - tier
          - fallback
          - model
          - static
    X-RateLimit-Limit:
      description: >-
        Maximum requests allowed per minute (RPM) — including on a `daily`
        rejection, where the day is reported by the Daily-* pair beside it. On a
        429 whose `X-RateLimit-Type` names a bucket outside the request rate
        (`key-creation`, `ip-not-allowed`) it is that bucket's allowance
        instead, over the window `X-RateLimit-Policy` gives.
      schema:
        type: integer
        example: 3
    X-RateLimit-Remaining:
      description: >-
        Requests left in the window `X-RateLimit-Limit` describes — so on a
        `daily` rejection it is the minute window and can still be non-zero;
        `X-RateLimit-Daily-Remaining` is the one at 0 there.
      schema:
        type: integer
        example: 2
    X-RateLimit-Reset:
      description: >-
        Epoch second at which the window described by `X-RateLimit-Limit`
        refills — the minute (RPM) one unless `X-RateLimit-Type` names another
        bucket. Fixed window: the value does not drift as you spend the quota.
        Describes the same window as X-RateLimit-Limit, including on a daily
        rejection.
      schema:
        type: integer
        example: 1755800460
    X-RateLimit-Daily-Limit:
      description: Maximum requests allowed per day (RPD)
      schema:
        type: integer
        example: 100
    X-RateLimit-Daily-Remaining:
      description: Remaining requests in current day window
      schema:
        type: integer
        example: 95
    X-RateLimit-Daily-Reset:
      description: >-
        Epoch second at which the daily (RPD) window refills — 86400 s after the
        first request that opened this bucket's window, not a calendar midnight.
        Present only when a daily limit applies.
      schema:
        type: integer
        example: 1755846000
    X-RateLimit-Type:
      description: >-
        Which limit rejected the request. Sent only on 429. Read it before
        anything else

        on the response: it decides what the other `X-RateLimit-*` headers are
        counting.


        `minute` — the per-request RPM window.
        `X-RateLimit-Limit`/`-Remaining`/`-Reset`

        describe it, and the Daily-* pair describes the day next to it when one
        applies.


        `daily` — the per-request RPD window. The Daily-* pair is the one at 0;
        the

        unprefixed trio keeps describing the minute window, so it can be
        non-zero.


        `key-creation` — the hourly cap on keys created over the API (`POST
        /v2/keys`),

        per account and shared by its ADMIN keys, counted separately from the
        request

        rate. The whole `X-RateLimit-*` set describes that bucket and there are
        no

        Daily-* headers, so `Retry-After` can be an hour while your request rate
        is

        barely touched. That is not a contradiction — it is a different bucket.


        `ip-not-allowed` — too many calls from an address your key's IP
        whitelist

        refuses. Counted against that address, never against your account: a
        call from a

        blocked address does not spend your request allowance, which is why it
        cannot be

        used to exhaust it. Fix the whitelist or call from a listed address.


        The buckets are independent, so do not compare figures across responses
        that

        report different types — and do not assume the minute window when a 429
        names

        another one, or you will retry straight into the same refusal.
      schema:
        type: string
        example: minute
        enum:
          - minute
          - daily
          - key-creation
          - ip-not-allowed
    Retry-After:
      description: >-
        Seconds until the window that rejected you frees up — the one
        `X-RateLimit-Type` names (up to 60 for minute, 3600 for key-creation,
        86400 for daily). Counted from when that window opened, not to a
        calendar boundary. Sent only on 429.
      schema:
        type: integer
        example: 60
  responses:
    KeyLimitExceeded:
      description: >-
        The API key sending the request has no room left under its own spend
        limit (`limit` / `reset_interval` on the key). Nothing was created and
        nothing was charged — the request is refused before the job exists.
        `resets_at` is when the window starts over and work flows again; it is
        null for a limit that never resets (`reset_interval: none`), and the way
        through then is to raise or remove the limit on the key. The key itself
        stays active — an exhausted limit refuses work, it does not deactivate
        anything, and the account's other keys are unaffected.


        DO NOT confuse `key_limit_exceeded` with `active_key_limit_reached`.
        This one is about MONEY: one key, one window, one ceiling in USD, and it
        is a 402 on the endpoints that spend. `active_key_limit_reached` is
        about the NUMBER of keys an account may keep active at once, and it is a
        422 on POST /v2/keys and PATCH /v2/keys/{id}. They share no field and no
        remedy.


        `limit_used` here and the totals from GET /keys/{id}/usage are different
        questions and will not agree: usage sums what the key spent over the
        period you ask for, this counts what went through the ceiling since the
        current window opened, nothing is counted while a key has no limit, and
        a post-paid request counts at its estimate until the provider reports
        its real cost.
      content:
        application/json:
          schema:
            properties:
              message:
                type: string
                example: >-
                  This API key has reached its spend limit of $100.00. It resets
                  on 2026-10-22T10:00:00+00:00.
              code:
                type: string
                example: key_limit_exceeded
                enum:
                  - key_limit_exceeded
              limit:
                description: The key's ceiling for the window, in USD.
                type: number
                format: float
                example: 100
              used:
                description: Spent against it in the window running now.
                type: number
                format: float
                example: 99.5
              remaining:
                description: What is left of it. Never negative.
                type: number
                format: float
                example: 0.5
              resets_at:
                description: >-
                  When the window starts over. Null for a limit that never
                  resets.
                type:
                  - string
                  - 'null'
                format: date-time
                example: '2026-10-22T10:00:00+00:00'
            type: object
    AccountSuspended:
      description: >-
        The account is suspended. Applies to every endpoint that spends credits
        — generation, transcription and prompt enhancement — and is returned
        before any validation runs, so a suspended account sees this rather than
        a 422 about the body. Price-estimate endpoints are not gated and keep
        working.
      content:
        application/json:
          schema:
            properties:
              message:
                description: >-
                  Human-readable explanation. No `errors` object accompanies
                  this response.
                type: string
                example: >-
                  Client account is suspended. If you believe this is a mistake,
                  contact us.
            type: object
    ValidationError:
      description: >-
        Validation failed. Common errors include: model does not exist, model
        does not support the inference type for this endpoint, the model is not
        available on your plan (it requires a higher tier than your account has
        — upgrade to use it), or invalid request parameters.


        An account without the funds for the request is refused here too,
        reported on the `balance` field and carrying `code:
        insufficient_balance`. It is the one validation failure worth branching
        on: nothing about the request is wrong, so retrying it unchanged
        succeeds once the account is topped up. The code is present only when
        `balance` is the sole failure — a request that is also malformed is not
        a money problem.
      content:
        application/json:
          schema:
            properties:
              message:
                description: General error message
                type: string
                example: The selected model does not support Text To Image.
              code:
                description: >-
                  Only on a refusal for want of funds: `insufficient_balance`.
                  Absent on every other validation failure.
                type: string
                example: insufficient_balance
                enum:
                  - insufficient_balance
              errors:
                description: >-
                  Detailed validation errors by field. A model your plan does
                  not cover is reported on the "model" field with the message
                  "This model is not available on your plan. Please upgrade to
                  access it." Such a model is also omitted from GET /models.
                type: object
                example:
                  model:
                    - >-
                      This model is not available on your plan. Please upgrade
                      to access it.
            type: object
    RateLimitExceeded:
      description: >-
        Rate limit exceeded. `X-RateLimit-Type` says which bucket refused you
        and which bucket the other `X-RateLimit-*` headers describe: the minute
        (RPM) or daily (RPD) request window, or — on a key carrying an IP
        whitelist — `ip-not-allowed`, the separate allowance for calls from an
        address the list refuses. That last one is counted against the calling
        address rather than the account, so being refused from a blocked address
        never spends the owner's request allowance.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Daily-Limit:
          $ref: '#/components/headers/X-RateLimit-Daily-Limit'
        X-RateLimit-Daily-Remaining:
          $ref: '#/components/headers/X-RateLimit-Daily-Remaining'
        X-RateLimit-Type:
          $ref: '#/components/headers/X-RateLimit-Type'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Daily-Reset:
          $ref: '#/components/headers/X-RateLimit-Daily-Reset'
        X-RateLimit-Source:
          $ref: '#/components/headers/X-RateLimit-Source'
        X-RateLimit-Policy:
          $ref: '#/components/headers/X-RateLimit-Policy'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/response_error_rate_limit'
  securitySchemes:
    bearerAuth:
      type: http
      description: >-
        Sanctum personal access token, sent as `Authorization: Bearer <token>`.
        The token is opaque — it carries no claims and no embedded expiry, so do
        not attempt to decode it. Issue and revoke tokens from your account
        dashboard.
      scheme: bearer

````

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