Private Providers

Create a private provider

Changed on

Create 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.

post/private-providers

Request

  • Base URL
    https://openrouter.ai/api/v1
  • Auth
    HTTP bearer

Request body

CreatePrivateProviderRequest required

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.

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

Defaults to name.

name, string required

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.

slug, string

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

object required
data, PrivateProvider 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_policy from the response with the status

    • warning

      removed the request property data_policy

    • breaking

      the base_url request property's minLength was increased from 0 to 1

    10 more changes in this revision