Example Usage
import { CreatePrivateEndpointRequest } from "@openrouter/sdk/models";
let value: CreatePrivateEndpointRequest = {
modelPermaslug: "openai/gpt-4o-2024-08-06",
providerSlug: "azure",
upstreamModelId: "gpt-4o-prod",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
activate | models.PrivateEndpointActivation | :heavy_minus_sign: | Validate and activate in the same call. On a failed validation the draft is kept and returned with a 422, so fix it and call /validate and /activate instead of creating it again. | { “workspace_id”: “550e8400-e29b-41d4-a716-446655440000” } |
baseUrl | string | :heavy_minus_sign: | HTTPS base URL of your deployment. Required unless the provider derives its URL from the BYOK credential (Azure, Amazon Bedrock, Google Vertex). | https://contoso.openai.azure.com |
declaredRegion | models.CreatePrivateEndpointRequestDeclaredRegion | :heavy_minus_sign: | Attest where this deployment processes data. | us |
declaredZdr | boolean | :heavy_minus_sign: | Attest that this deployment retains no prompt or completion data. | |
modelPermaslug | string | :heavy_check_mark: | Permanent slug of the model this endpoint serves. | openai/gpt-4o-2024-08-06 |
pricing | models.PrivateEndpointPricing | :heavy_minus_sign: | Negotiated per-token rates reported for requests routed to this endpoint. | { “completion”: “0.00001”, “prompt”: “0.0000025” } |
providerSlug | string | :heavy_check_mark: | Slug of the upstream provider. | azure |
upstreamModelId | string | :heavy_check_mark: | Model or deployment identifier sent to the upstream provider. | gpt-4o-prod |