models

List Models

Returns a list of models available for use.

get/v1/models

Request

  • Base URL: https://api.cohere.com
  • URL: https://api.cohere.com/v1/models
  • Auth: HTTP bearer

Query parameters

page_sizenumber double

Maximum number of models to include in a page Defaults to 20, min value of 1, max value of 1000.

page_tokenstring

Page token provided in the next_page_token field of a previous response.

endpoint'chat' | 'embed' | 'classify' | 'summarize' | 'rerank' | 'rate' | 'generate'

One of the Cohere API endpoints that the model can be used with.

When provided, filters the list of models to only those that are compatible with the specified endpoint.

default_onlyboolean

When provided, filters the list of models to only the default model to the endpoint. This parameter is only valid when endpoint is provided.

Response

OK

next_page_tokenstring

A token to retrieve the next page of results. Provide in the page_token parameter of the next request.

Changes

No recorded changes to this operation across all 1 revision of this API.