Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
Offset | optionalnullable.OptionalNullable[int64] | ➖ | Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned | 0 |
Limit | *int64 | ➖ | Maximum number of records to return (max 1000). When both offset and limit are omitted, the full list is returned | 500 |
OutputModalities | *string | ➖ | Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or “all” to include all models. Defaults to “text”. | text |
Sort | *operations.ListModelsUserSort | ➖ | 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. | newest |
Client | *operations.Client | ➖ | Filter models and presets by the named harness’s eligibility policy: tool calling is required, and when one of your guardrails sets enforce_first_party_harness_models, only the harness vendor’s own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). This filter doesn’t apply the harness’s ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use. | codex |