Skip to main content
POST
modelProviders.test(name): verifies the stored key and records the status

Authorizations

Authorization
string
header
required

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

Path Parameters

name
string
required

The model provider's name

Pattern: ^[a-z0-9-]{1,32}$

Body

application/json
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.