> ## 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.

# Image Customizer

> Edit one vehicle photo using `prompt`. Return one PNG in `result.image`.

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

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

<Note>
<span data-carhub-availability="render.customize" hidden></span>Accepts one JPEG, PNG, or WebP up to 20 MiB and 40 megapixels, with a prompt of up to 4,000 characters. `wait=true` is unsupported.
</Note>




## OpenAPI

````yaml openapi.yaml POST /v1/render/customize
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/render/customize:
    post:
      tags:
        - Image production
      summary: Image Customizer
      description: >
        Edit one vehicle photo using `prompt`. Return one PNG in `result.image`.


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


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


        <Note>

        <span data-carhub-availability="render.customize" hidden></span>Accepts
        one JPEG, PNG, or WebP up to 20 MiB and 40 megapixels, with a prompt of
        up to 4,000 characters. `wait=true` is unsupported.

        </Note>
      operationId: renderCustomize
      parameters:
        - $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
                - inputs
              properties:
                public_output:
                  $ref: '#/components/schemas/PublicOutput'
                inputs:
                  type: array
                  minItems: 1
                  maxItems: 1
                  items:
                    $ref: '#/components/schemas/MultipartMediaInput'
                params:
                  $ref: '#/components/schemas/RenderCustomizeParams'
            encoding:
              inputs:
                contentType: application/json
              params:
                contentType: application/json
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - params
                - inputs
              properties:
                public_output:
                  $ref: '#/components/schemas/PublicOutput'
                inputs:
                  type: array
                  minItems: 1
                  maxItems: 1
                  items:
                    $ref: '#/components/schemas/MediaInput'
                params:
                  $ref: '#/components/schemas/RenderCustomizeParams'
            example:
              inputs:
                - ref: upl_7Qm2hV9tXbLd
              params:
                prompt: Wash the car. Keep its current paint color and equipment.
      responses:
        '200':
          description: Existing job returned by an idempotent replay.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RenderCustomizeJob'
        '202':
          description: Job accepted.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RenderCustomizeJob'
        '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:
    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
    RenderCustomizeParams:
      type: object
      additionalProperties: false
      required:
        - prompt
      properties:
        prompt:
          $ref: '#/components/schemas/CustomizePrompt'
    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'
    RenderCustomizeJob:
      allOf:
        - $ref: '#/components/schemas/Job'
        - type: object
          properties:
            result:
              oneOf:
                - $ref: '#/components/schemas/RenderCustomizeResult'
                - type: 'null'
    CustomizePrompt:
      type: string
      minLength: 1
      maxLength: 4000
      pattern: \S
      x-multiline: true
      description: >-
        Describe the final photograph you want. Only explicitly requested
        modifications should affect the vehicle.
      examples:
        - >-
          Wash the car. Keep its current paint color, wheels, equipment, and
          background.
        - >-
          Change the paint color to metallic blue while preserving the wheels,
          trim, and vehicle condition.
        - >-
          Place the car in a modern outdoor dealership courtyard with coherent
          daylight and reflections.
    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.
    RenderCustomizeResult:
      type: object
      additionalProperties: false
      required:
        - image
        - analysis
        - inputs
      properties:
        image:
          allOf:
            - $ref: '#/components/schemas/RenderedAsset'
            - type: object
              required:
                - url
                - expires_at
                - format
                - width
                - height
                - bytes
              properties:
                format:
                  type: string
                  enum:
                    - png
                width:
                  type: integer
                  minimum: 1
                height:
                  type: integer
                  minimum: 1
                bytes:
                  type: integer
                  minimum: 1
        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'
    RenderedAsset:
      type: object
      title: Rendered asset
      description: >-
        Generated file. Private URLs expire and files follow organization
        retention. Public output URLs have no expiry and remain available until
        unpublished.
      required:
        - url
        - expires_at
        - format
      properties:
        url:
          type: string
          format: uri
        expires_at:
          description: >-
            Signed URL expiration in Unix seconds, or null for a public output
            URL.
          oneOf:
            - $ref: '#/components/schemas/Timestamp'
            - type: 'null'
        format:
          type: string
          enum:
            - jpg
            - png
            - webp
            - mp4
            - webm
        width:
          type:
            - integer
            - 'null'
          minimum: 1
        height:
          type:
            - integer
            - 'null'
          minimum: 1
        bytes:
          type:
            - integer
            - 'null'
          minimum: 0
    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
  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.