Skip to main content
GET
/
llms
Get all LLMs
curl --request GET \
  --url https://api.dialnexa.com/llms \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.dialnexa.com/llms"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.dialnexa.com/llms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dialnexa.com/llms",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.dialnexa.com/llms"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.dialnexa.com/llms")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.dialnexa.com/llms")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
[
  {
    "id": "llm_abc123"
  }
]
Legacy endpoint - deprecated. Unversioned endpoints are scheduled for removal on July 31, 2026. Use the /v1 version for new integrations. This endpoint remains available for existing integrations until then.
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 before publishing.
See LLMs and conversation behavior for deeper guidance.

Errors

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
number

Page number

Example:

1

limit
number

Items per page

Example:

10

sortBy
string

Field to sort by

Example:

"id"

sortOrder
enum<string>

Sort order (ASC or DESC)

Available options:
ASC,
DESC

Response

List of all LLMs

id
string
required

Signed LLM ID

Example:

"llm_abc123"