curl --request GET \
--url 'http://localhost:3000/api/v1/ollama/show-model?modelName=llama2&verbose=true' \
--header 'Authorization: Bearer <token>'
const response = await fetch(
'http://localhost:3000/api/v1/ollama/show-model?modelName=llama2&verbose=true',
{
method: 'GET',
headers: {
'Authorization': 'Bearer <token>'
}
}
);
const data = await response.json();
import requests
url = "http://localhost:3000/api/v1/ollama/show-model"
headers = {"Authorization": "Bearer <token>"}
params = {
"modelName": "llama2",
"verbose": True
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
{
"success": true,
"capabilities": ["chat", "completion", "generate"],
"details": {
"parent_model": "",
"format": "gguf",
"family": "llama",
"families": ["llama"],
"parameter_size": "7B",
"quantization_level": "Q4_0"
}
}
{
"success": false,
"error": "Unauthorized"
}
{
"success": false,
"error": "Model not found"
}
{
"success": false,
"error": "Failed to get model information"
}
Ollama
Show Model Information
Retrieves detailed information about an installed Ollama model including capabilities and parameters
GET
/
api
/
v1
/
ollama
/
show-model
curl --request GET \
--url 'http://localhost:3000/api/v1/ollama/show-model?modelName=llama2&verbose=true' \
--header 'Authorization: Bearer <token>'
const response = await fetch(
'http://localhost:3000/api/v1/ollama/show-model?modelName=llama2&verbose=true',
{
method: 'GET',
headers: {
'Authorization': 'Bearer <token>'
}
}
);
const data = await response.json();
import requests
url = "http://localhost:3000/api/v1/ollama/show-model"
headers = {"Authorization": "Bearer <token>"}
params = {
"modelName": "llama2",
"verbose": True
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
{
"success": true,
"capabilities": ["chat", "completion", "generate"],
"details": {
"parent_model": "",
"format": "gguf",
"family": "llama",
"families": ["llama"],
"parameter_size": "7B",
"quantization_level": "Q4_0"
}
}
{
"success": false,
"error": "Unauthorized"
}
{
"success": false,
"error": "Model not found"
}
{
"success": false,
"error": "Failed to get model information"
}
Query Parameters
string
required
Name of the model to inspect (e.g., “llama2”, “mistral:7b”)
boolean
default:false
Include verbose model information
string
Optional Ollama server URL (defaults to http://localhost:11434)
Response
boolean
Indicates if the request was successful
array
Model capabilities and features (e.g., [“chat”, “completion”, “embedding”])
object
curl --request GET \
--url 'http://localhost:3000/api/v1/ollama/show-model?modelName=llama2&verbose=true' \
--header 'Authorization: Bearer <token>'
const response = await fetch(
'http://localhost:3000/api/v1/ollama/show-model?modelName=llama2&verbose=true',
{
method: 'GET',
headers: {
'Authorization': 'Bearer <token>'
}
}
);
const data = await response.json();
import requests
url = "http://localhost:3000/api/v1/ollama/show-model"
headers = {"Authorization": "Bearer <token>"}
params = {
"modelName": "llama2",
"verbose": True
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
{
"success": true,
"capabilities": ["chat", "completion", "generate"],
"details": {
"parent_model": "",
"format": "gguf",
"family": "llama",
"families": ["llama"],
"parameter_size": "7B",
"quantization_level": "Q4_0"
}
}
{
"success": false,
"error": "Unauthorized"
}
{
"success": false,
"error": "Model not found"
}
{
"success": false,
"error": "Failed to get model information"
}
Notes
- This endpoint only works for installed models (use List Models to see what’s installed)
- The
capabilitiesarray indicates what the model can do (chat, embeddings, etc.) quantization_levelaffects model size and performance- Use
verbose=truefor additional technical details
Common Quantization Levels
- Q4_0: 4-bit quantization, smallest size, lower quality
- Q5_K_M: 5-bit medium quality
- Q8_0: 8-bit quantization, larger size, higher quality

