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

# Get Model OpenAPI Schema

> The model's machine-readable OpenAPI document: its input schema (`components.schemas.Input`), output schema, and endpoint paths. What code generators and AI assistants should consume before calling a model. `alias` may itself contain slashes.



## OpenAPI

````yaml /platform-openapi.json get /models/{ownerName}/{alias}/openapi.json
openapi: 3.1.0
info:
  title: ModelRunner Platform API
  version: 1.0.0
  description: >-
    Platform APIs: model catalog, search and collections; model pricing rate
    cards; the Serverless GPU catalog and deployment templates; file uploads and
    your asset library; account balance and usage; and webhook delivery
    management. Catalog reads are public; account-scoped routes authenticate
    with your API key (`Authorization: Key <MODELRUNNER_KEY>`). Request
    lifecycle endpoints (submit/status/result and the request list) live on the
    queue host — see the Queue API reference.
servers:
  - url: https://api.modelrunner.run
security: []
paths:
  /models/{ownerName}/{alias}/openapi.json:
    get:
      summary: Get Model OpenAPI Schema
      description: >-
        The model's machine-readable OpenAPI document: its input schema
        (`components.schemas.Input`), output schema, and endpoint paths. What
        code generators and AI assistants should consume before calling a model.
        `alias` may itself contain slashes.
      parameters:
        - name: ownerName
          in: path
          required: true
          schema:
            type: string
        - name: alias
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: An OpenAPI 3 document describing the model.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '404':
          description: Unknown model endpoint.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message.
        request_id:
          type: string
          description: Correlation id for support.

````