For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
ModelsChatRankingsDocs
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
    • Overview
    • Usage for Agents
  • TypeScript SDK
    • Overview
  • Python SDK
    • Overview
  • Go SDK
      • Analytics
      • APIKeys
      • Byok
      • Chat
      • Credits
      • Embeddings
      • Endpoints
      • Generations
      • Guardrails
        • Models
        • PublicEndpoint
      • OAuth
      • Observability
      • Organization
      • Presets
      • Providers
      • Rerank
      • Beta.Responses
      • Transcriptions
      • Speech
      • VideoGeneration
      • Workspaces
  • DevTools
    • Overview
    • Migrating to @openrouter/agent
LogoLogo
ModelsChatRankingsDocs
On this page
  • Fields
Go SDKAPI ReferenceModels

PublicEndpoint - Go SDK

PublicEndpoint type definition
Was this page helpful?
Previous

OAuth - Go SDK

OAuth method reference
Next
Built with

The Go SDK and docs are currently in beta. Report issues on GitHub.

Information about a specific model endpoint

Fields

FieldTypeRequiredDescriptionExample
ContextLengthint64✔️N/A
LatencyLast30m*components.PercentileStats✔️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✔️N/A
MaxPromptTokens*int64✔️N/A
ModelIDstring✔️The unique identifier for the model (permaslug)openai/gpt-4
ModelNamestring✔️N/A
Namestring✔️N/A
Pricingcomponents.Pricing✔️N/A
ProviderNamecomponents.ProviderName✔️N/AOpenAI
Quantization*components.PublicEndpointQuantization✔️N/Afp16
Status*components.EndpointStatus➖N/A0
SupportedParameters[]components.Parameter✔️N/A
SupportsImplicitCachingbool✔️N/A
Tagstring✔️N/A
ThroughputLast30m*components.PercentileStats✔️N/A{"p50": 25.5,"p75": 35.2,"p90": 48.7,"p99": 85.3}
UptimeLast1d*float64✔️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✔️N/A
UptimeLast5m*float64✔️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.