Skip to main content
POST
/
admin
/
setting
/
test-llm
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/admin/setting/test-llm \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "openai",
  "name": "<string>",
  "apiKey": "<string>",
  "baseUrl": "<string>",
  "models": "",
  "modelKey": "<string>",
  "ability": [
    "image"
  ]
}
'
{
  "success": true,
  "response": "<string>",
  "ability": {
    "image": true,
    "pdf": true,
    "webSearch": true
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
type
enum<string>
required
Available options:
openai,
anthropic,
google,
azure,
cohere,
mistral,
deepseek,
qwen,
zhipu,
lingyiwanwu,
xai,
togetherai,
ollama,
amazonBedrock,
openRouter,
openaiCompatible
name
string
required
apiKey
string
required
baseUrl
string<uri>
required
models
string
default:""
modelKey
string
ability
enum<string>[]
Available options:
image,
pdf,
webSearch

Response

200 - application/json

Test result

success
boolean
required
response
string
ability
object
Last modified on December 10, 2025