Skip to content

Create Provider

POST
/v1/settings/providers
curl --request POST \
--url https://example.com/v1/settings/providers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "", "type": "openrouter", "base_url": "", "model_prefix": "", "api_key": "example" }'

Save a provider once it accepts the key. The organisation’s first becomes active.

Media typeapplication/json
ProviderInput
object
name
Name

Unique in the organisation; models are added to a provider by it. Defaults to the type’s name, e.g. OpenRouter.

string
""
type
required
Type

openrouter; openai for an OpenAI-compatible server (LiteLLM, or vLLM for generic models and LoRA adapters); systemone for a server of dedicated decision models (vLLM, or a model’s own).

string
Allowed values: openrouter openai systemone
base_url
Base Url

Where its API is. Empty for OpenRouter’s own, https://openrouter.ai/api; otherwise the server’s address, e.g. https://litellm.example.com.

string
""
model_prefix
Model Prefix

openai only: put before rowlab’s catalog ids, for a gateway that routes them under a prefix, e.g. openrouter/.

string
""
api_key
Any of:
string

Successful Response

Media typeapplication/json
Provider

A provider as the API shows it: without its key.

object
id
required
Id
string
name
required
Name
string
type
required
Type
string
Allowed values: openrouter openai systemone
base_url
required
Base Url
string
model_prefix
required
Model Prefix
string
active
required
Active

Whether new runs ask rowlab’s catalog models through it.

boolean
created_at
required
Created At
string format: date-time

Example

{
"type": "openrouter"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}