Example Usage
import { PrivateProvider } from "@openrouter/sdk/models";
let value: PrivateProvider = {
baseUrl: "https://inference.example.com/v1",
createdAt: "2026-10-06T12:00:00.000Z",
dataPolicy: {
promptRetentionDays: null,
retainsPrompts: false,
training: false,
},
displayName: "Acme",
name: "Acme",
slug: "acme",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
baseUrl | 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. | https://inference.example.com/v1 |
createdAt | string | ✔️ | N/A | |
dataPolicy | models.PrivateProviderDataPolicy1 | ✔️ | Your declared data policy, or null when none was declared. | |
displayName | string | ✔️ | Human-readable provider name shown in the UI. | Acme |
name | string | ✔️ | Provider name, shown in your activity, logs and Broadcast output. | Acme |
slug | string | ✔️ | The slug you chose, unique within your account. Use it as provider_slug when creating private endpoints and BYOK keys, and in provider.order, only and ignore. | acme |