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

# Modelo

> Devuelve un modelo por su identificador.



## OpenAPI

````yaml es/openapi/es-openai-api-openapi.yaml GET /v1/models/{model}
openapi: 3.1.0
info:
  title: ER:LC Rusia - API compatible con OpenAI
  version: 1.0.0
  description: >-
    Métodos compatibles con OpenAI de Chat Completions, consulta de modelos y
    síntesis de voz de ER:LC Russia. Consulta los parámetros admitidos en cada
    método.
servers:
  - url: https://api.erlcrussia.com
    description: servidor principal
  - url: https://api.erlcrussia.xyz
    description: Servidor de respaldo
security: []
tags:
  - name: Audio
  - name: Chat Completions
  - name: Models
paths:
  /v1/models/{model}:
    get:
      tags:
        - Models
      summary: Modelo
      description: Devuelve un modelo por su identificador.
      parameters:
        - name: model
          in: path
          required: true
          schema:
            type: string
          example: niya-1
      responses:
        '200':
          description: Especificación detallada del modelo.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelObject'
              example:
                id: niya-1
                object: model
                created: 1710000000
                owned_by: erlcrussia
                name: Ния 1
                description: Быстрая модель для повседневных задач.
                context_length: 1000000
                max_context_length: 1000000
                modalities:
                  - text
                  - image
                  - audio
                  - video
                capabilities:
                  chat: true
                  completion: true
                  function_calling: true
                  reasoning: false
                  thinking: false
                  tool_call: true
                  tools: true
                  vision: true
          headers:
            x-request-id:
              $ref: '#/components/headers/RequestId'
            openai-processing-ms:
              $ref: '#/components/headers/ProcessingMs'
            x-ratelimit-limit-requests:
              $ref: '#/components/headers/RateLimitRequests'
            x-ratelimit-remaining-requests:
              $ref: '#/components/headers/RateLimitRemainingRequests'
            x-ratelimit-reset-requests:
              $ref: '#/components/headers/RateLimitResetRequests'
        '401':
          description: Falta la clave o no es válida.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: >-
                    Incorrect API key provided. Check the key or create a new
                    one in the dashboard.
                  type: invalid_request_error
                  param: null
                  code: invalid_api_key
                  erlc_code: '5008'
        '404':
          description: Modelo no encontrado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: The model does not exist or you do not have access to it.
                  type: invalid_request_error
                  param: null
                  code: model_not_found
                  erlc_code: '5040'
      security:
        - BearerAuth: []
        - ApiKeyAuth: []
components:
  schemas:
    ModelObject:
      type: object
      properties:
        id:
          type: string
          example: niya-1
        object:
          type: string
          example: model
        created:
          type: integer
          example: 1710000000
        owned_by:
          type: string
          example: erlcrussia
        name:
          type: string
          example: Ния 1
        description:
          type: string
          example: Быстрая модель для повседневных задач.
        context_length:
          type: integer
          example: 1000000
        max_context_length:
          type: integer
          example: 1000000
        modalities:
          type: array
          items:
            type: string
          example:
            - text
            - image
            - audio
            - video
        reasoning:
          type: boolean
          example: false
        supports_thinking:
          type: boolean
          example: false
        capabilities:
          type: object
          additionalProperties: true
    ErrorResponse:
      type: object
      description: >-
        Un error en formato OpenAI. `code` es un código de texto de OpenAI
        (`invalid_api_key`, `model_not_found`, `insufficient_quota`,
        `rate_limit_exceeded`) o `null`. El código numérico de ER:LC Rusia va en
        `erlc_code`, consulta los [códigos de
        error](/es/documentation/error-codes).
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Insufficient AI Credits
            type:
              type: string
              enum:
                - invalid_request_error
                - insufficient_quota
                - requests
                - server_error
              example: insufficient_quota
            param:
              type:
                - string
                - 'null'
              example: null
            code:
              type:
                - string
                - 'null'
              example: insufficient_quota
            erlc_code:
              type: string
              description: ER:LC Russia numeric error code.
              example: '5038'
  headers:
    RequestId:
      description: ID de la solicitud para soporte.
      schema:
        type: string
        example: req_8f2c1e9b4a7d4c0e9f1a2b3c4d5e6f70
    ProcessingMs:
      description: Tiempo de procesamiento en milisegundos.
      schema:
        type: integer
        example: 412
    RateLimitRequests:
      description: Límite de solicitudes en la ventana actual.
      schema:
        type: integer
        example: 120
    RateLimitRemainingRequests:
      description: Solicitudes restantes en la ventana actual.
      schema:
        type: integer
        example: 119
    RateLimitResetRequests:
      description: Tiempo hasta que se reinicia el límite, por ejemplo `1s` o `6m0s`.
      schema:
        type: string
        example: 1s
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Pasando el token de autorización en el encabezado Autorización: Portador
        <token>.
    ApiKeyAuth:
      type: apiKey
      in: header
      name: erlcrussia-api-ai-key
      description: La clave en la cabecera erlcrussia-api-ai-key.

````

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