OhMyGPT
Models

List models

GET
/v1/models

Returns available models in an OpenAI-compatible format. Filters are limited to facts derivable from the catalog and enabled route pricing; category and arch are conservative derived mappings, so an unknown value is not treated as a match.

查询参数

capability?string

Filter by catalog capability (tool_call, reasoning, vision, streaming, etc.).

modality?string

Filter by input or output modality (text, image, audio, video).

service?string

Filter by service type (llm, embedding, tts, stt, image, rerank).

lifecycle?string

Filter by lifecycle status (active, deprecated, sunset).

q?string

Free-text search across model ID, name, and description.

provider?string

Comma-separated provider filter. providers is accepted as an alias.

providers?string

Comma-separated provider filter alias; merged with provider.

input_modalities?string

Comma-separated input modalities.

output_modalities?string

Comma-separated output modalities.

context?integer

Minimum context length in tokens. Alias of min_context; conflicting values are rejected.

范围0 <= value
min_context?integer

Minimum context length in tokens. Alias of context; conflicting values are rejected.

范围0 <= value
min_price?number

Minimum input price in USD per 1M tokens, converted once to int64 Credits.

范围0 <= value
max_price?number

Maximum input price in USD per 1M tokens, converted once to int64 Credits.

范围0 <= value
min_output_price?number

Minimum output price in USD per 1M tokens, converted once to int64 Credits.

范围0 <= value
max_output_price?number

Maximum output price in USD per 1M tokens, converted once to int64 Credits.

范围0 <= value
arch?string

Filter by derived model family (GPT, Claude, Gemini, DeepSeek, Mistral, Qwen, Other).

category?string

Filter by conservative derived category. Only programming and technology are currently classifiable; other categories return no matches.

值于"programming""roleplay""marketing""marketing/seo""technology""science""translation""legal""finance""health""trivia""academia"
model_authors?string

Comma-separated creator slugs from the model ID.

min_age_days?integer

Minimum age in days from lifecycle.effective_since; models without that fact do not match.

范围0 <= value
max_age_days?integer

Maximum age in days from lifecycle.effective_since; models without that fact do not match.

范围0 <= value
sort?string

Supported sorts: pricing-low-to-high, pricing-high-to-low, context-high-to-low, newest. Unknown values are ignored; other OpenRouter data-backed sorts are not available in this catalog.

响应主体

Successful response

application/json
  1. response
data*array<>
object*"list"
值于"list"
示例请求
curl -X GET 'https://api.ohmygpt.com/v1/models'
示例响应200
{  "data": [    {      "api": "string",      "architecture": {        "input_modalities": [          "string"        ],        "modality": "string",        "output_modalities": [          "string"        ]      },      "available": true,      "capability": {        "as_of": "string",        "ci_high": 0,        "ci_low": 0,        "score": 0      },      "context_length": 0,      "created": 0,      "description": "string",      "fidelity": {        "routes": {          "property1": {            "lossy_fields": [              {                "degradation": "string",                "field": "string",                "impact": "string"              }            ],            "score": 0          },          "property2": {            "lossy_fields": [              {                "degradation": "string",                "field": "string",                "impact": "string"              }            ],            "score": 0          }        }      },      "id": "string",      "knowledge_cutoff": "string",      "lifecycle": {        "deprecated_at": "string",        "status": "string",        "successor": "string",        "sunset_at": "string"      },      "limits": {        "max_completion_tokens": 0,        "max_prompt_tokens": 0,        "stream_idle_timeout": 0      },      "managed_routing": true,      "modalities": {        "input": [          "string"        ],        "output": [          "string"        ]      },      "name": "string",      "object": "model",      "owned_by": "string",      "preference": {        "as_of": "string",        "rating": 0,        "rating_lower": 0,        "rating_upper": 0,        "votes": 0      },      "pricing": {        "flat": [          {            "kind": "string",            "list_price_credits": 0,            "params": {              "property1": "string",              "property2": "string"            },            "price_credits": 0          }        ],        "mode": "string",        "rules": [          {            "condition": {              "exclude_ranges": [                {                  "end": "2019-08-24T14:15:22Z",                  "start": "2019-08-24T14:15:22Z"                }              ],              "max_input": 0,              "min_input": 0,              "params": {                "property1": "string",                "property2": "string"              },              "service_tier": "string",              "time_windows": [                {                  "end": "string",                  "start": "string"                }              ],              "usage_kind": "llm",              "valid_from": "2019-08-24T14:15:22Z",              "valid_until": "2019-08-24T14:15:22Z",              "weekdays": [                "monday"              ]            },            "kind": "string",            "list_price_credits": 0,            "price_credits": 0          }        ],        "tiered": [          {            "items": [              {                "kind": "string",                "list_price_credits": 0,                "params": {                  "property1": "string",                  "property2": "string"                },                "price_credits": 0              }            ],            "up_to": 0          }        ],        "variants": [          {            "items": [              {                "kind": "string",                "list_price_credits": 0,                "params": {                  "property1": "string",                  "property2": "string"                },                "price_credits": 0              }            ],            "name": "string"          }        ]      },      "protocols": [        {          "id": "string",          "label": "string",          "method": "GET",          "model": "string",          "native": true,          "path": "string",          "transport": "http"        }      ],      "providers": [        {          "context": 0,          "data_policy": {            "moderation": "string",            "retention": "string",            "training": true          },          "display_name": "string",          "location": "string",          "max_completion_tokens": 0,          "max_prompt_tokens": 0,          "pricing": {            "flat": [              {                "kind": "string",                "list_price_credits": 0,                "params": {                  "property1": "string",                  "property2": "string"                },                "price_credits": 0              }            ],            "mode": "string",            "rules": [              {                "condition": {                  "exclude_ranges": [                    {                      "end": "2019-08-24T14:15:22Z",                      "start": "2019-08-24T14:15:22Z"                    }                  ],                  "max_input": 0,                  "min_input": 0,                  "params": {                    "property1": "string",                    "property2": "string"                  },                  "service_tier": "string",                  "time_windows": [                    {                      "end": "string",                      "start": "string"                    }                  ],                  "usage_kind": "llm",                  "valid_from": "2019-08-24T14:15:22Z",                  "valid_until": "2019-08-24T14:15:22Z",                  "weekdays": [                    "monday"                  ]                },                "kind": "string",                "list_price_credits": 0,                "price_credits": 0              }            ],            "tiered": [              {                "items": [                  {                    "kind": "string",                    "list_price_credits": 0,                    "params": {                      "property1": "string",                      "property2": "string"                    },                    "price_credits": 0                  }                ],                "up_to": 0              }            ],            "variants": [              {                "items": [                  {                    "kind": "string",                    "list_price_credits": 0,                    "params": {                      "property1": "string",                      "property2": "string"                    },                    "price_credits": 0                  }                ],                "name": "string"              }            ]          },          "provider": "string",          "quantization": "string",          "supports_implicit_caching": true        }      ],      "service": "string"    }  ],  "object": "list"}