JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.models.listAvailable();
console.log(response);curl https://api.morphik.ai/models/available \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}API Reference
Get Available Models For Selection
Get list of available models for UI selection.
Returns a list of models that can be used for queries. Each model includes:
- id: Model identifier to use in llm_config
- name: Display name for the model
- provider: The LLM provider (e.g., openai, anthropic, ollama)
- description: Optional description of the model
GET
/
models
/
available
JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.models.listAvailable();
console.log(response);curl https://api.morphik.ai/models/available \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Headers
Response
Successful Response
Was this page helpful?

