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
required

The 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
{
    "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
                }
            }
        ]
    }
}