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

# Validate model connection

> Validate model connection



## OpenAPI

````yaml post /api/v1/admin/models/validate-connection
openapi: 3.1.0
info:
  title: PaperJet API
  description: Secure document extraction API
  version: 1.0.0
servers:
  - url: https://app.getpaperjet.com
    description: Production Server
security:
  - apiKeyAuth: []
paths:
  /api/v1/admin/models/validate-connection:
    post:
      description: Validate model connection
      operationId: postApiV1AdminModelsValidate-connection
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                provider:
                  type: string
                  enum:
                    - google
                    - openai
                    - openrouter
                    - custom
                providerApiKey:
                  type: string
                  minLength: 1
                modelName:
                  type: string
                  minLength: 1
                displayName:
                  type: string
                baseUrl:
                  type: string
                isCore:
                  type: boolean
                isVision:
                  type: boolean
              required:
                - provider
                - providerApiKey
                - modelName
                - isCore
                - isVision
      responses:
        '200':
          description: Validation result
          content:
            application/json:
              schema:
                type: object
                properties:
                  isValid:
                    type: boolean
                  error:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - isValid
                  - error
        '500':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````