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

# List a model's endpoints

> List the endpoints serving a catalog model, with prices, context window and availability, sorted and filtered. Requires the models:read scope.



## OpenAPI

````yaml api-reference/openapi.json GET /v1/models/{id}/endpoints
openapi: 3.1.0
info:
  title: TokenChange API
  description: >-
    Manage TokenChange resources with a gateway API token. Errors share one
    envelope: `{"error":{"type","code","message"}}`.
  license:
    name: ''
  version: '1'
servers:
  - url: https://api.tokenchange.io
security: []
tags:
  - name: models
    description: Catalog models and endpoints
  - name: keys
    description: Inference API keys
  - name: usage
    description: Usage analytics
  - name: billing
    description: Credit balance and history
  - name: provider
    description: Your provider account, endpoints, validations and earnings
paths:
  /v1/models/{id}/endpoints:
    get:
      tags:
        - models
      operationId: list_endpoints
      parameters:
        - name: id
          in: path
          description: Model id
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: Page size, 1–100 (default 20).
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
        - name: cursor
          in: query
          description: '`next_cursor` from the previous page.'
          required: false
          schema:
            type: string
        - name: sort
          in: query
          description: Defaults to `created_at`.
          required: false
          schema:
            $ref: 70722742-05e0-4793-b014-c81ff1d3fc4b
        - name: order
          in: query
          description: Defaults to `asc` for `price` and `desc` otherwise.
          required: false
          schema:
            $ref: 38599794-b11e-4eba-9070-c1fef226fb2f
        - name: capability
          in: query
          required: false
          schema:
            type: string
        - name: quantization
          in: query
          required: false
          schema:
            type: string
        - name: min_output_tokens_per_sec
          in: query
          required: false
          schema:
            type: number
            format: double
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointList'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
      security:
        - bearer:
            - models:read
components:
  schemas:
    EndpointList:
      type: object
      required:
        - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Endpoint'
        next_cursor:
          type:
            - string
            - 'null'
    ErrorBody:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
    Endpoint:
      type: object
      required:
        - id
        - slug
        - model_id
        - pricing
        - availability
        - capabilities
        - status
        - created_at
      properties:
        availability:
          $ref: '#/components/schemas/Availability'
        capabilities:
          type: array
          items:
            type: string
        context_window:
          type:
            - integer
            - 'null'
          format: int32
        created_at:
          type: string
        id:
          type: string
        model_id:
          type: string
        output_tokens_per_sec:
          type:
            - number
            - 'null'
          format: double
        pricing:
          $ref: '#/components/schemas/Pricing'
        quantization:
          type:
            - string
            - 'null'
        slug:
          type: string
        status:
          $ref: '#/components/schemas/EndpointStatus'
        validated_at:
          type:
            - string
            - 'null'
    ErrorDetail:
      type: object
      required:
        - type
        - code
        - message
      properties:
        code:
          type: string
        message:
          type: string
        resource_id:
          type:
            - string
            - 'null'
        type:
          type: string
    Availability:
      type: string
      enum:
        - pending
        - validating
        - up
        - degraded
        - down
        - rejected
    Pricing:
      type: object
      description: Prices in USD per million tokens, as decimal strings.
      required:
        - input_per_million
        - output_per_million
      properties:
        cached_per_million:
          type:
            - string
            - 'null'
        input_per_million:
          type: string
        output_per_million:
          type: string
    EndpointStatus:
      type: string
      enum:
        - active
        - paused
        - suspended
        - retired
        - pending
        - rejected
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: A gateway API token (`tcg_…`) created in the dashboard

````

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