> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# PrivateEndpoint

## Example Usage

```typescript theme={null}
import { PrivateEndpoint } from "@openrouter/sdk/models";

let value: PrivateEndpoint = {
  baseUrl: "https://contoso.openai.azure.com",
  declaredParameters: [
    "temperature",
    "seed",
  ],
  declaredRegion: "us",
  declaredZdr: true,
  id: "5b1c4c4e-7d0a-4a8e-9f3a-2d6c1b0e8a11",
  modelName: "OpenAI: GPT-4o",
  modelPermaslug: "openai/gpt-4o-2024-08-06",
  modelSlug: "openai/gpt-4o",
  pricing: {
    completion: "0.00001",
    prompt: "0.0000025",
  },
  providerName: "Azure",
  providerSlug: "azure",
  settings: {
    completions: {
      chat: true,
      text: false,
    },
    contextLength: 128000,
    excludedParameters: [
      "logit_bias",
    ],
    inputs: {
      audio: false,
      base64Files: null,
      base64Images: true,
      fileUrls: null,
      imageUrls: true,
    },
    maxCompletionTokens: 16384,
    maxPromptTokens: null,
    quantization: "bf16",
    reasoning: {
      returnMechanism: "reasoning",
      supported: true,
    },
    toolChoice: {
      auto: true,
      function: false,
      none: true,
      required: true,
    },
  },
  status: "active",
  testedParameters: [
    "tools",
    "tool_choice",
    "response_format",
  ],
  upstreamModelId: "gpt-4o-prod",
};
```

## Fields

| Field | Type | Required | Description | Example |
| - | - | - | - | - |
| `baseUrl` | *string* | ✔️ | HTTPS base URL of your deployment, or `null` for providers whose URL is derived from the BYOK credential (Azure, Amazon Bedrock, Google Vertex). | [https://contoso.openai.azure.com](https://contoso.openai.azure.com) |
| `declaredParameters` | *string*\[] | ✔️ | Parameters you declared the upstream supports. Requests that use a parameter only route to this endpoint when it is tested or declared. | \[ "temperature", "seed" ] |
| `declaredRegion` | [models.PrivateEndpointDeclaredRegion](../models/privateendpointdeclaredregion.mdx) | ✔️ | Where you attest this deployment processes data. `global` means not regional; `null` means undeclared. | us |
| `declaredZdr` | *boolean* | ✔️ | Whether you attest this deployment retains no prompt or completion data. `null` means undeclared. | true |
| `id` | *string* | ✔️ | Stable identifier of the private endpoint. | 5b1c4c4e-7d0a-4a8e-9f3a-2d6c1b0e8a11 |
| `maxCompletionTokens` | *number* | ➖ | Most completion tokens a request routed to this endpoint can produce, or `null` when the endpoint sets no cap beyond the model context length. | 131072 |
| `modelName` | *string* | ✔️ | Display name of the model, or `null` when the model is no longer listed. | OpenAI: GPT-4o |
| `modelPermaslug` | *string* | ✔️ | Permanent slug of the model this endpoint serves. | openai/gpt-4o-2024-08-06 |
| `modelSlug` | *string* | ✔️ | Public model slug, or `null` when the model is no longer listed. | openai/gpt-4o |
| `pricing` | [models.PrivateEndpointPricing](../models/privateendpointpricing.mdx) | ✔️ | Negotiated per-token rates reported for requests routed to this endpoint. | \{ "cache\_read": "0.00000025", "cache\_write": "0.000003125", "completion": "0.00001", "prompt": "0.0000025" } |
| `providerName` | *string* | ✔️ | Display name of the upstream provider. | Azure |
| `providerSlug` | *string* | ✔️ | Slug of the upstream provider, or `null` when the provider is no longer listed. | azure |
| `settings` | [models.PrivateEndpointSettings](../models/privateendpointsettings.mdx) | ✔️ | Capabilities and limits routing uses for this endpoint. A new endpoint copies them from the public endpoint for the same model and provider, or from the model, and the owner can change them. Rate limits are not part of this object: a private endpoint is billed to its own upstream key, so request limits stay with the provider. | \{ "completions": \{ "chat": true, "text": false }, "context\_length": 128000, "excluded\_parameters": \[ "logit\_bias" ], "inputs": \{ "audio": false, "base64\_files": null, "base64\_images": true, "file\_urls": null, "image\_urls": true }, "max\_completion\_tokens": 16384, "max\_prompt\_tokens": null, "quantization": "bf16", "reasoning": \{ "return\_mechanism": "reasoning", "supported": true }, "tool\_choice": \{ "auto": true, "function": false, "none": true, "required": true } } |
| `status` | [models.PrivateEndpointStatus](../models/privateendpointstatus.mdx) | ✔️ | Lifecycle state. `draft` endpoints are not routable until validated and activated; `disabled` endpoints are activated but temporarily not routable. | active |
| `testedParameters` | *string*\[] | ✔️ | Parameters a validation run proved the upstream honors (`tools`, `tool_choice`, `response_format`, `structured_outputs`, `stop`). Read-only; cleared when the upstream configuration changes. | \[ "tools", "tool\_choice", "response\_format" ] |
| `upstreamModelId` | *string* | ✔️ | Model or deployment identifier sent to the upstream provider. | gpt-4o-prod |
