mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
18 KiB
18 KiB
PublicEndpoint
Information about a specific model endpoint
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
name |
str | ✔️ | N/A | |
model_id |
str | ✔️ | The unique identifier for the model (permaslug) | openai/gpt-4 |
model_name |
str | ✔️ | N/A | |
context_length |
float | ✔️ | N/A | |
pricing |
components.Pricing | ✔️ | N/A | |
provider_name |
components.ProviderName | ✔️ | N/A | OpenAI |
tag |
str | ✔️ | N/A | |
quantization |
Nullable[components.PublicEndpointQuantization] | ✔️ | N/A | fp16 |
max_completion_tokens |
Nullable[float] | ✔️ | N/A | |
max_prompt_tokens |
Nullable[float] | ✔️ | N/A | |
supported_parameters |
List[components.Parameter] | ✔️ | N/A | |
status |
Optional[components.EndpointStatus] | ➖ | N/A | 0 |
uptime_last_30m |
Nullable[float] | ✔️ | N/A | |
supports_implicit_caching |
bool | ✔️ | N/A | |
latency_last_30m |
Nullable[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. | |
throughput_last_30m |
Nullable[components.PercentileStats] | ✔️ | N/A |