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

# Retrieve a model

> Retrieve details about a specific model by its slug.



## OpenAPI

````yaml /api-reference/openapi.json get /models/{id}
openapi: 3.1.0
info:
  title: LLM Router API
  description: >-
    Intelligent AI Gateway with smart routing, Skills, Zero Data Retention, and
    cost optimization. Fully compatible with the OpenAI API.
  version: 1.0.0
  contact:
    name: LLM Router Support
    url: https://docs.llmrouter.app
servers:
  - url: https://api.llmrouter.app/v1
    description: Production Server
security:
  - bearerAuth: []
paths:
  /models/{id}:
    get:
      tags:
        - Models
      summary: Retrieve a model
      description: Retrieve details about a specific model by its slug.
      parameters:
        - name: id
          in: path
          required: true
          description: The ID of the model to retrieve (e.g., anthropic/claude-3-5-sonnet)
          schema:
            type: string
      responses:
        '200':
          description: Model details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model'
        '404':
          description: Model not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Model:
      type: object
      properties:
        id:
          type: string
          description: Unique model identifier
          example: anthropic/opus-4.6
        name:
          type: string
          description: Human-readable model name
        provider:
          type: string
          description: Provider identifier
        description:
          type:
            - string
            - 'null'
          nullable: true
        created:
          type: integer
          description: Unix timestamp when the model was added
        context_window:
          type:
            - integer
            - 'null'
          nullable: true
        max_tokens:
          type:
            - integer
            - 'null'
          nullable: true
        pricing:
          type: object
          properties:
            input:
              type:
                - string
                - 'null'
              nullable: true
            output:
              type:
                - string
                - 'null'
              nullable: true
            input_cache_read:
              type:
                - string
                - 'null'
              nullable: true
            input_cache_write:
              type:
                - string
                - 'null'
              nullable: true
            web_search:
              type:
                - string
                - 'null'
              nullable: true
            image:
              type:
                - string
                - 'null'
              nullable: true
            input_tiers:
              type: array
              items:
                $ref: '#/components/schemas/Tier'
            output_tiers:
              type: array
              items:
                $ref: '#/components/schemas/Tier'
        api_compatibility:
          type: array
          items:
            type: string
            enum:
              - chat-completion
              - open-responses
              - anthropic-messages
              - image-generation
              - embeddings
        capabilities:
          type: array
          items:
            type: string
            enum:
              - tool-use
              - implicit-caching
              - file-input
              - image-generation
              - vision
              - reasoning
        zdr:
          type:
            - boolean
            - 'null'
          nullable: true
        latency_p50_last_30m:
          type:
            - integer
            - 'null'
          nullable: true
        throughput_p50_last_30m:
          type:
            - integer
            - 'null'
          nullable: true
        uptime_last_30m:
          type:
            - number
            - 'null'
          nullable: true
        providers:
          type: array
          items:
            type: object
            properties:
              provider:
                type: string
              latency_p50_last_30m:
                type:
                  - integer
                  - 'null'
              throughput_p50_last_30m:
                type:
                  - integer
                  - 'null'
              uptime_last_30m:
                type:
                  - number
                  - 'null'
      required:
        - id
        - name
        - provider
        - pricing
        - api_compatibility
        - capabilities
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            code:
              type: string
              nullable: true
              enum:
                - UNAUTHORIZED
                - FORBIDDEN
                - INTERNAL_SERVER_ERROR
                - BAD_REQUEST
                - USER_NOT_FOUND
                - MODEL_NOT_FOUND
                - EXCEEDS_MONTHLY_LIMIT
                - INVALID_GATEWAY_SETTINGS
                - TOO_MANY_REQUESTS
              description: Error code (can be null or undefined)
          additionalProperties: true
      additionalProperties: true
    Tier:
      type: object
      properties:
        min:
          type: integer
        max:
          type:
            - integer
            - 'null'
        price:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: LLM Router API Key (e.g., sk-llmr-...)

````