Skip to main content
GET
/
v1
/
misc
/
llm_providers
List Llm Providers
curl --request GET \
  --url https://api.xpander.ai/v1/misc/llm_providers \
  --header 'x-api-key: <api-key>'
import requests

url = "https://api.xpander.ai/v1/misc/llm_providers"

headers = {"x-api-key": "<api-key>"}

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

print(response.text)
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://api.xpander.ai/v1/misc/llm_providers', 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.xpander.ai/v1/misc/llm_providers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);

$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.xpander.ai/v1/misc/llm_providers"

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

req.Header.Add("x-api-key", "<api-key>")

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.xpander.ai/v1/misc/llm_providers")
.header("x-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.xpander.ai/v1/misc/llm_providers")

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

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
[
  {
    "id": "<string>",
    "name": "<string>",
    "internal_identifier": "<string>",
    "logo": "<string>",
    "description": "<string>"
  }
]
List all available LLM providers. Use the provider’s internal_identifier with List LLM Models to retrieve available models.

Response

Returns an array of LLMProviderItem objects.
id
string
Provider unique identifier
name
string
Provider display name (e.g., “OpenAI”, “Anthropic”)
internal_identifier
string
Internal identifier used in API calls (e.g., openai, anthropic). Use this value as model_provider when creating or updating agents.
URL to the provider’s logo image
description
string
Brief description of the provider

Example Request

curl -X GET -H "x-api-key: <your-api-key>" \
  "https://api.xpander.ai/v1/misc/llm_providers"

Notes

  • Use the internal_identifier value as the model_provider field when creating or updating agents
  • To see available models for a provider, use List LLM Models with the internal_identifier

Authorizations

x-api-key
string
header
required

API Key for authentication

Response

200 - application/json

Successful Response

id
string
required

Unique identifier for this LLM provider.

name
string
required

Human-readable display name of the provider (e.g., 'Anthropic', 'OpenAI').

internal_identifier
string
required

The provider key used in agent configuration. Use this value for the agent's model_provider field (e.g., 'anthropic', 'openai', 'gemini').

Logo identifier for the provider's icon.

description
string | null

Brief description of the provider.