Skip to main content
POST
Create a private endpoint

Authorizations

Authorization
string
header
required

API key as bearer token in Authorization header

Headers

idempotency-key
string

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.

Required string length: 1 - 255
Example:

"wayfair-gpt-4o-eastus-2026-09"

Body

application/json
model_permaslug
string
required

Permanent slug of the model this endpoint serves.

Minimum string length: 1
Example:

"openai/gpt-4o-2024-08-06"

provider_slug
string
required

Slug of the upstream provider.

Minimum string length: 1
Example:

"azure"

upstream_model_id
string
required

Model or deployment identifier sent to the upstream provider.

Minimum string length: 1
Example:

"gpt-4o-prod"

activate
object

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.

Example:
base_url
string

HTTPS base URL of your deployment. Required unless the provider derives its URL from the BYOK credential (Azure, Amazon Bedrock, Google Vertex).

Minimum string length: 1
Example:

"https://contoso.openai.azure.com"

declared_region
enum<string> | null

Attest where this deployment processes data.

Available options:
global,
europe,
us,
null
Example:

"us"

declared_zdr
boolean | null

Attest that this deployment retains no prompt or completion data.

pricing
object

Negotiated per-token rates reported for requests routed to this endpoint.

Example:

Response

The created endpoint: a draft, or active when activate was passed

data
object
required