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

> Retrieve every large language model DialNexa supports for powering agents, with provider and capability information.

<Warning>
  **Legacy endpoint - deprecated.** Unversioned endpoints are scheduled for removal on **July 31, 2026**. Use the [`/v1` version](/docs/api-reference/v1/llms/list) for new integrations. This endpoint remains available for existing integrations until then.
</Warning>

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](/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 /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:
  /llms:
    get:
      tags:
        - LLMs
      summary: Get all LLMs
      description: >-
        **Legacy endpoint - deprecated, scheduled for removal on July 31,
        2026.** Use the `/v1` version for new integrations. 
      operationId: LlmsController_getAll
      parameters:
        - name: page
          required: false
          in: query
          description: Page number
          schema:
            type: number
            example: 1
        - name: limit
          required: false
          in: query
          description: Items per page
          schema:
            example: 10
            type: number
        - name: sortBy
          required: false
          in: query
          description: Field to sort by
          schema:
            example: id
            type: string
        - name: sortOrder
          required: false
          in: query
          description: Sort order (ASC or DESC)
          schema:
            enum:
              - ASC
              - DESC
            type: string
      responses:
        '200':
          description: List of all LLMs
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Llm'
        '500':
          description: Internal server error
      deprecated: true
components:
  schemas:
    Llm:
      type: object
      properties:
        id:
          type: string
          example: llm_abc123
          description: Signed LLM ID
      required:
        - id
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````