Private Providers
Update a private provider
Changed onUpdate a private provider’s display name or base URL. The name and slug cannot change, and the data policy is fixed by OpenRouter, so a body with no editable field is rejected (400). Management key required.
patch/private-providers/{slug}
Request
- Base URLhttps://openrouter.ai/api/v1
- AuthHTTP bearer
Path parameters
slug, string required
Example:acme
Request body
Update Private Provider Request required
base_url, string
HTTPS base URL of an OpenAI-compatible API, used by private endpoints under this provider that set no URL of their own. Without it, each endpoint must set its own. Private, internal, metadata and OpenRouter hosts are rejected.
display_name, string
Example request
{
"base_url": "https://inference.example.com/v1",
"display_name": "Acme"
}Response
The updated provider
object required
data, Private Provider required
Example response
{
"data": {
"base_url": "https://inference.example.com/v1",
"created_at": "2026-10-06T12:00:00.000Z",
"display_name": "Acme",
"name": "Acme",
"slug": "acme"
}
}Changes
- breaking
removed the required property
data/data_policyfrom the response with the status - warning
removed the request property
data_policy
- breaking
- breaking
the
base_urlrequest property's minLength was increased from0to1
4 more changes in this revision
- breaking