POST
/
admin
/
setting
/
test-llm
shell
curl --request POST \
  --url https://app.teable.cn/api/admin/setting/test-llm \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"type":"openai","name":"string","apiKey":"string","baseUrl":"http://example.com","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
name
string
required
apiKey
string
required
baseUrl
string<uri>
required
models
string
default:""
modelKey
string
ability
enum<string>[]

Response

200 - application/json

Test result

success
boolean
required
response
string
ability
object