Reads the body of GET /models: { data: [{ id, ... }] }. Entries without a string id are skipped. The OpenRouter fields are read when they are there (https://openrouter.ai/docs/api-reference/list-available-models):
GET /models
{ data: [{ id, ... }] }
context_length
top_provider.context_length
top_provider.max_completion_tokens
supported_parameters
tools
reasoning
pricing.prompt
pricing.completion
-1
openrouter/auto
Reads the body of
GET /models:{ data: [{ id, ... }] }. Entries without a string id are skipped. The OpenRouter fields are read when they are there (https://openrouter.ai/docs/api-reference/list-available-models):context_length, andtop_provider.context_lengthwhen it is smallertop_provider.max_completion_tokenssupported_parameters:toolsandreasoningpricing.promptandpricing.completion, USD per token, as strings. A negative price (like-1foropenrouter/auto) means unknown.