Which models are actually in use, and whether any is hosted
const url = 'http://localhost:11044/api/v1/models/in-use';const options = {method: 'GET', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:11044/api/v1/models/in-use \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Models in use, with providers
Which models the caller’s chat, documents and embeddings actually use, and whether any is hosted; answered by GET /models/in-use
object
True when every surface that resolved a model runs it on this machine; surfaces with no model do not count against it
Distinct names of the hosted (non-local) providers in use, sorted; empty when allLocal is true
One entry per surface, in the order chat, documents, embeddings
One surface of the appliance (chat, documents, embeddings) and the model that serves it, as GET /models/in-use resolves it
object
True when the provider is one that runs on this machine (LM Studio, Ollama, Docker); false otherwise, including when the provider is unknown
Model name serving this surface, resolved the way the surface itself resolves it; null when none could be resolved
Provider of the model, as the service serving it names it (e.g. “LM Studio”, “OpenAI”); null when there is no model
What the model is used for, in the user’s terms, as “
One plain-English sentence saying whether anything goes to a model provider, and which surface uses which hosted model
Example generated
{ "allLocal": true, "cloudProviders": [ "example" ], "models": [ { "local": true, "model": "example", "provider": "example", "purpose": "example" } ], "summary": "example"}
