Create Provider
const url = 'https://example.com/v1/settings/providers';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"","type":"openrouter","base_url":"","model_prefix":"","api_key":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Unique in the organisation; models are added to a provider by it. Defaults to the type’s name, e.g. OpenRouter.
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).
Where its API is. Empty for OpenRouter’s own, https://openrouter.ai/api; otherwise the server’s address, e.g. https://litellm.example.com.
openai only: put before rowlab’s catalog ids, for a gateway that routes them under a prefix, e.g. openrouter/.
Responses
Section titled “Responses”Successful Response
A provider as the API shows it: without its key.
object
Whether new runs ask rowlab’s catalog models through it.
Example
{ "type": "openrouter"}Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}