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

# List models

> List models visible to the authenticated account/key, including customer-facing pricing.



## OpenAPI

````yaml /openapi/v0-api/public.openapi.yaml get /api/v1/models
openapi: 3.1.0
info:
  title: MyRouter V0 Public API
  version: 0.1.0
  description: >-
    Customer-facing MyRouter V0 API. Core paths follow OpenRouter where
    possible; billing is a MyRouter extension using Stripe-style resource
    naming.
  license:
    name: Proprietary
    identifier: LicenseRef-Proprietary
  x-platform-contract-commit: 56b047ef2c076be151e090aa4e2f5e974180ea14
  x-phase-sources:
    - phase1/2026-05-28-source-inventory.md
    - phase8/2026-05-28-public-v0-api-review-matrix.md
servers:
  - url: https://api.myrouter.example
    description: Placeholder until public environment is finalized.
security:
  - bearerApiKey: []
paths:
  /api/v1/models:
    get:
      tags:
        - Models
      summary: List models
      description: >-
        List models visible to the authenticated account/key, including
        customer-facing pricing.
      operationId: listModels
      parameters:
        - $ref: '#/components/parameters/RequestIdHeader'
        - name: category
          in: query
          required: false
          schema:
            type: string
          description: Optional public category filter.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
        - name: endpoint
          in: query
          required: false
          schema:
            type: string
          description: Optional endpoint filter.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
        - name: q
          in: query
          required: false
          schema:
            type: string
          description: Optional search query.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
      responses:
        '200':
          description: List models response.
          headers:
            x-request-id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelListResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    RequestIdHeader:
      name: x-request-id
      in: header
      required: false
      schema:
        type: string
      description: Optional caller request id.
      x-source: Platform error contracts and product API convention
      x-owner: shared
      x-status: product-to-build
      x-platform-dependency: Platform runtime errors and product API errors
      x-rationale: Every API needs a stable supportable error envelope with request id.
  headers:
    RequestId:
      schema:
        type: string
      description: Effective request id.
      x-source: Platform error contracts and product API convention
      x-owner: shared
      x-status: product-to-build
      x-platform-dependency: Platform runtime errors and product API errors
      x-rationale: Every API needs a stable supportable error envelope with request id.
  schemas:
    ModelListResponse:
      type: object
      additionalProperties: false
      required:
        - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Model'
          description: Visible model list.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
        request_id:
          type: string
          description: Request id.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
      x-source: >-
        OpenRouter /models; platform model catalog/detail@56b047e; product
        visibility and pricing projection
      x-owner: shared
      x-status: product-to-build
      x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
      x-rationale: >-
        Product filters platform model truth by customer/account and injects
        customer-facing pricing into the OpenRouter-style model object.
    Model:
      type: object
      additionalProperties: true
      required:
        - id
        - pricing
      properties:
        id:
          type: string
          description: Public model id used in runtime calls.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
        name:
          type: string
          description: Customer-visible display name.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
        description:
          type: string
          description: Customer-visible model description.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
        context_length:
          type: integer
          description: Context window.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
        architecture:
          type: object
          description: OpenRouter-style architecture metadata.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
          additionalProperties: true
        top_provider:
          type: object
          description: OpenRouter-style provider metadata safe to expose.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
          additionalProperties: true
        pricing:
          $ref: '#/components/schemas/ModelPricing'
          description: Customer-facing model pricing.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
        supported_parameters:
          type: array
          items:
            type: string
          description: Safe supported runtime parameters.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
      x-source: >-
        OpenRouter /models; platform model catalog/detail@56b047e; product
        visibility and pricing projection
      x-owner: shared
      x-status: product-to-build
      x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
      x-rationale: >-
        Product filters platform model truth by customer/account and injects
        customer-facing pricing into the OpenRouter-style model object.
    ErrorEnvelope:
      type: object
      additionalProperties: false
      required:
        - error
        - request_id
      properties:
        error:
          type: object
          additionalProperties: false
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Stable machine-readable error code.
              x-source: Platform error contracts and product API convention
              x-owner: shared
              x-status: product-to-build
              x-platform-dependency: Platform runtime errors and product API errors
              x-rationale: >-
                Every API needs a stable supportable error envelope with request
                id.
            message:
              type: string
              description: Human-readable error message.
              x-source: Platform error contracts and product API convention
              x-owner: shared
              x-status: product-to-build
              x-platform-dependency: Platform runtime errors and product API errors
              x-rationale: >-
                Every API needs a stable supportable error envelope with request
                id.
            type:
              type: string
              description: Error category.
              x-source: Platform error contracts and product API convention
              x-owner: shared
              x-status: product-to-build
              x-platform-dependency: Platform runtime errors and product API errors
              x-rationale: >-
                Every API needs a stable supportable error envelope with request
                id.
          x-source: Platform error contracts and product API convention
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform runtime errors and product API errors
          x-rationale: Every API needs a stable supportable error envelope with request id.
        request_id:
          type: string
          description: Effective request id for support.
          x-source: Platform error contracts and product API convention
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform runtime errors and product API errors
          x-rationale: Every API needs a stable supportable error envelope with request id.
      x-source: Platform error contracts and product API convention
      x-owner: shared
      x-status: product-to-build
      x-platform-dependency: Platform runtime errors and product API errors
      x-rationale: Every API needs a stable supportable error envelope with request id.
    ModelPricing:
      type: object
      additionalProperties: false
      required: []
      properties:
        prompt:
          type: string
          description: Input token price.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
        completion:
          type: string
          description: Output token price.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
        request:
          type: string
          description: Per-request price when applicable.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
        image:
          type: string
          description: Image price when applicable.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
        web_search:
          type: string
          description: Web search price when applicable.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
        internal_reasoning:
          type: string
          description: Reasoning token price when applicable.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
        input_cache_read:
          type: string
          description: Cache-read token price when applicable.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
        input_cache_write:
          type: string
          description: Cache-write token price when applicable.
          x-source: >-
            OpenRouter /models; platform model catalog/detail@56b047e; product
            visibility and pricing projection
          x-owner: shared
          x-status: product-to-build
          x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
          x-rationale: >-
            Product filters platform model truth by customer/account and injects
            customer-facing pricing into the OpenRouter-style model object.
      x-source: >-
        OpenRouter /models; platform model catalog/detail@56b047e; product
        visibility and pricing projection
      x-owner: shared
      x-status: product-to-build
      x-platform-dependency: Platform model catalog/detail and pricing/meter APIs
      x-rationale: >-
        Product filters platform model truth by customer/account and injects
        customer-facing pricing into the OpenRouter-style model object.
  responses:
    BadRequest:
      description: Invalid request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Unauthorized:
      description: Missing or invalid authentication.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Forbidden:
      description: Authenticated principal is not allowed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RateLimited:
      description: Rate limit exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    InternalError:
      description: Internal error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    bearerApiKey:
      type: http
      scheme: bearer
      bearerFormat: MyRouter API key

````