List Models

GET

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

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

This endpoint returns an object.
modelslist of objects

Contains information about the model and which API endpoints it can be used with.

next_page_tokenstringOptional

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