Skip to main content
List all models available through the Cohere API, including embedding models, reranking models, and chat models.

Samples

List all models

SELECT * FROM ai.cohere_list_models();

Filter embedding models

SELECT name, context_length
FROM ai.cohere_list_models()
WHERE 'embed' = ANY(endpoints);

Find default models

SELECT name, endpoints
FROM ai.cohere_list_models(default_only => true);

Arguments

NameTypeDefaultRequiredDescription
api_keyTEXTNULLCohere API key
api_key_nameTEXTNULLName of secret containing the API key
endpointTEXTNULLFilter by endpoint type (e.g., embed, rerank, chat)
default_onlyBOOLNULLShow only default models
verboseBOOLEANFALSEEnable verbose logging

Returns

TABLE: A table with the following columns:
ColumnTypeDescription
nameTEXTModel name
endpointsTEXT[]Supported endpoints (embed, rerank, chat, etc.)
finetunedBOOLWhether the model is fine-tuned
context_lengthINTMaximum context length in tokens
tokenizer_urlTEXTURL to the tokenizer
default_endpointsTEXT[]Endpoints where this is the default model