Skip to main content
POST
Test a custom OpenAI-compatible provider before saving it

Authorizations

x-api-key
string
header
required

Organization API key passed as the x-api-key header. The raw key is the header value; do not prefix it with Bearer.

Body

application/json
baseUrl
string
required
Required string length: 1 - 2048
model
object
required
apiKey
string
Required string length: 1 - 8192
inferenceProviderId
string
Minimum string length: 1

Response

Test a custom OpenAI-compatible provider before saving it

ok
boolean
required
model
string
required
status
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
code
null
required
message
null
required
step
null
required