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

# Read model capabilities and precise schemas

> Read live_available before submitting. Input and result schemas are model-specific. Unsupported models and operations cannot be enabled by MCP.

## 当前接口契约

[查看机器可读接口定义](https://apistable.ai/api-reference/getModel.json)


## OpenAPI

````yaml openapi.json GET /api/v1/models/{model_id}
openapi: 3.1.0
info:
  title: APIstable API
  version: 1.0.0-preview
  description: >-
    Public /api/v1 protocol. Valid API keys have the same account-scoped access.
    Read the selected model documentation for its ID, supported inputs, result
    format and availability before submitting. No client submission idempotency
    or max_credits. Availability, pricing, file retention and callback formats
    follow the selected model contract. Unconfigured operations return 503.
servers:
  - url: https://apistable.ai
    description: API Stable API
security: []
paths:
  /api/v1/models/{model_id}:
    get:
      summary: Read model capabilities and precise schemas
      description: >-
        Read live_available before submitting. Input and result schemas are
        model-specific. Unsupported models and operations cannot be enabled by
        MCP.
      operationId: getModel
      parameters:
        - name: model_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Model definition, including preview status.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - msg
                  - data
                additionalProperties: false
                properties:
                  code:
                    const: 200
                  msg:
                    const: success
                  data:
                    allOf:
                      - $ref: '#/components/schemas/ModelSummary'
                      - type: object
                        properties:
                          input_schema:
                            type:
                              - object
                              - 'null'
                            additionalProperties: true
                          result_schema:
                            type:
                              - object
                              - 'null'
                            additionalProperties: true
        '404':
          description: Unknown model.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ModelSummary:
      type: object
      required:
        - id
        - modality
        - status
        - live_available
        - input_schema_version
      properties:
        id:
          type: string
        modality:
          type: string
          enum:
            - image
            - video
            - music
            - llm
        status:
          type: string
        live_available:
          type: boolean
        input_schema_version:
          type: string
    Error:
      type: object
      required:
        - code
        - msg
        - data
      properties:
        code:
          type: integer
        msg:
          type: string
        data:
          type: 'null'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.