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

# Model schemas

> Inspect the exact model input and result schemas.

> Operations are enabled individually by server configuration. Disabled operations return 503 without a task. Music credit deduction is currently disabled.

## Model-specific contracts

data contains id, modality, status, live\_available, input\_schema\_version, input\_schema, and result\_schema. Known preview models remain inspectable with live\_available=false. Their schema is an admission preview, not verified supplier capability. Unknown IDs return 404.

output\_count and fallback appear inside input only on models that support them. Single-execution music models omit output\_count. Unknown fields are rejected instead of ignored. LLM preview schemas are null until compatibility is implemented.


## 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.
    No client submission idempotency or max_credits. Enabled Suno operations use
    PayAPI and durable task processing. Media uses R2: uploads 24 hours,
    generated files 14 days, task logs 30 days. Music credit deduction is
    disabled. Unconfigured operations and LLM return 503.
servers:
  - url: https://apistable.com
    description: APIstable API
security: []
paths:
  /api/v1/models/{model_id}:
    get:
      summary: Read model schemas
      description: >-
        Known preview model details include live_available=false. Preview
        schemas describe current validation, not verified live supplier
        capabilities.
      operationId: getModel
      parameters:
        - name: model_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Model schema and explicit availability.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - msg
                  - data
                additionalProperties: false
                properties:
                  code:
                    const: 200
                  msg:
                    const: success
                  data:
                    $ref: '#/components/schemas/ModelDetail'
        '404':
          description: '40401: Unknown model.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  schemas:
    ModelDetail:
      type: object
      required:
        - id
        - modality
        - status
        - live_available
        - input_schema_version
        - input_schema
        - result_schema
      properties:
        id:
          type: string
        modality:
          type: string
          enum:
            - image
            - video
            - music
            - llm
        status:
          type: string
          enum:
            - preview
            - maintenance
            - available
        live_available:
          type: boolean
        input_schema_version:
          type: string
        input_schema:
          type:
            - object
            - 'null'
          additionalProperties: true
        result_schema:
          type:
            - object
            - 'null'
          additionalProperties: true
    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.