/v1/modelsList ModelsReturns a list of models available for use.
Parameters
page_sizenumberqueryMaximum number of models to include in a page Defaults to `20`, min value of `1`, max value of `1000`.
page_tokenstringqueryPage token provided in the `next_page_token` field of a previous response.
endpointstringqueryWhen provided, filters the list of models to only those that are compatible with the specified endpoint.
default_onlybooleanqueryWhen provided, filters the list of models to only the default model to the endpoint. This parameter is only valid when `endpoint` is provided.
Responses
modelsarray of objectrequiredShow child attributes
Show array items
Contains information about the model and which API endpoints it can be used with.
context_lengthnumberThe maximum number of tokens that the model can process in a single request. Note that not all of these tokens are always available due to special tokens and preambles that Cohere has added by default.
default_endpointsarray of stringThe API endpoints that the model is default to.
Show child attributes
endpointsarray of stringThe API endpoints that the model is compatible with.
Show child attributes
featuresarray of stringThe features that the model supports.
Show child attributes
finetunedbooleanWhether the model has been fine-tuned or not.
is_deprecatedbooleanWhether the model is deprecated or not.
namestringSpecify this name in the `model` parameter of API requests to use your chosen model.
sampling_defaultsobjectDefault sampling parameters for this model when omitted from API requests.
Show child attributes
frequency_penaltynumber · floatkinteger · int32max_tokens_per_docinteger · int32pnumber · floatpresence_penaltynumber · floattemperaturenumber · floattokenizer_urlstringPublic URL to the tokenizer's configuration file.
next_page_tokenstringA token to retrieve the next page of results. Provide in the page_token parameter of the next request.
{
"models": [
{
"context_length": 0,
"default_endpoints": [
"chat"
],
"endpoints": [
"chat"
],
"features": [
"string"
],
"finetuned": true,
"is_deprecated": true,
"name": "string",
"sampling_defaults": {
"frequency_penalty": 0,
"k": 0,
"max_tokens_per_doc": 0,
"p": 0,
"presence_penalty": 0,
"temperature": 0
},
"tokenizer_url": "string"
}
],
"next_page_token": "string"
}idstringmessagestring{
"id": "string",
"message": "string"
}idstringmessagestring{
"id": "string",
"message": "string"
}idstringmessagestring{
"id": "string",
"message": "string"
}idstringmessagestring{
"id": "string",
"message": "string"
}idstringmessagestring{
"id": "string",
"message": "string"
}idstringmessagestring{
"id": "string",
"message": "string"
}idstringmessagestring{
"id": "string",
"message": "string"
}idstringmessagestring{
"id": "string",
"message": "string"
}idstringmessagestring{
"id": "string",
"message": "string"
}idstringmessagestring{
"id": "string",
"message": "string"
}idstringmessagestring{
"id": "string",
"message": "string"
}idstringmessagestring{
"id": "string",
"message": "string"
}