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);
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
Copy
Ask AI
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);