> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-a46887cf.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# PublicEndpoint - Go SDK

> PublicEndpoint type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

Information about a specific model endpoint

## Fields

| Field                     | Type                                                                                                       | Required             | Description                                                                                                                                                                                               | Example                                             |
| ------------------------- | ---------------------------------------------------------------------------------------------------------- | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| `ContextLength`           | `int64`                                                                                                    | :heavy\_check\_mark: | N/A                                                                                                                                                                                                       |                                                     |
| `LatencyLast30m`          | [\*components.PercentileStats](/client-sdks/go/api-reference/models/percentilestats)                       | :heavy\_check\_mark: | Latency percentiles in milliseconds over the last 30 minutes. Latency measures time to first token. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests. | `{"p50": 25.5,"p75": 35.2,"p90": 48.7,"p99": 85.3}` |
| `MaxCompletionTokens`     | `*int64`                                                                                                   | :heavy\_check\_mark: | N/A                                                                                                                                                                                                       |                                                     |
| `MaxPromptTokens`         | `*int64`                                                                                                   | :heavy\_check\_mark: | N/A                                                                                                                                                                                                       |                                                     |
| `ModelID`                 | `string`                                                                                                   | :heavy\_check\_mark: | The unique identifier for the model (permaslug)                                                                                                                                                           | openai/gpt-4                                        |
| `ModelName`               | `string`                                                                                                   | :heavy\_check\_mark: | N/A                                                                                                                                                                                                       |                                                     |
| `Name`                    | `string`                                                                                                   | :heavy\_check\_mark: | N/A                                                                                                                                                                                                       |                                                     |
| `Pricing`                 | [components.Pricing](/client-sdks/go/api-reference/models/pricing)                                         | :heavy\_check\_mark: | N/A                                                                                                                                                                                                       |                                                     |
| `ProviderName`            | [components.ProviderName](/client-sdks/go/api-reference/models/providername)                               | :heavy\_check\_mark: | N/A                                                                                                                                                                                                       | OpenAI                                              |
| `Quantization`            | [\*components.PublicEndpointQuantization](/client-sdks/go/api-reference/models/publicendpointquantization) | :heavy\_check\_mark: | N/A                                                                                                                                                                                                       | fp16                                                |
| `Status`                  | [\*components.EndpointStatus](/client-sdks/go/api-reference/models/endpointstatus)                         | :heavy\_minus\_sign: | N/A                                                                                                                                                                                                       | 0                                                   |
| `SupportedParameters`     | \[][components.Parameter](/client-sdks/go/api-reference/models/parameter)                                  | :heavy\_check\_mark: | N/A                                                                                                                                                                                                       |                                                     |
| `SupportsImplicitCaching` | `bool`                                                                                                     | :heavy\_check\_mark: | N/A                                                                                                                                                                                                       |                                                     |
| `Tag`                     | `string`                                                                                                   | :heavy\_check\_mark: | N/A                                                                                                                                                                                                       |                                                     |
| `ThroughputLast30m`       | [\*components.PercentileStats](/client-sdks/go/api-reference/models/percentilestats)                       | :heavy\_check\_mark: | N/A                                                                                                                                                                                                       | `{"p50": 25.5,"p75": 35.2,"p90": 48.7,"p99": 85.3}` |
| `UptimeLast1d`            | `*float64`                                                                                                 | :heavy\_check\_mark: | Uptime percentage over the last 1 day, calculated as successful requests / (successful + error requests) \* 100. Rate-limited requests are excluded. Returns null if insufficient data.                   |                                                     |
| `UptimeLast30m`           | `*float64`                                                                                                 | :heavy\_check\_mark: | N/A                                                                                                                                                                                                       |                                                     |
| `UptimeLast5m`            | `*float64`                                                                                                 | :heavy\_check\_mark: | Uptime percentage over the last 5 minutes, calculated as successful requests / (successful + error requests) \* 100. Rate-limited requests are excluded. Returns null if insufficient data.               |                                                     |
