Example Usage
import { CreatePrivateEndpointRequest } from "@openrouter/sdk/models/operations";
let value: CreatePrivateEndpointRequest = {
createPrivateEndpointRequest: {
modelPermaslug: "openai/gpt-4o-2024-08-06",
providerSlug: "azure",
upstreamModelId: "gpt-4o-prod",
},
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
httpReferer | string | :heavy_minus_sign: | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. | |
appTitle | string | :heavy_minus_sign: | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. | |
appCategories | string | :heavy_minus_sign: | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. | |
idempotencyKey | string | :heavy_minus_sign: | Retry-safe create: a repeated create with the same key from the same organization returns the endpoint the first request created instead of creating another. The endpoint is returned as it is now. Reusing a key with a different request body (model, provider, base URL, upstream model ID, declared ZDR or region, or pricing) is rejected with 422 idempotency_key_reused. activate is not compared, and later edits to the endpoint do not affect the comparison. | wayfair-gpt-4o-eastus-2026-09 |
createPrivateEndpointRequest | models.CreatePrivateEndpointRequest | :heavy_check_mark: | N/A |