Skip to content

Models - LLM

Large Language Model management operations


List all LLM models

GET
/api/v1/provider/models/llm

Retrieve a list of all configured LLM models

Authorizations

ApiKeyAuth

API Key authentication using X-API-Key header.
Example: X-API-Key: lbk_your_api_key_here

TypeAPI Key (header: X-API-Key)
or
BearerAuth

Bearer token authentication. Can be either a user JWT token or an API key.
Example: Authorization: Bearer <token_or_key>

TypeHTTP (bearer)

Responses

Successful response

application/json
JSON
{
"code": 0,
"msg": "ok",
"data": {
"models": [
{
"uuid": "string",
"name": "GPT-4",
"description": "OpenAI GPT-4 model",
"requester": "openai-chat-completions",
"requester_config": {
"model": "gpt-4",
"args": {
}
},
"api_keys": [
{
"name": "string",
"keys": [
"string"
]
}
],
"abilities": [
[
"chat",
"vision"
]
],
"extra_args": {
},
"created_at": "string",
"updated_at": "string"
}
]
}
}

Playground

Server
Authorization

Samples


Create a new LLM model

POST
/api/v1/provider/models/llm

Create and configure a new LLM model

Authorizations

ApiKeyAuth

API Key authentication using X-API-Key header.
Example: X-API-Key: lbk_your_api_key_here

TypeAPI Key (header: X-API-Key)
or
BearerAuth

Bearer token authentication. Can be either a user JWT token or an API key.
Example: Authorization: Bearer <token_or_key>

TypeHTTP (bearer)

Request Body

application/json
JSON
{
"name": "string",
"description": "string",
"requester": "string",
"requester_config": {
},
"api_keys": [
{
}
],
"abilities": [
"string"
],
"extra_args": {
}
}

Responses

Model created successfully

application/json
JSON
{
"code": 0,
"msg": "ok",
"data": {
"uuid": "550e8400-e29b-41d4-a716-446655440000"
}
}

Playground

Server
Authorization
Body

Samples


Get a specific LLM model

GET
/api/v1/provider/models/llm/{model_uuid}

Retrieve details of a specific LLM model by UUID

Authorizations

ApiKeyAuth

API Key authentication using X-API-Key header.
Example: X-API-Key: lbk_your_api_key_here

TypeAPI Key (header: X-API-Key)
or
BearerAuth

Bearer token authentication. Can be either a user JWT token or an API key.
Example: Authorization: Bearer <token_or_key>

TypeHTTP (bearer)

Parameters

Path Parameters

model_uuid*

Model UUID

Typestring
Required
Format"uuid"

Responses

Successful response

application/json
JSON
{
"code": 0,
"msg": "ok",
"data": {
"model": {
"uuid": "string",
"name": "GPT-4",
"description": "OpenAI GPT-4 model",
"requester": "openai-chat-completions",
"requester_config": {
"model": "gpt-4",
"args": {
}
},
"api_keys": [
{
"name": "string",
"keys": [
"string"
]
}
],
"abilities": [
[
"chat",
"vision"
]
],
"extra_args": {
},
"created_at": "string",
"updated_at": "string"
}
}
}

Playground

Server
Authorization
Variables
Key
Value

Samples


Update an LLM model

PUT
/api/v1/provider/models/llm/{model_uuid}

Update the configuration of an existing LLM model

Authorizations

ApiKeyAuth

API Key authentication using X-API-Key header.
Example: X-API-Key: lbk_your_api_key_here

TypeAPI Key (header: X-API-Key)
or
BearerAuth

Bearer token authentication. Can be either a user JWT token or an API key.
Example: Authorization: Bearer <token_or_key>

TypeHTTP (bearer)

Parameters

Path Parameters

model_uuid*

Model UUID

Typestring
Required
Format"uuid"

Request Body

application/json
JSON
{
"name": "string",
"description": "string",
"requester_config": {
},
"api_keys": [
{
}
],
"abilities": [
"string"
],
"extra_args": {
}
}

Responses

Model updated successfully

application/json
JSON
{
"code": 0,
"msg": "ok",
"data": {
}
}

Playground

Server
Authorization
Variables
Key
Value
Body

Samples


Delete an LLM model

DELETE
/api/v1/provider/models/llm/{model_uuid}

Remove an LLM model from the system

Authorizations

ApiKeyAuth

API Key authentication using X-API-Key header.
Example: X-API-Key: lbk_your_api_key_here

TypeAPI Key (header: X-API-Key)
or
BearerAuth

Bearer token authentication. Can be either a user JWT token or an API key.
Example: Authorization: Bearer <token_or_key>

TypeHTTP (bearer)

Parameters

Path Parameters

model_uuid*

Model UUID

Typestring
Required
Format"uuid"

Responses

Model deleted successfully

application/json
JSON
{
"code": 0,
"msg": "ok",
"data": {
}
}

Playground

Server
Authorization
Variables
Key
Value

Samples


Test an LLM model

POST
/api/v1/provider/models/llm/{model_uuid}/test

Test the connectivity and functionality of an LLM model

Authorizations

ApiKeyAuth

API Key authentication using X-API-Key header.
Example: X-API-Key: lbk_your_api_key_here

TypeAPI Key (header: X-API-Key)
or
BearerAuth

Bearer token authentication. Can be either a user JWT token or an API key.
Example: Authorization: Bearer <token_or_key>

TypeHTTP (bearer)

Parameters

Path Parameters

model_uuid*

Model UUID

Typestring
Required
Format"uuid"

Request Body

application/json
JSON
{
}

Responses

Model test successful

application/json
JSON
{
"code": 0,
"msg": "ok",
"data": {
}
}

Playground

Server
Authorization
Variables
Key
Value
Body

Samples


Powered by VitePress OpenAPI