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

Create or replace a local server or a remote provider

PUT
/v1/studio/admin/providers/{name}
curl --request PUT \
--url http://localhost:8300/v1/studio/admin/providers/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "kind": "server", "api": "openai", "title": "example", "base_url": "example", "models": [ "example" ], "default_model": "example", "enabled": true, "timeout_s": 120, "host": "example", "memory_gb": 1, "key_secret": "provider-openai", "max_in_flight": 2, "compat": { "temperature": true, "strict_schema": true, "headers": { "additionalProperty": "example" } }, "preset": "example", "thinking": { "additionalProperty": "off" } }'

Admin only (403). 201 when created, 200 when replaced; a change applies to batches submitted after it (a batch calls the provider as it was at Submit). 422 for a base_url that breaks the host rule, a default_model not in models, a server without host or memory_gb, a remote without key_secret. 409 remote models are off on this deployment for kind remote while the deployment’s switch is off, and <name> is a <kind>; delete it first to change a provider’s kind. From setting(no rule of its preset covers it, or it always thinks) andthinking: takes `.

name
required
string

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

Media typeapplication/json

Create or replace a provider. server: http(s) base_url whose host is a loopback or private address, or what host.docker.internal resolves to there, or a name that resolves only to such (checked again at every call); host and memory_gb required. remote: https base_url, key_secret required, refused (409) unless the deployment has remote models on.

object
kind
required

Server: a local server you run (loopback or private address, or the Docker host: what host.docker.internal resolves to); remote: outside the machine (https; only when the deployment has remote models on); only with remote models on; never a model source)

string
Allowed values: server remote search
api

Absent = openai; kind search needs brave, the others openai (422)

string
Allowed values: openai brave
title
string
>= 1 characters <= 60 characters
base_url
required
string
>= 8 characters <= 300 characters /^https?://[^\s/?#@]+(/[^\s?#]*)?$/
models
required
Array<string>
>= 1 items <= 16 items unique items
default_model

Absent = the first of models

string
enabled
boolean
default: true
timeout_s
integer
default: 120 >= 5 <= 600
host
string
/^[a-z0-9]{1,32}$/
memory_gb
number
>= 0.5 <= 1024
key_secret

Remote and search: required

string
/^[a-z0-9][a-z0-9_.-]{0,63}$/
max_in_flight
integer
default: 2 >= 1 <= 8
compat

What a provider’s OpenAI layer refuses of what pipelines sends (messages defs providerCompat; from a preset, Anthropic’s). temperature false: none sent; strict_schema true: json_schema with strict true, never retried as json_object; Absent = the usual calls

object
temperature
boolean
strict_schema
boolean
headers

Fixed extra headers sent on every call to the provider (chat, Test, Fetch, the key check); only allow-listed safe names (never authorization, x-api-key, cookie, host): anthropic-version (Anthropic’s preset: 2023-06-01)

object
>= 1 properties <= 4 properties
key
additional properties
string
/^[\x21-\x7e][\x20-\x7e]{0,99}$/
preset

The preset the form was filled from

string
/^[a-z][a-z0-9-]{0,31}$/
thinking

: a thinking level per model. Each key is one of models, each level one its rule allows (else 422 naming the model; a model no rule covers is 422 too). Absent or {} = nothing sent: the provider’s own default. Studio resolves it into the batch snapshot (messages defs providerThinking)

object
<= 16 properties
key
additional properties

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

Replaced

Media typeapplication/json

One model provider as the admin sees it.

object
name
required
string
/^[a-z][a-z0-9-]{0,31}$/
kind
required

Server: a local server you run (loopback or private address, or the Docker host: what host.docker.internal resolves to); remote: outside the machine (https; only when the deployment has remote models on); only with remote models on; never a model source)

string
Allowed values: server remote search
api
required

Openai: OpenAI-compatible /v1/chat/completions (ChatOpenAI(base_url=…))

string
Allowed values: openai brave
title

What users see (Ollama on the Mac); absent = name

string
<= 60 characters
base_url
required
string
<= 300 characters
models
required

The models pipelines may name

Array<string>
>= 1 items <= 16 items unique items
default_model
required

One of models (server:<name> without a model)

string
enabled
required
boolean
timeout_s
required
integer
>= 5 <= 600
host

Server: the GPU host whose memory it shares

string
memory_gb

Server: declared; the host reserves it while enabled

number
>= 0.5 <= 1024
key_secret

Remote: the secret file’s name

string
max_in_flight

Remote: calls in flight at once (default 2)

integer
>= 1 <= 8
compat

What a provider’s OpenAI layer refuses of what pipelines sends (messages defs providerCompat; from a preset, Anthropic’s). temperature false: none sent; strict_schema true: json_schema with strict true, never retried as json_object; Absent = the usual calls

object
temperature
boolean
strict_schema
boolean
headers

Fixed extra headers sent on every call to the provider (chat, Test, Fetch, the key check); only allow-listed safe names (never authorization, x-api-key, cookie, host): anthropic-version (Anthropic’s preset: 2023-06-01)

object
>= 1 properties <= 4 properties
key
additional properties
string
/^[\x21-\x7e][\x20-\x7e]{0,99}$/
preset

The preset it was filled from

string
/^[a-z][a-z0-9-]{0,31}$/
thinking

: a thinking level per model. Each key is one of models, each level one its rule allows (else 422 naming the model; a model no rule covers is 422 too). Absent or {} = nothing sent: the provider’s own default. Studio resolves it into the batch snapshot (messages defs providerThinking)

object
<= 16 properties
key
additional properties

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
thinking_levels

(read only): what each saved model offers, for the models its preset’s rules cover (absent: no control). The form and the AI agents tab need no copy of the rules

object
<= 16 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
owner_id

(read only): an Only-you provider’s owner, the admin who added it from a personal plugin. Only that account sees or uses it (every list, the AI agents picker, pipeline rules, the assistant); absent = everyone’s

string format: uuid
plugin

(read only): the plugin it was made from (Add as provider)

string
/^[a-z][a-z0-9-]{0,22}$/
created_at
required
string format: date-time
updated_at
required
string format: date-time

Example

{
"kind": "server",
"api": "openai",
"base_url": "http://host.docker.internal:11434/v1",
"thinking": {
"additionalProperty": "off"
},
"thinking_levels": {
"additionalProperty": {
"levels": [
"off"
],
"default": "off"
}
}
}

Created

Media typeapplication/json

One model provider as the admin sees it.

object
name
required
string
/^[a-z][a-z0-9-]{0,31}$/
kind
required

Server: a local server you run (loopback or private address, or the Docker host: what host.docker.internal resolves to); remote: outside the machine (https; only when the deployment has remote models on); only with remote models on; never a model source)

string
Allowed values: server remote search
api
required

Openai: OpenAI-compatible /v1/chat/completions (ChatOpenAI(base_url=…))

string
Allowed values: openai brave
title

What users see (Ollama on the Mac); absent = name

string
<= 60 characters
base_url
required
string
<= 300 characters
models
required

The models pipelines may name

Array<string>
>= 1 items <= 16 items unique items
default_model
required

One of models (server:<name> without a model)

string
enabled
required
boolean
timeout_s
required
integer
>= 5 <= 600
host

Server: the GPU host whose memory it shares

string
memory_gb

Server: declared; the host reserves it while enabled

number
>= 0.5 <= 1024
key_secret

Remote: the secret file’s name

string
max_in_flight

Remote: calls in flight at once (default 2)

integer
>= 1 <= 8
compat

What a provider’s OpenAI layer refuses of what pipelines sends (messages defs providerCompat; from a preset, Anthropic’s). temperature false: none sent; strict_schema true: json_schema with strict true, never retried as json_object; Absent = the usual calls

object
temperature
boolean
strict_schema
boolean
headers

Fixed extra headers sent on every call to the provider (chat, Test, Fetch, the key check); only allow-listed safe names (never authorization, x-api-key, cookie, host): anthropic-version (Anthropic’s preset: 2023-06-01)

object
>= 1 properties <= 4 properties
key
additional properties
string
/^[\x21-\x7e][\x20-\x7e]{0,99}$/
preset

The preset it was filled from

string
/^[a-z][a-z0-9-]{0,31}$/
thinking

: a thinking level per model. Each key is one of models, each level one its rule allows (else 422 naming the model; a model no rule covers is 422 too). Absent or {} = nothing sent: the provider’s own default. Studio resolves it into the batch snapshot (messages defs providerThinking)

object
<= 16 properties
key
additional properties

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
thinking_levels

(read only): what each saved model offers, for the models its preset’s rules cover (absent: no control). The form and the AI agents tab need no copy of the rules

object
<= 16 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
owner_id

(read only): an Only-you provider’s owner, the admin who added it from a personal plugin. Only that account sees or uses it (every list, the AI agents picker, pipeline rules, the assistant); absent = everyone’s

string format: uuid
plugin

(read only): the plugin it was made from (Add as provider)

string
/^[a-z][a-z0-9-]{0,22}$/
created_at
required
string format: date-time
updated_at
required
string format: date-time

Example

{
"kind": "server",
"api": "openai",
"base_url": "http://host.docker.internal:11434/v1",
"thinking": {
"additionalProperty": "off"
},
"thinking_levels": {
"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"
}

The resource’s state forbids this

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Invalid input

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}