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

# Use a tier

> Choose the tier a skill runs on, or go back to automatic.

Send `tier`: `1`, `2` or `3` to keep the skill on that tier, or `null` for automatic (the fastest tier that works). The answer is the skill's [speed](https://docs.valendata.com/api-reference/skills/speed.md).

* A tier must work before you can use it. A tier that is untested or failing answers `409`: [try it](https://docs.valendata.com/api-reference/skills/try-speed.md) first.
* A chosen tier never fails a run. If it stops answering, that run is answered by the next tier down.
* Only the skill's owner and its workspace can choose. Anyone else gets a `404`.


## OpenAPI

````yaml POST /v1/skills/{slug}/speed/use
openapi: 3.1.0
info:
  title: Valendata REST API
  version: 1.0.0
  description: >-
    Create, run, schedule, and improve skills and workflows over JSON and HTTPS.
    Every route is under `/v1`; changes inside v1 are additive only (new routes,
    new optional parameters, new response fields). A route that will go away is
    marked `deprecated` here and answers with `Deprecation`, `Sunset` and a
    `Link` to its replacement for at least six months before it is removed.
    Errors, limits, pagination and idempotency:
    https://docs.valendata.com/api-reference/errors.
  license:
    name: Proprietary
    url: https://www.valendata.com/terms-and-conditions
servers:
  - url: https://api.valendata.com
    description: Production
security:
  - ApiKeyAuth: []
  - ApiKeyHeader: []
tags:
  - name: Skills
    description: List, create, read, update, and delete skills.
  - name: Marketplace
    description: Find a skill by the task, with its price per run and track record.
  - name: Sites
    description: Which websites work on Valendata, and asking us to make one work.
  - name: Site APIs
    description: >-
      Your skills grouped by website: each site an API, each skill a named
      endpoint.
  - name: Runs
    description: Run skills and workflows, read any run, and cancel one.
  - name: Batches
    description: >-
      Run a skill over a list of inputs (up to 10,000), follow its progress, and
      get every row as JSON or CSV.
  - name: Skill versions
    description: List, compare, restore, and pin a skill's versions.
  - name: Improvements
    description: >-
      Fix a skill, add fields, or re-learn its detail steps, and read its change
      history.
  - name: Schedules
    description: Run a skill or workflow on a fixed cadence.
  - name: Workflows
    description: List, create, read, update, and delete workflows.
  - name: Logins
    description: Saved website logins a skill can sign in with.
  - name: Connected apps
    description: >-
      Your own accounts (Gmail, Calendar, Slack …): connect them, list their
      tools, and run one.
  - name: Follow-ups
    description: >-
      Wait for something to arrive (a code, a link, a file, a message) or check
      back later, and read what came.
  - name: Jobs
    description: >-
      What your agents started to run in the background (skill runs, workflow
      runs, research), what came back, and stopping it.
  - name: Notes
    description: >-
      The notes on your Notes page: list and search them, read one, write,
      change, and delete them.
  - name: Account and usage
    description: Your plan, credit balance, and usage.
  - name: Webhooks
    description: >-
      A workflow's inbound webhook URL, and the secret that signs run-finished
      deliveries.
paths:
  /v1/skills/{slug}/speed/use:
    post:
      tags:
        - Skills
      summary: Choose a tier
      description: >-
        Choose the tier the skill's runs use: `1`, `2` or `3`, or `null` for
        automatic (the fastest that works). A tier that fails still hands the
        run to the next one in the same run. A tier not proven for the skill
        (`untested`, `failing`, `repairing`, `not_available`) is refused with
        `409` — try it first. Answers with the skill's speed. The skill's owner
        or a workspace member. Needs `skills:write`.
      operationId: use_skill_speed
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
            title: Slug
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpeedUseRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillSpeedResponse'
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
            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'
            Idempotent-Replayed:
              $ref: '#/components/headers/Idempotent-Replayed'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - ApiKeyAuth: []
        - ApiKeyHeader: []
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      schema:
        type: string
        minLength: 1
        maxLength: 255
      description: >-
        Any unique string (such as your order id). Resending the same request
        with the same key within 24 hours returns the first answer (with
        `Idempotent-Replayed: true`) and does nothing twice; the same key with a
        different request is a 422 `idempotency_key_reused`.
      example: order-1234
  schemas:
    SpeedUseRequest:
      properties:
        tier:
          anyOf:
            - type: integer
              enum:
                - 1
                - 2
                - 3
            - type: 'null'
          title: Tier
          description: >-
            The tier its runs use: 1, 2 or 3; null = automatic (the fastest that
            works).
      type: object
      required:
        - tier
      title: SpeedUseRequest
    SkillSpeedResponse:
      properties:
        skill_id:
          type: string
          title: Skill Id
          description: The skill's id.
        slug:
          type: string
          title: Slug
          description: The skill's slug.
        current_tier:
          anyOf:
            - type: integer
              enum:
                - 1
                - 2
                - 3
            - type: 'null'
          title: Current Tier
          description: The tier its runs use now; null when it never ran.
        pinned_tier:
          anyOf:
            - type: integer
              enum:
                - 1
                - 2
                - 3
            - type: 'null'
          title: Pinned Tier
          description: >-
            The tier chosen with POST …/speed/use; null = automatic (the fastest
            that works).
        summary:
          type: string
          title: Summary
          description: 'One plain sentence: the tier it runs on and how its runs went.'
        seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Seconds
          description: >-
            About how long a run takes now, in seconds: the tier in use's runs'
            median, else the time the trial that moved it there measured; null
            when not measured yet.
        before_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Before Seconds
          description: >-
            The time it took before the latest trial moved it to the tier in use
            (the browser steps' measured time); null when no trial made it
            faster.
        success:
          $ref: '#/components/schemas/SpeedSuccess'
          description: How its last real runs went.
        last_worked_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Worked At
          description: When a real run last worked (ISO 8601, UTC).
        tiers:
          items:
            $ref: '#/components/schemas/SpeedTier'
          type: array
          title: Tiers
          description: Tier 1, 2 and 3, each with its status.
        trial:
          anyOf:
            - $ref: '#/components/schemas/SpeedTrial'
            - type: 'null'
          description: The latest speed trial; null when none was run.
        climbing:
          type: boolean
          title: Climbing
          description: >-
            The new skill is still looking for its fastest tier in the
            background (its climb: a trial of Tier 1, then Tier 2).
          default: false
        events:
          items:
            $ref: '#/components/schemas/SpeedEvent'
          type: array
          title: Events
          description: What happened, newest first (at most 30).
        page_read:
          anyOf:
            - $ref: '#/components/schemas/SpeedPageRead'
            - type: 'null'
          description: >-
            The page read's latest learning (technical); null when it never
            looked.
        backup:
          anyOf:
            - $ref: '#/components/schemas/SpeedBackup'
            - type: 'null'
          description: >-
            For a skill built on the site's own data: whether browser steps back
            up its fast read (technical); null for a skill whose browser steps
            are its main way.
      type: object
      required:
        - skill_id
        - slug
        - summary
      title: SkillSpeedResponse
    SpeedSuccess:
      properties:
        ok:
          type: integer
          title: Ok
          description: Runs that worked among the counted ones.
          default: 0
        total:
          type: integer
          title: Total
          description: Counted runs (its last 20 real runs; test runs never count).
          default: 0
      type: object
      title: SpeedSuccess
    SpeedTier:
      properties:
        tier:
          type: integer
          enum:
            - 1
            - 2
            - 3
          title: Tier
          description: 1 (about 1 second), 2 (a few seconds) or 3 (about a minute).
        label:
          type: string
          title: Label
          description: Tier 1, Tier 2 or Tier 3.
        time_label:
          type: string
          title: Time Label
          description: >-
            How long a run on this tier takes, in plain words: its runs' time
            ("usually 16 seconds") when it has runs, else the tier's promise
            ("about 1 second, when it works").
        status:
          type: string
          enum:
            - in_use
            - works
            - untested
            - failing
            - repairing
            - paused
            - not_available
            - not_found
            - blocked
            - not_proven
            - inconclusive
            - server_differs
          title: Status
          description: >-
            in_use (runs use it now), works (proven, not in use), untested (not
            tried yet), failing, repairing (being repaired in the background),
            paused (paused after failures; retried on its own — nothing is being
            repaired), not_available (this skill cannot use it) or not_found
            (tried, and no faster way to read the site was found yet — nothing
            broke; it may be tried again) or not_proven (tried, and the trial
            could not decide — a wall, our side, or no second search the site
            had; it may be tried again).
        status_label:
          type: string
          title: Status Label
          description: The status in plain words, for the badge.
        in_use:
          type: boolean
          title: In Use
          description: >-
            Runs use this tier now — true whatever its status (failing, being
            repaired): exactly one tier is in use once the skill has run.
          default: false
        why:
          anyOf:
            - type: string
            - type: 'null'
          title: Why
          description: >-
            Why, in plain words, when the tier is failing, repairing, not
            available or not tried yet.
        typical_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Typical Seconds
          description: Median time of its recent runs that worked.
        ok:
          type: integer
          title: Ok
          description: How many of its recent counted attempts worked.
          default: 0
        total:
          type: integer
          title: Total
          description: How many recent counted attempts it had.
          default: 0
        can_try:
          type: boolean
          title: Can Try
          description: A speed trial can be started for this tier (POST …/speed/try).
          default: false
        can_use:
          type: boolean
          title: Can Use
          description: This tier can be chosen with POST …/speed/use.
          default: false
        way:
          anyOf:
            - $ref: '#/components/schemas/SpeedWay'
            - type: 'null'
          description: The way behind it (technical; for the details fold).
      type: object
      required:
        - tier
        - label
        - time_label
        - status
        - status_label
      title: SpeedTier
    SpeedTrial:
      properties:
        id:
          type: string
          title: Id
          description: The trial's id (st_…).
        tier:
          type: integer
          enum:
            - 1
            - 2
            - 3
          title: Tier
          description: The tier the trial tries.
        status:
          type: string
          enum:
            - running
            - passed
            - failed
            - unproven
            - inconclusive
            - server_differs
          title: Status
          description: >-
            running, passed, failed, unproven (the trial could not decide either
            way), inconclusive (not enough proof yet — its message says what is
            missing) or server_differs (the site shows our server other content,
            e.g. another country).
        message:
          type: string
          title: Message
          description: What the trial is doing, or how it ended, in plain words.
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Started At
          description: When it started (ISO 8601, UTC).
        finished_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Finished At
          description: When it ended (ISO 8601, UTC); null while running.
        seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Seconds
          description: >-
            A passed trial: the faster way's measured time, in seconds; null
            when it was not measured.
        before_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Before Seconds
          description: >-
            A passed trial: the browser steps' time it was measured against, in
            seconds; null when not measured.
        skill:
          anyOf:
            - type: string
            - type: 'null'
          title: Skill
          description: The skill's slug.
        status_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Status Url
          description: 'Where to read this trial: GET /v1/skills/{slug}/speed/trials/{id}.'
        stopped:
          type: boolean
          title: Stopped
          description: It was stopped before it finished (an MCP tasks/cancel).
          default: false
      type: object
      required:
        - id
        - tier
        - status
        - message
      title: SpeedTrial
    SpeedEvent:
      properties:
        at:
          anyOf:
            - type: string
            - type: 'null'
          title: At
          description: When it happened (ISO 8601, UTC).
        kind:
          type: string
          enum:
            - created_on
            - moved_down
            - moved_up
            - switched
            - trial_passed
            - trial_failed
            - trial_unproven
            - trial_inconclusive
            - trial_server_differs
            - climb
            - repairing
            - repaired
            - not_repaired
          title: Kind
          description: >-
            created_on, moved_down, moved_up, switched, trial_passed,
            trial_failed, trial_unproven (the trial could not decide),
            trial_inconclusive (not enough proof yet), trial_server_differs (the
            site shows our server other content), climb (a step of the new
            skill's climb to its fastest tier: started, a tier skipped and why,
            stopped), repairing, repaired or not_repaired.
        tier:
          anyOf:
            - type: integer
              enum:
                - 1
                - 2
                - 3
            - type: 'null'
          title: Tier
          description: The tier it is about (the tier moved to, for a move).
        from_tier:
          anyOf:
            - type: integer
              enum:
                - 1
                - 2
                - 3
            - type: 'null'
          title: From Tier
          description: The tier it moved from, for a move.
        message:
          type: string
          title: Message
          description: What happened, in plain words.
        seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Seconds
          description: 'A passed trial: the faster way''s measured time, in seconds.'
        before_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Before Seconds
          description: >-
            A passed trial: the browser steps' time it was measured against, in
            seconds.
      type: object
      required:
        - kind
        - message
      title: SpeedEvent
    SpeedPageRead:
      properties:
        found:
          type: boolean
          title: Found
          description: A page read was found on its latest look.
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
          description: Why it was or was not found, in its own words (technical).
        at:
          anyOf:
            - type: string
            - type: 'null'
          title: At
          description: When it looked (ISO 8601, UTC).
      type: object
      required:
        - found
      title: SpeedPageRead
      description: >-
        The page read's latest learning: whether a way to read the site's page
        was found, and why not.
    SpeedBackup:
      properties:
        state:
          type: string
          enum:
            - none
            - unproven
            - proven
            - differs
            - broken
          title: State
          description: >-
            none (no browser steps under it: nothing to fall back on), unproven
            (browser steps under it, never compared with the site's own data —
            or changed since), proven (they gave the same results on the same
            search), differs (they gave other results: never used) or broken
            (they gave no results the last time they were checked).
        label:
          type: string
          title: Label
          description: The state in plain words.
        why:
          type: string
          title: Why
          description: Why, in plain words.
        checked_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Checked At
          description: >-
            When the comparison that decided it ran (ISO 8601, UTC); null when
            none decided it.
        via:
          anyOf:
            - type: string
            - type: 'null'
          title: Via
          description: >-
            What decided it: move (the comparison that moved the skill onto the
            site's data) or proof (a backup proof's two runs).
        last_try:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Last Try
          description: >-
            The latest check that could not decide ({at, reason}: a wall, a run
            that was not complete); null when none.
      type: object
      required:
        - state
        - label
        - why
      title: SpeedBackup
      description: >-
        A skill built on the site's own data: whether browser steps back up its
        fast read (technical).
    Error:
      type: object
      required:
        - detail
        - code
        - type
        - request_id
      properties:
        detail:
          description: What went wrong. A string, or an object for errors with more to say.
          oneOf:
            - type: string
            - additionalProperties: true
              type: object
        code:
          type: string
          description: >-
            Stable machine-readable code. Known values: `bad_request`,
            `invalid_json`, `invalid_cursor`, `invalid_idempotency_key`,
            `unauthorized`, `payment_required`, `permission_denied`,
            `not_found`, `method_not_allowed`, `conflict`, `app_not_connected`,
            `connection_required`, `connection_not_found`, `connection_expired`,
            `idempotency_key_in_use`, `idempotent_replay_unavailable`,
            `payload_too_large`, `unsupported_media_type`, `validation_error`,
            `idempotency_key_reused`, `rate_limited`, `internal_error`,
            `upstream_error`, `service_unavailable`, `cloud_browser_paused`,
            `extension_not_connected`.
          example: not_found
        type:
          type: string
          enum:
            - invalid_request_error
            - authentication_error
            - billing_error
            - permission_error
            - conflict_error
            - idempotency_error
            - rate_limit_error
            - api_error
          description: The broad category of the error.
        request_id:
          type: string
          description: Also in the `X-Request-ID` header.
          example: 3f9a1c2b7d4e
        param:
          type: string
          description: >-
            The field at fault, on validation errors (dotted path, e.g.
            `inputs.city`).
        errors:
          type: array
          items:
            additionalProperties: true
            type: object
          description: Every validation problem, on a 422 from request validation.
    SpeedWay:
      properties:
        kind:
          type: string
          title: Kind
          description: >-
            The way's stable name: open_api, feed, page_data, hidden_request,
            page_read, browser or other.
        label:
          type: string
          title: Label
          description: The way's name in plain words, e.g. Page data.
        where:
          anyOf:
            - type: string
            - type: 'null'
          title: Where
          description: >-
            Where it reads: none (our server, no browser), extension (your
            Chrome) or cloud (the cloud browser).
        where_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Where Label
          description: >-
            Where it reads, in plain words: no browser, your Chrome, the cloud
            browser — or several, e.g. your Chrome or the cloud browser.
        read_in:
          items:
            type: string
          type: array
          title: Read In
          description: >-
            Where its recent reads really happened (none, extension, cloud), the
            most used first; ``where`` is the first. Empty when none was
            recorded: ``where`` is then where it would read.
      type: object
      required:
        - kind
        - label
      title: SpeedWay
      description: The technical way behind a tier, for the details fold only.
  headers:
    X-Request-ID:
      description: >-
        This request's id (yours, if you sent a valid `X-Request-ID`). Quote it
        to support.
      schema:
        type: string
    X-RateLimit-Limit:
      description: Requests a minute this API key may make.
      schema:
        type: integer
    X-RateLimit-Remaining:
      description: Requests left in the current minute.
      schema:
        type: integer
    X-RateLimit-Reset:
      description: Unix time (seconds) the current window ends.
      schema:
        type: integer
    Idempotent-Replayed:
      description: >-
        `true` when this is the stored answer to an earlier request with the
        same Idempotency-Key.
      schema:
        type: string
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        type: integer
  responses:
    BadRequest:
      description: >-
        The request is malformed: the body is not JSON, the cursor or
        Idempotency-Key is not valid.
      headers:
        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-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            detail: >-
              The request is malformed: the body is not JSON, the cursor or
              Idempotency-Key is not valid.
            code: invalid_json
            type: invalid_request_error
            request_id: 3f9a1c2b7d4e
    Unauthorized:
      description: The API key is missing, malformed, revoked, or expired.
      headers:
        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-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            detail: The API key is missing, malformed, revoked, or expired.
            code: unauthorized
            type: authentication_error
            request_id: 3f9a1c2b7d4e
    Forbidden:
      description: >-
        The key lacks a scope, is limited to other skills or workflows, or you
        may not do this.
      headers:
        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-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            detail: >-
              The key lacks a scope, is limited to other skills or workflows, or
              you may not do this.
            code: permission_denied
            type: permission_error
            request_id: 3f9a1c2b7d4e
    NotFound:
      description: It does not exist, or it is not yours to see.
      headers:
        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-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            detail: It does not exist, or it is not yours to see.
            code: not_found
            type: invalid_request_error
            request_id: 3f9a1c2b7d4e
    Conflict:
      description: >-
        A conflict with the current state, a request with this Idempotency-Key
        is still running, or the cloud browser is unavailable
        (`cloud_browser_paused`: nothing ran or was charged; the message says
        why — the browser never changes by itself, so to run it on your own
        Chrome call again with browser_type extension), or you picked
        browser_type extension and your Chrome is not connected
        (`extension_not_connected`).
      headers:
        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-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            detail: >-
              A conflict with the current state, a request with this
              Idempotency-Key is still running, or the cloud browser is
              unavailable (`cloud_browser_paused`: nothing ran or was charged;
              the message says why — the browser never changes by itself, so to
              run it on your own Chrome call again with browser_type extension),
              or you picked browser_type extension and your Chrome is not
              connected (`extension_not_connected`).
            code: conflict
            type: conflict_error
            request_id: 3f9a1c2b7d4e
    Unprocessable:
      description: >-
        A field is invalid (`param` names it), or the Idempotency-Key was used
        with a different request.
      headers:
        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-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            detail: 'Invalid request — name: Field required'
            code: validation_error
            type: invalid_request_error
            request_id: 3f9a1c2b7d4e
            param: name
            errors:
              - type: missing
                loc:
                  - body
                  - name
                msg: Field required
    RateLimited:
      description: >-
        Too many requests for this key, or too many runs in progress. Wait
        `Retry-After` seconds.
      headers:
        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-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            detail: >-
              Too many requests for this key, or too many runs in progress. Wait
              `Retry-After` seconds.
            code: rate_limited
            type: rate_limit_error
            request_id: 3f9a1c2b7d4e
    InternalError:
      description: >-
        Something broke on our side. Retry; credits a run already used are not
        given back.
      headers:
        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-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            detail: >-
              Something broke on our side. Retry; credits a run already used are
              not given back.
            code: internal_error
            type: api_error
            request_id: 3f9a1c2b7d4e
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: vd_sk_...
      description: >-
        API key with the `vd_sk_` prefix, as `Authorization: Bearer vd_sk_...`.
        Create keys in Settings → API Keys.
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: The same API key in the `x-api-key` header.

````

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