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

# Car Pricing

> Estimate vehicle value from structured vehicle information.

[MCP tool](/guides/mcp): `carhub_pricing_vehicle`.

<p data-carhub-endpoint="pricing.vehicle">[See current public price](/guides/credits-and-plans).</p>

<div data-carhub-availability="pricing.vehicle" hidden>
<Note><span data-carhub-availability-text></span></Note>
</div>




## OpenAPI

````yaml openapi.yaml POST /v1/pricing/vehicle
openapi: 3.1.0
info:
  title: CarHub API
  version: 2026-11-15-contracts-2
  summary: Automotive inference endpoints with asynchronous jobs.
  description: >
    Submit inference requests with an organization API key. Media inputs use an
    ordered inputs array and endpoint options use params. Each result includes
    its recorded result_schema_version. Read GET /v1/endpoints for current
    availability and prices. See the inference conventions for geometry,
    analysis outcomes, retries, and per-input results.
  termsOfService: https://trycarhub.com/terms
  contact:
    name: CarHub API support
    url: https://docs.trycarhub.com
    email: api@trycarhub.com
  license:
    name: Proprietary
    identifier: LicenseRef-CarHub-Commercial
servers:
  - url: https://api.trycarhub.com
    description: Production (EU)
security:
  - ApiKeyAuth: []
tags:
  - name: Vehicle understanding
    description: Vehicle pose, identity, segmentation, and text extraction.
  - name: Damage and condition
    description: Damage detection, severity, tire inspection, and hotspots.
  - name: Parts
    description: Component recognition, segmentation, and decomposition.
  - name: Pricing
    description: Vehicle valuation and repair estimates.
  - name: Image production
    description: Image editing, backgrounds, plate artwork, spins, and video.
  - name: Jobs
    description: Asynchronous status, results, and history.
  - name: Uploads
    description: Reusable media inputs and storage management.
  - name: Outputs
    description: Generated files, current download access, and public sharing.
  - name: Assets
    description: Permanent artwork and custom backgrounds.
  - name: SDK licenses
    description: Signed SDK usage rights and public verification keys.
  - name: Catalog
    description: Endpoint availability, prices, and public plans.
externalDocs:
  description: CarHub developer documentation
  url: https://docs.trycarhub.com
paths:
  /v1/pricing/vehicle:
    post:
      tags:
        - Pricing
      summary: Car Pricing
      description: >
        Estimate vehicle value from structured vehicle information.


        [MCP tool](/guides/mcp): `carhub_pricing_vehicle`.


        <p data-carhub-endpoint="pricing.vehicle">[See current public
        price](/guides/credits-and-plans).</p>


        <div data-carhub-availability="pricing.vehicle" hidden>

        <Note><span data-carhub-availability-text></span></Note>

        </div>
      operationId: priceVehicle
      parameters:
        - $ref: '#/components/parameters/Wait'
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/TestScenario'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              additionalProperties:
                type: string
                format: binary
              required:
                - params
              properties:
                public_output:
                  $ref: '#/components/schemas/PublicOutput'
                inputs:
                  type: array
                  minItems: 0
                  maxItems: 1
                  items:
                    $ref: '#/components/schemas/MultipartMediaInput'
                params:
                  $ref: '#/components/schemas/PricingVehicleParams'
            encoding:
              inputs:
                contentType: application/json
              params:
                contentType: application/json
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - params
              properties:
                public_output:
                  $ref: '#/components/schemas/PublicOutput'
                inputs:
                  type: array
                  minItems: 0
                  maxItems: 1
                  items:
                    $ref: '#/components/schemas/MediaInput'
                params:
                  $ref: '#/components/schemas/PricingVehicleParams'
      responses:
        '200':
          description: Job completed synchronously (`wait=true`).
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PricingVehicleJob'
        '202':
          description: Job accepted.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PricingVehicleJob'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    Wait:
      name: wait
      in: query
      required: false
      description: >-
        Fast endpoints only. Returns `200` with the settled job within 30
        seconds, otherwise `202` while the job continues.
      schema:
        type: boolean
        default: false
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >-
        Submission key retained for 24 hours. The same key and payload replay
        the stored response. A different payload returns `409
        idempotency_key_reused`. Concurrent requests may return `409
        request_in_progress`.
      schema:
        type: string
        minLength: 1
        maxLength: 255
      examples:
        uuid:
          value: 8b1f1c2e-9d3a-4a51-9f0c-1c9a2f6d7b44
    TestScenario:
      name: X-Carhub-Test-Scenario
      in: header
      required: false
      description: >-
        Deterministic `chk_test_` scenario. Omit for the successful fixture.
        Values are `empty_result`, `low_confidence`, `model_error`, `slow`, and
        `insufficient_credits`. Known values without an endpoint fixture use the
        default result. Unknown values return `400 unknown_test_scenario`. Live
        and staging keys return `400 scenario_requires_test_key`. See
        /guides/test-mode.
      schema:
        type: string
        examples:
          - empty_result
          - low_confidence
          - model_error
          - slow
          - insufficient_credits
  schemas:
    PublicOutput:
      type: boolean
      default: false
      description: >-
        Keep the authenticated result indefinitely and publish all generated
        files until you unpublish the job. Available on real jobs.
    MultipartMediaInput:
      type: object
      additionalProperties: false
      required:
        - file
      properties:
        client_id:
          type: string
          minLength: 1
          maxLength: 128
        role:
          type: string
          maxLength: 64
        file:
          type: string
          minLength: 1
          maxLength: 128
    PricingVehicleParams:
      type: object
      required:
        - vehicle
        - country
      properties:
        vehicle:
          $ref: '#/components/schemas/PricingVehicleIdentity'
        condition_grade:
          type: string
          description: >-
            A-to-E grade. Omitted, inferred from photos and
            `repair_estimate_total`, if supplied.
          enum:
            - A
            - B
            - C
            - D
            - E
        repair_estimate_total:
          $ref: '#/components/schemas/NonnegativeMoney'
        price_book:
          type: string
          description: >-
            Repository to price against. Defaults to the book of your billing
            country.
          examples:
            - argus_fr
        currency:
          type: string
          pattern: ^[A-Z]{3}$
          description: >-
            Reporting currency. Defaults to the currency of the selected price
            book.
        country:
          type: string
          pattern: ^[A-Z]{2}$
          description: ISO 3166-1 alpha-2 valuation market.
        margin_pct:
          type: number
          description: >-
            Margin as a percentage of the final price. Final price = base / (1 -
            margin_pct / 100), rounded to the nearest minor unit with halves
            rounded up.
          minimum: 0
          exclusiveMaximum: 100
        include_comparables:
          type: boolean
          default: true
      additionalProperties: false
    MediaInput:
      type: object
      additionalProperties: false
      required:
        - ref
      properties:
        client_id:
          type: string
          minLength: 1
          maxLength: 128
        role:
          type: string
          maxLength: 64
        ref:
          $ref: '#/components/schemas/UploadRef'
    PricingVehicleJob:
      allOf:
        - $ref: '#/components/schemas/Job'
        - type: object
          properties:
            result:
              oneOf:
                - $ref: '#/components/schemas/PricingVehicleResult'
                - type: 'null'
    PricingVehicleIdentity:
      type: object
      description: Vehicle identity and mileage used for the valuation.
      properties:
        make:
          type: string
          minLength: 1
        model:
          type: string
          minLength: 1
        version:
          type: string
        year:
          type: integer
          minimum: 1886
        mileage_km:
          type: integer
          minimum: 0
        fuel:
          type: string
          enum:
            - petrol
            - diesel
            - hybrid
            - plug_in_hybrid
            - electric
            - lpg
            - other
        gearbox:
          type: string
          enum:
            - manual
            - automatic
        vin:
          type: string
        plate:
          type: string
      required:
        - make
        - model
        - year
        - mileage_km
      additionalProperties: false
    NonnegativeMoney:
      type: object
      title: Money
      description: A nonnegative integer amount in the minor unit of its ISO 4217 currency.
      required:
        - amount
        - currency
      properties:
        amount:
          type: integer
          examples:
            - 149900
          minimum: 0
        currency:
          type: string
          description: ISO 4217, uppercase.
          pattern: ^[A-Z]{3}$
          examples:
            - EUR
    UploadRef:
      type: string
      description: Reference returned by `POST /v1/uploads`.
      pattern: ^upl_[1-9A-HJ-NP-Za-km-z]{8,32}$
      examples:
        - upl_7Qm2hV9tXbLd
    Job:
      type: object
      title: Job
      description: >-
        Asynchronous job returned by submissions, `GET /v1/jobs/{id}`, and
        webhooks. `succeeded` or `partial` jobs may include results.
        `result_schema_version` identifies the result contract.
      required:
        - id
        - object
        - endpoint
        - status
        - livemode
        - is_staging
        - created
        - started_at
        - completed_at
        - model_version
        - credits
        - result
        - error
        - result_schema_version
      properties:
        is_staging:
          type: boolean
          default: false
          description: Requires live mode. Uses the organization's shared live credits.
        id:
          $ref: '#/components/schemas/JobIdString'
        object:
          type: string
          const: job
        endpoint:
          $ref: '#/components/schemas/EndpointSlug'
        status:
          $ref: '#/components/schemas/JobStatus'
        livemode:
          type: boolean
          description: '`false` for `chk_test_` jobs using fixture results and test credits.'
        public_output:
          type: boolean
          default: false
          description: >-
            Whether the job retains its result indefinitely and publishes its
            generated files.
        created:
          $ref: '#/components/schemas/Timestamp'
        started_at:
          description: When the job left the queue. Null while `queued`.
          oneOf:
            - $ref: '#/components/schemas/Timestamp'
            - type: 'null'
        completed_at:
          description: When the job settled. Null until then.
          oneOf:
            - $ref: '#/components/schemas/Timestamp'
            - type: 'null'
        model_version:
          type:
            - string
            - 'null'
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*@[0-9]{4}-[0-9]{2}-[0-9]{2}$
          description: >-
            CarHub endpoint name followed by @ and its release date in
            YYYY-MM-DD format. Null until a version is available for the job.
          examples:
            - image-customizer@2026-11-16
        credits:
          $ref: '#/components/schemas/JobCredits'
        result:
          description: >-
            Endpoint payload, null until results exist. The scheduled retention
            cleanup clears expired private results. Public jobs keep their
            results until unpublished. Media availability and URL expiry are
            separate. Shape follows the endpoint's `200` and `202` schemas.
          oneOf:
            - type: object
            - type: 'null'
        error:
          description: Populated when `status` is `failed` or `expired`, null otherwise.
          oneOf:
            - $ref: '#/components/schemas/JobError'
            - type: 'null'
        test_scenario:
          type: string
          description: >-
            `X-Carhub-Test-Scenario` used for this test job. Absent for live
            jobs and jobs without the header.
          examples:
            - low_confidence
        result_schema_version:
          type: integer
          enum:
            - 1
            - 2
          description: Public result schema revision recorded when the job was admitted.
    PricingVehicleResult:
      type: object
      title: pricing.vehicle result
      description: >-
        Three-channel valuation with adjustments and market observations.
        Amounts are integer minor units of `currency`.
      required:
        - currency
        - price_book
        - vehicle
        - valuation
        - adjustments
        - market
        - analysis
        - inputs
      properties:
        currency:
          type: string
          pattern: ^[A-Z]{3}$
          examples:
            - EUR
        price_book:
          $ref: '#/components/schemas/PriceBook'
        vehicle:
          $ref: '#/components/schemas/PricedVehicle'
        valuation:
          $ref: '#/components/schemas/Valuation'
        adjustments:
          type: array
          description: Signed market adjustments already included in valuation.base.
          items:
            $ref: '#/components/schemas/PriceAdjustment'
        market:
          $ref: '#/components/schemas/MarketContext'
        analysis:
          $ref: '#/components/schemas/Analysis'
        inputs:
          type: array
          items:
            $ref: '#/components/schemas/ResultInput'
    ErrorResponse:
      type: object
      title: Error response
      description: Error envelope for every non-2xx response.
      required:
        - error
      additionalProperties: false
      properties:
        error:
          $ref: '#/components/schemas/Error'
    JobIdString:
      type: string
      description: Job identifier, `job_` followed by a base58 string.
      pattern: ^job_[1-9A-HJ-NP-Za-km-z]{8,32}$
      examples:
        - job_3ZxK9pQr7TnW
    EndpointSlug:
      type: string
      description: Dotted endpoint identifier used in jobs and usage.
      enum:
        - vehicle.pose
        - vehicle.segment
        - vehicle.identify
        - vin.read
        - driver_license.read
        - plate.read
        - document.read
        - dashboard.read
        - engine.detect
        - damage.detect
        - damage.severity
        - tire.read
        - tire.detect
        - parts.recognize
        - parts.segment
        - parts.decompose
        - pricing.vehicle
        - pricing.repair
        - carhub.background
        - render.background
        - render.customize
        - render.enhance
        - render.plate
        - render.360
        - render.video
        - render.hotspots
    JobStatus:
      type: string
      description: >-
        `queued` then `processing`, then terminal `succeeded`, `partial`, or
        `failed`. `expired` means not started in time. `canceled` means canceled
        before starting. Both are terminal.
      enum:
        - queued
        - processing
        - succeeded
        - partial
        - failed
        - expired
        - canceled
    Timestamp:
      type: integer
      format: int64
      description: Epoch seconds, UTC.
      examples:
        - 1755300000
    JobCredits:
      type: object
      description: >-
        Job credits. 1,000 credits equal USD 1. `reserved` is held at admission.
        `charged` is the settled cost. Unused credits are released.
      required:
        - reserved
        - charged
      properties:
        extras:
          type: array
          description: >-
            Applied extras with prices fixed at admission. Empty when no extra
            applies.
          items:
            $ref: '#/components/schemas/AppliedExtra'
        reserved:
          type: integer
          minimum: 0
          examples:
            - 20
        charged:
          type:
            - integer
            - 'null'
          minimum: 0
          description: Null while the job is unsettled.
          examples:
            - 20
    JobError:
      type: object
      description: Why a job settled in `failed` or `expired`.
      required:
        - type
        - code
        - message
        - retryable
        - param
      properties:
        type:
          type: string
          enum:
            - processing_error
            - invalid_request
            - internal
        code:
          type: string
          examples:
            - model_inference_failed
            - unreadable_input
            - upstream_timeout
            - job_expired
        message:
          type: string
        retryable:
          type: boolean
        param:
          type:
            - string
            - 'null'
    PriceBook:
      type: object
      description: >-
        The repository the valuation was computed against, selected by country
        and DMS.
      required:
        - id
        - label
        - as_of
      properties:
        id:
          type: string
          examples:
            - argus_fr
        label:
          type: string
          examples:
            - Argus (France)
        as_of:
          type: string
          format: date
          description: Publication date of the price data used.
    PricedVehicle:
      type: object
      description: The vehicle as priced, echoed so a stored quote is self-contained.
      required:
        - make
        - model
        - version
        - year
        - mileage_km
        - fuel
        - gearbox
        - condition_grade
      properties:
        make:
          type: string
          examples:
            - Renault
        model:
          type: string
          examples:
            - Clio
        version:
          type:
            - string
            - 'null'
          examples:
            - V 1.0 TCe 90 Techno
        year:
          type:
            - integer
            - 'null'
          examples:
            - 2022
        mileage_km:
          type:
            - integer
            - 'null'
          minimum: 0
          examples:
            - 48200
        fuel:
          type:
            - string
            - 'null'
          enum:
            - petrol
            - diesel
            - hybrid
            - plug_in_hybrid
            - electric
            - lpg
            - other
            - null
        gearbox:
          type:
            - string
            - 'null'
          enum:
            - manual
            - automatic
            - null
        condition_grade:
          type:
            - string
            - 'null'
          description: >-
            A (as new) to E (trade only). Supplied or inferred from photos and
            any damage estimate.
          enum:
            - A
            - B
            - C
            - D
            - E
            - null
    Valuation:
      type: object
      description: Trade, retail forecourt, and private-sale values for the same vehicle.
      required:
        - trade_in
        - retail
        - private_sale
        - range_low
        - range_high
        - margin_applied_pct
        - confidence
        - base
      properties:
        trade_in:
          $ref: '#/components/schemas/NonnegativeMoney'
        retail:
          $ref: '#/components/schemas/NonnegativeMoney'
        private_sale:
          $ref: '#/components/schemas/NonnegativeMoney'
        range_low:
          allOf:
            - $ref: '#/components/schemas/NonnegativeMoney'
          description: Lower bound of the retail confidence interval.
        range_high:
          allOf:
            - $ref: '#/components/schemas/NonnegativeMoney'
          description: Upper bound of the retail confidence interval.
        margin_applied_pct:
          type:
            - number
            - 'null'
          description: >-
            Your configured margin, already included in `retail`. Null when none
            was set.
          examples:
            - 12.5
          minimum: 0
          exclusiveMaximum: 100
        confidence:
          $ref: '#/components/schemas/Confidence'
        base:
          $ref: '#/components/schemas/NonnegativeMoney'
          description: Base after market adjustments and before applying margin.
    PriceAdjustment:
      type: object
      required:
        - reason
        - label
        - amount
      properties:
        reason:
          type: string
          enum:
            - mileage
            - condition
            - damage
            - options
            - seasonality
            - region
            - colour
            - history
        label:
          type: string
          examples:
            - 12 200 km above the segment average
        amount:
          allOf:
            - $ref: '#/components/schemas/Money'
          description: Signed, negative amounts reduce the value.
    MarketContext:
      type: object
      description: What the valuation was calibrated on.
      required:
        - sample_size
        - days_to_sell_estimate
        - comparables
      properties:
        sample_size:
          type: integer
          minimum: 0
          description: Comparable listings observed in the reference window.
        days_to_sell_estimate:
          type:
            - integer
            - 'null'
          minimum: 0
        comparables:
          type: array
          description: A handful of the closest observed listings, for a defensible quote.
          items:
            $ref: '#/components/schemas/Comparable'
    Analysis:
      type: object
      additionalProperties: false
      required:
        - status
        - reason_codes
      properties:
        status:
          type: string
          enum:
            - analyzed
            - not_found
            - unreadable
            - ambiguous
            - unassessable
            - not_applicable
            - not_requested
        reason_codes:
          type: array
          uniqueItems: true
          items:
            type: string
            minLength: 1
    ResultInput:
      type: object
      additionalProperties: false
      required:
        - input_index
        - client_id
        - role
      properties:
        input_index:
          type: integer
          minimum: 0
        client_id:
          type:
            - string
            - 'null'
        role:
          type:
            - string
            - 'null'
        width:
          type: integer
          minimum: 1
        height:
          type: integer
          minimum: 1
    Error:
      type: object
      required:
        - type
        - code
        - message
        - param
        - doc_url
        - request_id
        - retryable
      properties:
        type:
          type: string
          description: Failure category for handling errors without matching codes.
          enum:
            - invalid_request
            - authentication
            - permission
            - rate_limit
            - insufficient_credits
            - not_found
            - conflict
            - processing_error
            - internal
        code:
          type: string
          description: >-
            Stable identifier within `type`. Handle unknown codes by their
            `type`.
          examples:
            - missing_input
            - invalid_api_key
            - rate_limit_exceeded
        message:
          type: string
          description: English log-safe message. Never localized or intended for end users.
        param:
          type:
            - string
            - 'null'
          description: Field or header responsible for the error, if known.
        doc_url:
          type: string
          format: uri
          description: Documentation page for this exact code.
          examples:
            - https://docs.trycarhub.com/errors/missing_input
        request_id:
          type: string
          description: Failing request identifier, also in `X-Request-Id`.
          examples:
            - req_2Kd8xQmPvL4T
        quota_bytes:
          type: integer
          description: Organization storage limit for `storage_quota_exceeded`.
        stored_bytes:
          type: integer
        reserved_bytes:
          type: integer
        available_bytes:
          type: integer
        requested_bytes:
          type: integer
        oldest_deletable_ref:
          type: string
        oldest_deletable_at:
          type: string
          format: date-time
        retryable:
          type: boolean
    AppliedExtra:
      type: object
      required:
        - code
        - label
        - price_minor
        - billing_unit
        - reserved_quantity
        - charged_quantity
      properties:
        code:
          type: string
        label:
          type: string
        price_minor:
          type: integer
          minimum: 0
        billing_unit:
          type: string
          enum:
            - request
            - image
        reserved_quantity:
          type: integer
          minimum: 0
        charged_quantity:
          type: integer
          minimum: 0
        requires_paid_organization:
          type: boolean
          default: false
    Confidence:
      type: number
      description: >-
        Observation confidence, 0 to 1. Scores are not calibrated across
        analyses.
      minimum: 0
      maximum: 1
      examples:
        - 0.94
    Money:
      type: object
      title: Money
      description: >-
        Signed integer in currency minor units. For EUR, `149900` is EUR
        1,499.00. Adjustments may be negative. Never a float.
      required:
        - amount
        - currency
      properties:
        amount:
          type: integer
          examples:
            - 149900
        currency:
          type: string
          description: ISO 4217, uppercase.
          pattern: ^[A-Z]{3}$
          examples:
            - EUR
    Comparable:
      type: object
      required:
        - source
        - title
        - price
        - year
        - mileage_km
        - distance_km
        - url
      properties:
        source:
          type: string
          examples:
            - lacentrale
        title:
          type: string
          examples:
            - Renault Clio V 1.0 TCe 90 Techno
        price:
          $ref: '#/components/schemas/NonnegativeMoney'
        year:
          type:
            - integer
            - 'null'
        mileage_km:
          type:
            - integer
            - 'null'
          minimum: 0
        distance_km:
          type:
            - integer
            - 'null'
          minimum: 0
          description: Distance from the organization's billing region.
        url:
          type:
            - string
            - 'null'
          format: uri
  headers:
    RequestId:
      description: Request identifier to include in support requests.
      schema:
        type: string
        examples:
          - req_2Kd8xQmPvL4T
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        minimum: 0
        examples:
          - 12
  responses:
    BadRequest:
      description: >-
        Invalid request or JSON, missing or oversized file, unknown parameter,
        or unsupported `wait=true`.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingInput:
              summary: No input supplied
              value:
                error:
                  type: invalid_request
                  code: missing_input
                  message: >-
                    Provide the required inputs array with uploaded references
                    or named multipart files.
                  param: inputs
                  doc_url: https://docs.trycarhub.com/errors/missing_input
                  request_id: req_2Kd8xQmPvL4T
                  retryable: false
            waitUnsupported:
              summary: wait=true on a long-running endpoint
              value:
                error:
                  type: invalid_request
                  code: wait_not_supported
                  message: >-
                    This endpoint is long-running; poll the job or use a webhook
                    instead.
                  param: wait
                  doc_url: https://docs.trycarhub.com/errors/wait_not_supported
                  request_id: req_2Kd8xQmPvL4T
                  retryable: false
    Unauthorized:
      description: Missing, malformed, revoked or expired credential.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            invalidKey:
              value:
                error:
                  type: authentication
                  code: invalid_api_key
                  message: The provided API key is invalid or has been revoked.
                  param: null
                  doc_url: https://docs.trycarhub.com/errors/invalid_api_key
                  request_id: req_2Kd8xQmPvL4T
                  retryable: false
    InsufficientCredits:
      description: >-
        Insufficient credits. No job created. Add live credits or recharge the
        test balance in dashboard Billing before retrying.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            emptyCreditBalances:
              value:
                error:
                  type: insufficient_credits
                  code: insufficient_credits
                  message: Credit balance is 3 credits; this call reserves 8.
                  param: null
                  doc_url: https://docs.trycarhub.com/errors/insufficient_credits
                  request_id: req_2Kd8xQmPvL4T
                  retryable: false
    Forbidden:
      description: >-
        Missing key permission or organization endpoint access, another
        organization's resource, or paid_organization_required when selected
        options require a non-trial plan or confirmed live payment. No job is
        created for paid_organization_required.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            outOfScope:
              value:
                error:
                  type: permission
                  code: scope_not_granted
                  message: This API key is not scoped for the `render` endpoint family.
                  param: null
                  doc_url: https://docs.trycarhub.com/errors/scope_not_granted
                  request_id: req_2Kd8xQmPvL4T
                  retryable: false
    NotFound:
      description: No such resource, or it is not visible to this credential.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            unknownJob:
              value:
                error:
                  type: not_found
                  code: resource_not_found
                  message: No job with id `job_3ZxK9pQr7TnW`.
                  param: id
                  doc_url: https://docs.trycarhub.com/errors/resource_not_found
                  request_id: req_2Kd8xQmPvL4T
                  retryable: false
    Conflict:
      description: >-
        Conflicting resource state, idempotency payload, or input reservation
        above the organization storage quota.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            idempotencyReuse:
              value:
                error:
                  type: conflict
                  code: idempotency_key_reused
                  message: >-
                    This Idempotency-Key was already used with a different
                    request body.
                  param: Idempotency-Key
                  doc_url: https://docs.trycarhub.com/errors/idempotency_key_reused
                  request_id: req_2Kd8xQmPvL4T
                  retryable: false
    RateLimited:
      description: Too many requests for this endpoint and plan. Back off and retry.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            tooFast:
              value:
                error:
                  type: rate_limit
                  code: rate_limit_exceeded
                  message: >-
                    Rate limit of 120 requests per minute exceeded for
                    `plate.read`.
                  param: null
                  doc_url: https://docs.trycarhub.com/errors/rate_limit_exceeded
                  request_id: req_2Kd8xQmPvL4T
                  retryable: true
    InternalError:
      description: >-
        Internal error. No charge. Retry with the same `Idempotency-Key`.
        Include `request_id` if the error persists.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            internal:
              value:
                error:
                  type: internal
                  code: internal_error
                  message: An unexpected error occurred.
                  param: null
                  doc_url: https://docs.trycarhub.com/errors/internal_error
                  request_id: req_2Kd8xQmPvL4T
                  retryable: true
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: CarHub API key
      description: >
        Send `Authorization: Bearer YOUR_API_KEY`.

        Use `chk_test_` for fixture results and test credits, `chk_stg_` for
        staging,

        and `chk_live_` for production. Production and staging share live
        credits.

        Keys require explicit operation permissions. Store secrets on your
        backend.

````

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