Skip to main content
POST
Test Model Connection

Authorizations

Authorization
string
header
required

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

Body

application/json

Request schema for testing an unsaved model connection

model_provider
string
required
model_name
string
required
api_key
string | null
base_url
string | null
category
string
default:llm
temperature
number | null
dimension
integer | null
abilities
string[] | null
top_n
integer | null
instruct
string | null

Response

Successful Response

Model test response schema

model_id
string
required
status
string
required
response_time
number | null
required
message
string | null
required
error
string | null
required