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

# Upload a new Model Version Config

> Create a new Model Version Config to be evaluated.



## OpenAPI

````yaml POST /v2/model_version_configs
openapi: 3.1.0
info:
  title: GenAI API Spec
  description: 'Data Engine: Generative AI API Specification'
  version: 0.0.1
servers:
  - url: https://api.scale.com
security:
  - bearerAuth: []
  - basicAuth: []
paths:
  /v2/model_version_configs:
    post:
      summary: Upload a new Model Version Config
      description: Create a new Model Version Config to be evaluated.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - modelId
                - name
              properties:
                name:
                  type: string
                  description: Human-readable name for the model version config.
                url:
                  type: string
                  description: Model endpoint url.
                params:
                  type: object
                  additionalProperties: true
                  description: Configuration parameters for the model.
                maxConcurrentRequests:
                  type: number
                maxCompletionTimeSecs:
                  type: number
      responses:
        '200':
          description: Model version config successfully created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelVersionConfig'
        '400':
          description: Invalid input data.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status_code:
                    type: number
                    example: 500
                  error:
                    type: string
                    example: Invalid input data.
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status_code:
                    type: number
                    example: 500
                  error:
                    type: string
                    example: Internal server error.
components:
  schemas:
    ModelVersionConfig:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the Model Version Config.
        name:
          type: string
          description: Human-readable name for the Model Version Config.
        url:
          type: string
          description: Model endpoint URL.
        params:
          type: object
          additionalProperties: true
          description: Configuration parameters for the model.
        customerId:
          type: string
          description: Owner of the Model Version Config.
        modelEndpoint:
          type: string
          description: ID of the parent Model Endpoint.
        status:
          type: string
          enum:
            - active
            - errored
            - archived
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      description: >-
        Your API Key is the Bearer token. See the
        [Authentication](/get-started/authentication) section to learn how to
        access your key.
      type: http
      scheme: bearer
    basicAuth:
      description: >-
        Basic HTTP Authentication. Your API Key is your username.  Learn more
        about setting up Authentication [here](/get-started/authentication).
      type: http
      scheme: basic

````