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

# List Models

> OpenAI-compatible model listing at /v1/models

## Overview

`GET /v1/models` returns the model ids your key can use, in the OpenAI list shape — SDK helpers like `client.models.list()` work unchanged.

```bash theme={null}
curl https://api.morphllm.com/v1/models \
  -H "Authorization: Bearer $MORPH_API_KEY"
```

This endpoint returns ids only. Prices and context windows live at [morphllm.com/api/models/json](https://www.morphllm.com/api/models/json), which is regenerated from the same source as billing — use it for anything cost-sensitive.


## OpenAPI

````yaml GET /v1/models
openapi: 3.1.0
info:
  title: Morph API
  version: 1.1.0
  description: >-
    The Morph public API at api.morphllm.com: OpenAI- and Anthropic-compatible
    inference (chat completions, messages), Fast Apply code editing, Compact
    context compression, Reflex classification, and fine-tuning. Model ids,
    prices, and context windows are served live at
    https://www.morphllm.com/api/models/json.
  contact:
    name: Morph
    url: https://morphllm.com
    email: info@morphllm.com
  license:
    name: Proprietary
    url: https://morphllm.com/privacy/tos
servers:
  - url: https://api.morphllm.com
    description: Production
security: []
tags:
  - name: chat
    description: >-
      OpenAI- and Anthropic-compatible chat inference, including Fast Apply and
      WarpGrep models.
  - name: compact
    description: Context compression for long agent conversations.
  - name: reflex
    description: 'Per-turn classifiers: realtime prediction and batches.'
  - name: fine-tuning
    description: Reflex fine-tuning job lifecycle.
  - name: models
    description: Model listing and management.
  - name: telemetry
    description: Usage reporting hooks.
paths:
  /v1/models:
    get:
      tags:
        - models
      summary: List models
      description: >-
        Return every model the API key can call — Morph built-ins plus any model
        you trained. OpenAI Models-API compatible, so existing OpenAI clients
        can enumerate models unchanged.
      operationId: listModels
      responses:
        '200':
          description: The available models.
          content:
            application/json:
              example:
                object: list
                data:
                  - id: morph-v3-fast
                    object: model
                    created: 1780107000
                    owned_by: morph
                  - id: morph-glm52-744b
                    object: model
                    created: 1780107000
                    owned_by: morph
              schema:
                $ref: '#/components/schemas/ModelList'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - bearerAuth: []
components:
  schemas:
    ModelList:
      type: object
      properties:
        object:
          type: string
          description: Always `list` for a model listing.
          example: list
        data:
          type: array
          items:
            $ref: '#/components/schemas/Model'
          description: Every model the API key can call.
          example:
            - id: morph-v3-fast
              object: model
              created: 1780107000
              owned_by: morph
            - id: morph-glm52-744b
              object: model
              created: 1780107000
              owned_by: morph
      required:
        - object
        - data
      description: OpenAI-compatible listing of the models available to the key.
      example:
        object: list
        data:
          - id: morph-v3-fast
            object: model
            created: 1780107000
            owned_by: morph
          - id: morph-glm52-744b
            object: model
            created: 1780107000
            owned_by: morph
    Model:
      type: object
      properties:
        id:
          type: string
          description: Model name to pass as `model` on inference requests.
          example: morph-v3-fast
        object:
          type: string
          description: Always `model` for a model record.
          example: model
        created:
          type: integer
          description: Unix timestamp (seconds) when the model became available.
          example: 1780107000
        owned_by:
          type: string
          description: >-
            Owner of the model — `morph` for built-ins, your org for trained
            models.
          example: morph
      required:
        - id
        - object
        - created
        - owned_by
      description: An OpenAI-compatible model record.
      example:
        id: morph-v3-fast
        object: model
        created: 1780107000
        owned_by: morph
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: invalid_request_error
              description: Machine-readable error code.
            message:
              type: string
              example: The request body is missing the `model` field.
              description: Human-readable explanation of the failure.
          required:
            - code
            - message
      required:
        - error
      description: Standard error envelope returned by every non-2xx response.
      example:
        error:
          code: invalid_request_error
          message: The request body is missing the `model` field.
  responses:
    BadRequest:
      description: Malformed request — missing or invalid fields.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_request_error
              message: The request body is missing the `model` field.
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unauthorized
              message: Invalid API key provided.
    RateLimited:
      description: Rate limited — retry after the interval in the Retry-After header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: rate_limited
              message: Too many requests. Retry in 12 seconds.
    InternalError:
      description: Internal error — safe to retry with backoff.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: internal_error
              message: Something went wrong on our side.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: >-
        Morph API key, passed as `Authorization: Bearer sk-...`. Create keys at
        https://www.morphllm.com/dashboard/api-keys.

````