> ## 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.

# List LLMs

> List large language models supported by DialNexa.

<span data-api-safety-label="read-only"><Badge color="gray" size="sm" shape="pill">Read only</Badge></span>

<Info>
  **Recommended.** This endpoint is part of the public `/v1` API reference and is the supported path for new integrations. See the [migration guide](/docs/api-reference/v1/migrating-to-v1) for versioning guidance.
</Info>

Returns every large language model available to power DialNexa agents. Each entry includes the model's stable `id`, display `name`, upstream `provider` (such as OpenAI, Google, Groq, or DeepSeek), the supported context window, and the conversational features the model exposes (function calling, JSON mode). Use the `id` field as the value for `llm.id` when creating or updating an agent. The catalogue evolves continually as providers ship new models, so always call this endpoint at deploy time rather than hard-coding the list.

## When to use this

* **Agent build UIs**: populate the LLM selector when creating or editing an agent.
* **Provider diversification**: choose models from multiple providers so an upstream incident with one provider does not take down every agent.
* **Cost optimization**: switch high-volume agents to smaller models when conversational quality stays acceptable.
* **Capability filtering**: find models that support function calling for agents that need tool use, or models with large context windows for long conversations.

## How to choose an LLM

The right LLM depends on the use case:

* **Simple, high-volume agents** (appointment reminders, opt-in confirmations): smaller and cheaper models like GPT-4o Mini or DeepSeek V3 typically suffice.
* **Conversational quality matters** (consultative sales, sensitive support): larger models like GPT-4o or GPT-4.1 typically perform better on tone, recovery, and multi-turn reasoning.
* **Latency-sensitive flows**: Groq-hosted models offer extremely low first-token latency at the cost of some conversational quality.
* **Multilingual or India-first**: confirm the model handles your target language well by testing with the [LLM Playground](/docs/agents/testing-agents) before publishing.

See [LLMs and conversation behavior](/docs/voice-ai/llms-and-conversation-behavior) for deeper guidance.

## Errors

* `401 Unauthorized` is returned when the API key is missing or revoked.

## Related endpoints

* [Get LLM Details](/docs/api-reference/v1/llms/get): fetch a single model's detail.
* [Update Agent](/docs/api-reference/v1/agents/update): change the LLM assigned to an existing agent.
* [LLM Playground](/docs/agents/testing-agents): sandbox for testing model behavior on your prompts.
* [LLMs and conversation behavior](/docs/voice-ai/llms-and-conversation-behavior): choosing the right model.


## OpenAPI

````yaml GET /v1/llms
openapi: 3.0.0
info:
  title: DialNexa API
  description: >-
    Public REST API for the DialNexa voice AI platform. Versioned endpoints are
    under /v1; unversioned endpoints are legacy and deprecated.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: API Keys
  - name: Agent Functions
  - name: Agents V1
  - name: Agents2
  - name: Batch Calls
  - name: Batch Calls V1
  - name: Call Logs
  - name: Calls
  - name: Calls V1
  - name: Campaign Leads
  - name: Campaigns
  - name: External Webhooks
  - name: Knowledge Base
  - name: Knowledge Base V1
  - name: LLMs
  - name: LLMs V1
  - name: Languages
  - name: Languages V1
  - name: Organization Phone Numbers
  - name: Organization Phone Numbers V1
  - name: Phone Number Pricing
  - name: Phone Number Pricing V1
  - name: Transcribers
  - name: Transcribers V1
  - name: User Webhooks
  - name: User Webhooks V1
  - name: V1
  - name: Voices
  - name: Voices V1
  - name: Webcall
  - name: Workflow Leads
  - name: Workflow Leads V1
  - name: Workflows
  - name: Workflows V1
paths:
  /v1/llms:
    get:
      tags:
        - LLMs
        - LLMs V1
        - V1
      summary: List LLMs
      description: >-
        Returns the complete catalog of large language models available for
        agent configuration.
      operationId: LlmsV1Controller_getAll
      parameters:
        - name: page
          required: false
          in: query
          schema:
            type: number
            example: 1
        - name: limit
          required: false
          in: query
          schema:
            example: 20
            type: number
        - name: sortBy
          required: false
          in: query
          schema:
            example: id
            type: string
        - name: sortOrder
          required: false
          in: query
          schema:
            enum:
              - ASC
              - DESC
            type: string
      responses:
        '200':
          description: LLMs returned successfully.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Llm'
              examples:
                success:
                  summary: Successful response
                  value:
                    - id: llm_A1B2C3D4E5F6G7
                      name: GPT-4.1 Mini
                      provider: openai
                      supports_structured_output: true
        '400':
          description: Bad request - invalid query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 400 Bad Request
                  value:
                    statusCode: 400
                    message: Invalid query parameters
                    error: Bad Request
        '401':
          description: Unauthorized - missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 401 Unauthorized
                  value:
                    statusCode: 401
                    message: API key is missing or invalid
                    error: Unauthorized
        '403':
          description: Forbidden - API key does not have access to this organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 403 Forbidden
                  value:
                    statusCode: 403
                    message: You do not have permission to access this resource
                    error: Forbidden
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 500 Internal Server Error
                  value:
                    statusCode: 500
                    message: Internal server error
                    error: Internal Server Error
      security:
        - bearer: []
components:
  schemas:
    Llm:
      type: object
      properties:
        id:
          type: string
          example: llm_abc123
          description: Signed LLM ID
      required:
        - id
    ErrorResponse:
      type: object
      properties:
        statusCode:
          type: integer
          example: 400
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          example: phone_number must be a valid E.164 phone number
        error:
          type: string
          example: Bad Request
      required:
        - statusCode
        - message
        - error
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````