Private Endpoints
Set private endpoint pricing
Set the negotiated per-token rates reported for requests routed to this endpoint. Applies to drafts and active endpoints; new rates take effect for subsequent requests. Management key required.
put/private-endpoints/{id}/pricing
Path parameters
idstring uuid required
Stable identifier of the private endpoint.
Example:5b1c4c4e-7d0a-4a8e-9f3a-2d6c1b0e8a11
Stable identifier of the private endpoint.
Request body
Example request
{
"pricing": {
"completion": "0.00001",
"prompt": "0.0000025"
}
}Response
The endpoint with its new pricing
Example response
{
"data": {
"base_url": "https://contoso.openai.azure.com",
"declared_region": "us",
"declared_zdr": true,
"id": "5b1c4c4e-7d0a-4a8e-9f3a-2d6c1b0e8a11",
"model_name": "OpenAI: GPT-4o",
"model_permaslug": "openai/gpt-4o-2024-08-06",
"model_slug": "openai/gpt-4o",
"pricing": {
"completion": "0.00001",
"prompt": "0.0000025"
},
"provider_name": "Azure",
"provider_slug": "azure",
"status": "active",
"upstream_model_id": "gpt-4o-prod"
}
}Changes
Changed in 1 of the 339 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○