AI
List AI models
AI
List AI models
Get a list of all the supported AI models.
GET
/
chatbots
/
{chatbotId}
/
ai
/
kb
/
models
curl --request GET \
--url https://api.chatling.ai/v2/chatbots/{chatbotId}/ai/kb/models \
--header 'Authorization: Bearer <token>'
{
"status": "success",
"data": {
"pages": {
"current_page": 1,
"last_page": 1,
"per_page": 15
},
"models": [
{
"id": 1,
"name": "GPT-3.5 Turbo",
"credits": 1,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 2,
"name": "GPT-4",
"credits": 10,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 3,
"name": "Claude 3 Opus",
"credits": 18,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 4,
"name": "Claude 3 Sonnet",
"credits": 4,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 5,
"name": "Claude 3 Haiku",
"credits": 1,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 6,
"name": "GPT-4o",
"credits": 5,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 7,
"name": "Claude 3.5 Sonnet",
"credits": 4,
"temperature": {
"min": 0,
"max": 1
}
}
]
}
}
Request parameters
Path
chatbotId
string
requiredThe chatbot ID.
Query
page
integer
default: "1"The page number for pagination.
Response
status
string
The status of the request. Will be success
if the request was successful, otherwise error
.
data
object
pages
object
current_page
integer
The current page number.
last_page
integer
The last page number.
per_page
integer
The number of items per page.
models
array
id
integer
The unique identifier of the AI model.
name
string
The name of the model.
credits
array
The number of AI credits consumed for each response generated by the model.
temperature
object
The minimum and maximum temperature values for the model.
{
"status": "success",
"data": {
"pages": {
"current_page": 1,
"last_page": 1,
"per_page": 15
},
"models": [
{
"id": 1,
"name": "GPT-3.5 Turbo",
"credits": 1,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 2,
"name": "GPT-4",
"credits": 10,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 3,
"name": "Claude 3 Opus",
"credits": 18,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 4,
"name": "Claude 3 Sonnet",
"credits": 4,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 5,
"name": "Claude 3 Haiku",
"credits": 1,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 6,
"name": "GPT-4o",
"credits": 5,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 7,
"name": "Claude 3.5 Sonnet",
"credits": 4,
"temperature": {
"min": 0,
"max": 1
}
}
]
}
}
curl --request GET \
--url https://api.chatling.ai/v2/chatbots/{chatbotId}/ai/kb/models \
--header 'Authorization: Bearer <token>'
{
"status": "success",
"data": {
"pages": {
"current_page": 1,
"last_page": 1,
"per_page": 15
},
"models": [
{
"id": 1,
"name": "GPT-3.5 Turbo",
"credits": 1,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 2,
"name": "GPT-4",
"credits": 10,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 3,
"name": "Claude 3 Opus",
"credits": 18,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 4,
"name": "Claude 3 Sonnet",
"credits": 4,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 5,
"name": "Claude 3 Haiku",
"credits": 1,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 6,
"name": "GPT-4o",
"credits": 5,
"temperature": {
"min": 0,
"max": 1
}
},
{
"id": 7,
"name": "Claude 3.5 Sonnet",
"credits": 4,
"temperature": {
"min": 0,
"max": 1
}
}
]
}
}