Skip to main content
POST
modelProviders.test(draft): verifies a key without storing anything

Authorizations

Authorization
string
header
required

An API key, or a session token on its own session

Body

application/json
kind
enum<string>
required
Available options:
anthropic,
openai,
anthropic-compatible,
openai-compatible
apiKey
string
required
baseUrl
string
testModel
string

Response

The verification's outcome

ok
boolean
required
method
enum<string>
required

How the key was verified.

Available options:
list,
request
models
string[] | null
required

The IDs the provider lists; null when it lists none.

error
string | null
required

When not ok: what the provider answered.