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

> List large language models that can be used as fallback models.

Read only
Lists the language models that can serve as an agent's fallback LLM. A fallback LLM takes over mid-call when the primary model is slow or unavailable, so the conversation keeps going instead of stalling.

## When to use this

* **Configuring fallbacks**: pick a model from this list, then enable it on the agent with `fallback_llm_enabled`, `llm_fallback_model`, and `llm_fallback_delay_ms` via [Create Agent](https://dialnexa.com/docs/api-reference/v1/agents/create.md) or [Update Agent](https://dialnexa.com/docs/api-reference/v1/agents/update.md).
* **Validating configuration**: confirm a previously configured fallback model is still offered before publishing an agent change.

The fallback set is maintained separately from the main [List LLMs](https://dialnexa.com/docs/api-reference/v1/llms/list.md) catalog: not every primary model is eligible as a fallback. Choose a fallback from a different provider than the primary model so a provider-wide outage does not take out both.

The API-key response contains `id`, `name`, and `provider`; it does not expose `supports_tool_calling`. Check tool compatibility in the dashboard or MCP catalog. The API validates the effective fallback model when the agent configuration is saved.

## List Fallback LLMs results

The response is one page of models in a plain JSON array. The default page size is 20, and requests above 100 models per page are capped at 100. Increment `page` until the array is shorter than your effective page size. Each entry includes the model's `id` and display metadata; use the response schema on this page for the exact fields. See [API errors](https://dialnexa.com/docs/api-reference/api-fundamentals.md#handle-dialnexa-api-errors) for the standard error format.

## Query parameters

| Parameter | Description |
| - | - |
| `page` | Page number, starting at 1. Must be a whole number; `0` or below is treated as `1`. |
| `limit` | Models per page. Must be a whole number. Default 20; `0` also returns 20, values above 100 are treated as 100, and a negative value fails with `500`. |
| `sortBy` | Column to sort by, for example `id`, `name` or `provider`. Default id. An unknown column returns `500`. |
| `sortOrder` | Sort direction. Default ASC. One of `ASC`, `DESC`. |


## OpenAPI

````yaml GET /v1/llms/fallback
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/fallback:
    get:
      tags:
        - LLMs
      summary: List Fallback LLMs
      description: >-
        Returns one page of eligible fallback language models. Defaults to 20
        models per page; limits above 100 are capped at 100. The API-key
        response is a plain array without pagination metadata.
      operationId: listFallbackLlms
      parameters:
        - name: page
          required: false
          in: query
          description: >-
            Page number, starting at 1. Must be a whole number; 0 or below is
            treated as 1.
          schema:
            example: 1
            type: number
        - name: limit
          required: false
          in: query
          description: >-
            Models per page. Must be a whole number. Default 20; 0 also returns
            20, values above 100 are treated as 100, and a negative value fails
            with 500.
          schema:
            example: 20
            type: number
        - name: sortBy
          required: false
          in: query
          description: >-
            Column to sort by, for example id, name or provider. Default id. An
            unknown column returns 500.
          schema:
            example: id
            type: string
        - name: sortOrder
          required: false
          in: query
          description: Sort direction. Default ASC.
          schema:
            enum:
              - ASC
              - DESC
            type: string
      responses:
        '200':
          description: Fallback LLM returned successfully.
          content:
            application/json:
              schema:
                type: array
                items:
                  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_mh2k7w9q4x1zpt
                      name: Gemini 3.1 Flash Lite
                      provider: gemini
        '400':
          description: Bad request - invalid query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                error:
                  summary: 400 Bad Request
                  value:
                    message: >-
                      Request validation failed: Validation failed (numeric
                      string is expected)
        '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
        '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.