Private Endpoints

Get a private endpoint

Changed on

Get one private endpoint with its upstream configuration and current pricing. Management key required.

get/private-endpoints/{id}

Request

  • Base URL
    https://openrouter.ai/api/v1
  • Auth
    HTTP bearer

Path parameters

id, string uuid required

Stable identifier of the private endpoint.

Example:5b1c4c4e-7d0a-4a8e-9f3a-2d6c1b0e8a11

Response

The private endpoint

PrivateEndpointResponse required
data, PrivateEndpoint required

Example response

{
  "data": {
    "base_url": "https://contoso.openai.azure.com",
    "declared_parameters": [
      "temperature",
      "seed"
    ],
    "declared_region": "us",
    "declared_zdr": true,
    "id": "5b1c4c4e-7d0a-4a8e-9f3a-2d6c1b0e8a11",
    "max_completion_tokens": 131072,
    "model_name": "OpenAI: GPT-4o",
    "model_permaslug": "openai/gpt-4o-2024-08-06",
    "model_slug": "openai/gpt-4o",
    "pricing": {
      "cache_read": "0.00000025",
      "cache_write": "0.000003125",
      "completion": "0.00001",
      "prompt": "0.0000025"
    },
    "provider_name": "Azure",
    "provider_slug": "azure",
    "settings": {
      "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,
      "prompt_caching": {
        "cache_control": false,
        "prompt_cache_key": false
      },
      "quantization": "bf16",
      "reasoning": {
        "return_mechanism": "reasoning",
        "supported": true
      },
      "tool_choice": {
        "auto": true,
        "function": false,
        "none": true,
        "required": true
      }
    },
    "status": "active",
    "tested_parameters": [
      "tools",
      "tool_choice",
      "response_format"
    ],
    "upstream_model_id": "gpt-4o-prod"
  }
}

Changes

    • warning

      added the new strict_tool_schemas enum value to the data/settings/excluded_parameters/items response property for the response status

    • info

      added the optional property data/settings/prompt_caching to the response with the status