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

# Create user model

> Creates a user-defined model. For single models, provide connection_id and litellm_model. For router models, provide model_type='router' and routing_config. Name must not conflict with active platform models. Admins can set platform=true to create a platform model (created_by=NULL).




## OpenAPI

````yaml /openapi.yaml post /user-models
openapi: 3.0.3
info:
  title: Hill90 API
  description: Hill90 platform API — agent management and lifecycle operations.
  version: 0.1.0
servers:
  - url: /
    description: Relative (behind Traefik reverse proxy)
security: []
paths:
  /user-models:
    post:
      summary: Create user model
      description: >
        Creates a user-defined model. For single models, provide connection_id
        and litellm_model. For router models, provide model_type='router' and
        routing_config. Name must not conflict with active platform models.
        Admins can set platform=true to create a platform model
        (created_by=NULL).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: Friendly model name (unique per user)
                model_type:
                  type: string
                  enum:
                    - single
                    - router
                  default: single
                connection_id:
                  type: string
                  format: uuid
                  description: >-
                    Required for single models (must be owned by user, or
                    platform connection for platform models)
                litellm_model:
                  type: string
                  description: Required for single models (e.g., openai/gpt-4o)
                routing_config:
                  type: object
                  description: Required for router models
                description:
                  type: string
                detected_type:
                  type: string
                  description: Manual override for auto-detected type
                capabilities:
                  type: array
                  items:
                    type: string
                  description: Manual override for auto-detected capabilities
                platform:
                  type: boolean
                  description: >-
                    Admin-only. If true, creates a platform model
                    (created_by=NULL) using a platform connection.
                icon_emoji:
                  type: string
                  deprecated: true
                  description: Deprecated — ignored on writes. Use icon_url instead.
                icon_url:
                  type: string
      responses:
        '201':
          description: Model created
        '400':
          description: Invalid input or unowned connection
        '401':
          description: Not authenticated
        '403':
          description: Requires user role
        '409':
          description: Name conflict with platform model or duplicate name
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````