Private Providers

Update a private provider

Changed on

Update 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 URL
    https://openrouter.ai/api/v1
  • Auth
    HTTP bearer

Path parameters

slug, string required
Example:acme

Request body

UpdatePrivateProviderRequest 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, 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

    4 more changes in this revision