plaingateway
API reference

Endpoints

List the hosts of one model with their prices and measured uptime, latency and throughput.

GET /models/{author}/{slug}/endpoints returns one entry per host for the model, for example /models/openai/gpt-5.6-luna/endpoints. Like every API path, it is served under both base URLs, https://api.plaingateway.com/api/v1 and https://api.plaingateway.com/v1; see Headers. It needs no key. An unknown model id returns 404; a catalog entry the gateway cannot read returns 500. Prices are USD per token at our price, as in GET /models. uptime_last_5m, uptime_last_30m and uptime_last_1d are the percentage of the gateway's requests to that host that did not get a 5xx answer in that window, or null when the gateway sent it none. latency_last_30m (milliseconds to first token) and throughput_last_30m (tokens per second) are percentiles of the gateway's own requests in the last 30 minutes, or null with none. The list holds only the hosts the gateway routes the model to, so each tag and provider_name works in provider.only. A model that no host serves today returns an empty endpoints list with status 200. X-PG-Host on a completion names the host that served it. The response does not state a host's data retention.

Request

sh
curl https://api.plaingateway.com/api/v1/models/openai/gpt-5.6-luna/endpoints

Response

One host, shortened. The prices shown are list prices.

http
HTTP/1.1 200
{
  "data": {
    "id": "openai/gpt-5.6-luna",
    "name": "OpenAI: GPT-5.6 Luna",
    "created": 1783590864,
    "endpoints": [
      {
        "name": "Azure | openai/gpt-5.6-luna-20260709",
        "model_id": "openai/gpt-5.6-luna",
        "model_name": "OpenAI: GPT-5.6 Luna",
        "context_length": 1050000,
        "pricing": {
          "prompt": "0.0000002",
          "completion": "0.0000012",
          "input_cache_read": "0.00000002",
          "input_cache_write": "0.00000025",
          "discount": 0
        },
        "provider_name": "Azure",
        "tag": "azure",
        "quantization": "unknown",
        "max_completion_tokens": 128000,
        "max_prompt_tokens": 922000,
        "supported_parameters": ["max_tokens", "reasoning", "response_format", "tool_choice", "tools"],
        "status": 0,
        "uptime_last_30m": 100,
        "uptime_last_5m": 100,
        "uptime_last_1d": 99.65,
        "latency_last_30m": { "p50": 1210, "p75": 1669.5, "p90": 2564.4, "p99": 9103.2 },
        "throughput_last_30m": { "p50": 122.5, "p75": 80, "p90": 47.1, "p99": 20.7 },
        "perf_last_30m_by_workload": {
          "text_generation": {
            "latency": { "p50": 1210, "p75": 1669.5, "p90": 2564.4, "p99": 9103.2 },
            "throughput": { "p50": 122.5, "p75": 80, "p90": 47.1, "p99": 20.7 },
            "request_count": 1547
          }
        }
      }
    ]
  }
}