List models
list_modelsFind models. Returns a compact list (id, name, context_length, input and output USD per million tokens, zero_data_retention where known), the total count and the default model. There are hundreds of models, so filter with query (case-insensitive part of the id or name, e.g. "claude", "gpt") and read the hint when the list is truncated (default 25, at most 100). Pass model for one model's full details. Use an id from it as create_run's model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Same as model. | |
| limit | No | How many models to return (default 25). | |
| model | No | A model id: return the full details of exactly that model. | |
| query | No | Case-insensitive text to find in the model id or name, e.g. "claude". | |
| zero_data_retention | No | true: only models that have a zero-data-retention endpoint. |