Files
openrouter-python-sdk-retry…/docs/operations/getmodelssort.mdx
github-actions[bot]GitHubspeakeasybotspeakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
738aed60ad chore: 🐝 Update SDK - Generate (spec change merged) 0.11.5 (#398)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
2026-07-07 17:29:09 +00:00

33 lines
1.2 KiB
Plaintext

---
title: "GetModelsSort"
---
Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
## Example Usage
```python
from openrouter.operations import GetModelsSort
# Open enum: unrecognized values are captured as UnrecognizedStr
value: GetModelsSort = "most-popular"
```
## Values
This is an open enum. Unrecognized values will not fail type checks.
- `"most-popular"`
- `"newest"`
- `"top-weekly"`
- `"pricing-low-to-high"`
- `"pricing-high-to-low"`
- `"context-high-to-low"`
- `"throughput-high-to-low"`
- `"latency-low-to-high"`
- `"intelligence-high-to-low"`
- `"coding-high-to-low"`
- `"agentic-high-to-low"`
- `"design-arena-elo-high-to-low"`