import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const models = await client.models.list();
console.log(models.providers);
{
"chat_models": [
{}
],
"embedding_models": [
{}
],
"default_models": {},
"providers": [
"<string>"
]
}
Get list of available models from configuration.
Returns models grouped by type (chat, embedding, etc.) with their metadata.
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const models = await client.models.list();
console.log(models.providers);
{
"chat_models": [
{}
],
"embedding_models": [
{}
],
"default_models": {},
"providers": [
"<string>"
]
}
Successful Response
Response for available models endpoint
Was this page helpful?