Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

Check that a provider answers

POST
/v1/studio/admin/providers/{name}/test
curl --request POST \
--url http://localhost:8300/v1/studio/admin/providers/example/test \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <x-api-key>'

Admin only. Studio asks pipelines.providers.test (30 s, else 503); ?model= adds one tiny chat completion. A failed test is 200 with ok false and failure.

name
required
string

A provider’s name (unknown = 404 on DELETE and test; malformed = 404)

model
string

The result

Media typeapplication/json
object
ok
required
boolean
models
required

What its /models listed

Array<string>
<= 1000 items
answer

With ?model=: its answer to a tiny prompt

string | null
error
required
string | null
failure
required

Network: unreachable, TLS, timeout, 5xx, 429; answer: a 4xx (401: the key) or not OpenAI-shaped; refused: the host rule; off: remote models are off

string | null
Allowed values: network answer refused off
seconds
required
number
thinking

What each listed model offers (only the models a rule covers): from the preset’s rules, or for a preset whose thinking is “models” (OpenRouter) from the provider’s /models answer (its reasoning supported_efforts and mandatory)

object
<= 1000 properties
key
additional properties

What one model offers: its levels (empty when it always thinks), always (thinks and cannot be set), default (what the provider uses when nothing is sent)

object
levels
required
Array<string>
<= 4 items unique items
Allowed values: off on low medium high
always
boolean
default

Off + on, or some of off, low, medium, high (our high is the provider’s high, never max)

string
Allowed values: off on low medium high

Example

{
"failure": "network",
"thinking": {
"additionalProperty": {
"levels": [
"off"
],
"default": "off"
}
}
}

Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Valid token without the admin role: “admin role required”

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Not found

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}