JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const models = await client.models.list();
console.log(models.providers);curl https://api.morphik.ai/models \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"chat_models": [
{}
],
"embedding_models": [
{}
],
"default_models": {},
"providers": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}API Reference
Get Available Models
Get list of available models from configuration.
Returns models grouped by type (chat, embedding, etc.) with their metadata.
GET
/
models
JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const models = await client.models.list();
console.log(models.providers);curl https://api.morphik.ai/models \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"chat_models": [
{}
],
"embedding_models": [
{}
],
"default_models": {},
"providers": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?

