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

# 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), \<index>-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes, so they order by canonical slug and variant alone), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output\_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.

## Example Usage

```go theme={null}
import (
	"github.com/OpenRouterTeam/go-sdk/models/operations"
)

value := operations.GetModelsSortMostPopular

// Open enum: custom values can be created with a direct type cast
custom := operations.GetModelsSort("custom_value")
```

## Values

| Name | Value |
| - | - |
| `GetModelsSortMostPopular` | most-popular |
| `GetModelsSortNewest` | newest |
| `GetModelsSortTopWeekly` | top-weekly |
| `GetModelsSortPricingLowToHigh` | pricing-low-to-high |
| `GetModelsSortPricingHighToLow` | pricing-high-to-low |
| `GetModelsSortContextHighToLow` | context-high-to-low |
| `GetModelsSortThroughputHighToLow` | throughput-high-to-low |
| `GetModelsSortLatencyLowToHigh` | latency-low-to-high |
| `GetModelsSortIntelligenceHighToLow` | intelligence-high-to-low |
| `GetModelsSortCodingHighToLow` | coding-high-to-low |
| `GetModelsSortAgenticHighToLow` | agentic-high-to-low |
| `GetModelsSortFinanceAndAccountingHighToLow` | finance-and-accounting-high-to-low |
| `GetModelsSortStrategyAndOpsHighToLow` | strategy-and-ops-high-to-low |
| `GetModelsSortLegalHighToLow` | legal-high-to-low |
| `GetModelsSortHealthcareAndMedicalHighToLow` | healthcare-and-medical-high-to-low |
| `GetModelsSortEngineeringHighToLow` | engineering-high-to-low |
| `GetModelsSortEconomicsHighToLow` | economics-high-to-low |
| `GetModelsSortCyberHighToLow` | cyber-high-to-low |
| `GetModelsSortOpennessHighToLow` | openness-high-to-low |
| `GetModelsSortMultilingualHighToLow` | multilingual-high-to-low |
| `GetModelsSortDecisionHighToLow` | decision-high-to-low |
| `GetModelsSortDesignArenaEloHighToLow` | design-arena-elo-high-to-low |
