/v1/models/{model}Get a ModelReturns the details of a model, provided its name.
Parameters
modelstringpathrequiredX-Client-NamestringheaderThe name of the project that is making the request.
Responses
Headers
X-API-WarningThe name of the project that is making the request.
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.
{
"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"
}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"
}