List Models

Returns a list of models available for use. The list contains models from Cohere as well as your fine-tuned models.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

page_sizedoubleOptional

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

page_tokenstringOptional

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

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

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
modelslist of objects
next_page_tokenstring or null

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

Errors