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

# Get LLM Details

> Fetch one LLM catalog entry by ID.

Read only
Returns the API-key catalog fields for a single LLM in DialNexa's supported model catalogue. The response includes the model's stable `id`, the upstream `provider` (for example `openai`, `google` or `groq`) and the display `name`. Context window sizes and feature flags such as tool calling are not part of the API-key response.

## When To Get LLM Details

Use this endpoint when you have an `llm_id` saved on an agent configuration or in your own database and you need to resolve it into a human-readable label. The API-key response contains only `id`, `name`, and `provider`.

This endpoint returns any model in the catalog that is not deleted. It does not check primary or fallback eligibility, so a model returned here may not be accepted in that role. To check that a model can be used as a primary or fallback model, look for it in [List LLMs](https://dialnexa.com/docs/api-reference/v1/llms/list.md) or [List Fallback LLMs](https://dialnexa.com/docs/api-reference/v1/llms/fallback.md).

* **Agent build UIs** typically fetch this when rendering the LLM selection for an already-saved agent so the dropdown can display the correct provider and name.
* **Migration tooling** that retires a deprecated model uses this to confirm the target model still exists in the catalog before bulk-updating agents.
* **Cost-aware dashboards** read the provider from this endpoint to attribute spend per model in workspace reports.

If you need the full list of available LLMs, call [List LLMs](https://dialnexa.com/docs/api-reference/v1/llms/list.md) instead. That endpoint returns every model that can be an agent's primary LLM, the same list for every workspace, one page at a time.

## Path parameters

| Parameter | Description |
| - | - |
| `id` | The LLM ID, for example `llm_mfgt5q2x8k4w7r`. |

## Errors

* `404 Not Found` is returned when the `id` does not match an LLM in the catalog, or the model has been deleted. This usually means the model has been deprecated and removed, or the ID was mistyped.
* `401 Unauthorized` is returned when the API key is missing, malformed, or revoked. See [API authentication](https://dialnexa.com/docs/api-reference/api-fundamentals.md#authenticate-dialnexa-api-requests).

## Related endpoints

* [List LLMs](https://dialnexa.com/docs/api-reference/v1/llms/list.md): fetch the models available as a primary LLM.
* [Update Agent](https://dialnexa.com/docs/api-reference/v1/agents/update.md): change the LLM assigned to an existing agent.
* [LLMs and conversation behavior](https://dialnexa.com/docs/voice-ai/llms-and-conversation-behavior.md): guidance on choosing an LLM for your use case.


## OpenAPI

````yaml GET /v1/llms/{id}
openapi: 3.0.0
info:
  title: DialNexa API
  description: Public `/v1` REST API for the DialNexa voice AI platform.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: Agents
  - name: Batch Calls
  - name: Calls
  - name: Knowledge Base
  - name: Languages
  - name: LLMs
  - name: Phone Numbers
  - name: Organization Folders
  - name: Transcribers
  - name: Webhooks
  - name: Voices
  - name: Workflows
  - name: Workflow Leads
  - name: Authentication
  - name: Agent Builder
  - name: Agent Evaluations
paths:
  /v1/llms/{id}:
    get:
      tags:
        - LLMs
      summary: Get LLM Details
      description: >-
        Returns one large language model catalog record by ID. It does not check
        primary or fallback eligibility, so a model returned here may not be
        accepted in that role.
      operationId: getLlm
      parameters:
        - name: id
          required: true
          in: path
          description: LLM ID
          schema:
            example: llm_mfgt5q2x8k4w7r
            type: string
      responses:
        '200':
          description: LLM returned successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: llm_mfgt5q2x8k4w7r
                    description: Signed LLM ID
                  name:
                    type: string
                  provider:
                    enum:
                      - google
                      - openai
                      - deepseek
                      - groq
                      - gemini
                      - sarvam
                    type: string
                required:
                  - id
              examples:
                success:
                  summary: Successful response
                  value:
                    id: llm_mfgt5q2x8k4w7r
                    name: GPT-4.1 Mini
                    provider: openai
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                error:
                  summary: 401 Unauthorized
                  value:
                    message: >-
                      API key is missing or invalid. You can generate this by
                      logging in into dashboard
        '404':
          description: LLM not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                error:
                  summary: 404 Not Found
                  value:
                    message: 'Could not find LLM with id: abc12345678901'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                error:
                  summary: 500 Internal Server Error
                  value:
                    message: An unexpected error occurred. Please try again later.
      security:
        - bearer: []
components:
  schemas:
    FilteredErrorResponse:
      type: object
      description: >-
        Error body on calls, batch calls, voices, languages and LLMs, which
        return only the message (and data for a coded refusal).
      properties:
        message:
          type: string
        data:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable refusal code.
          description: >-
            Present for a coded refusal: code and the details listed for that
            code.
        validation_errors:
          type: array
          description: >-
            Present when uploaded rows fail number validation (batch and
            workflow lead uploads): one group per distinct error.
          items:
            type: object
            properties:
              error:
                type: string
              rows:
                type: array
                items:
                  type: integer
                description: Row numbers with this error.
              phone_numbers:
                type: array
                items:
                  type: string
        invalid_row_count:
          type: integer
          description: 'Present with validation_errors: how many rows failed.'
      required:
        - message
  securitySchemes:
    bearer:
      scheme: bearer
      type: http

````

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