Create a private provider
Changed onCreate a private, bring-your-own-key provider visible only to your organization. Use its slug as provider_slug when creating private endpoints. Requires the private endpoints entitlement. Management key required.
Request
- Base URLhttps://openrouter.ai/api/v1
- AuthHTTP bearer
Request body
A private provider serves only your organization, so its endpoints are recorded as retaining no prompts, training on none and publishing none, and pass every data-policy filter your account or guardrails apply.
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.
Defaults to name.
Provider name, shown in your activity, logs and Broadcast output. 2-64 letters, numbers, spaces, dots, underscores or hyphens. Cannot be changed later. Neither the name nor its slug may match a public provider name or slug (case-insensitive); other customers may use the same name.
2-64 lowercase letters and numbers, separated by single hyphens. Cannot be changed later. Defaults to the name lowercased, with every run of other characters replaced by a hyphen (Acme Inference becomes acme-inference).
Example request
{
"base_url": "https://inference.example.com/v1",
"display_name": "Acme",
"name": "Acme",
"slug": "acme"
}Response
The provider was created
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
10 more changes in this revision
- breaking