curl --request GET \
--url 'http://localhost:3000/api/v1/ollama/model-details?name=llama2&verbose=true' \
--header 'Authorization: Bearer <token>'
const response = await fetch(
'http://localhost:3000/api/v1/ollama/model-details?name=llama2&verbose=true',
{
method: 'GET',
headers: {
'Authorization': 'Bearer <token>'
}
}
);
const data = await response.json();
import requests
url = "http://localhost:3000/api/v1/ollama/model-details"
headers = {"Authorization": "Bearer <token>"}
params = {
"name": "llama2",
"verbose": True
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
{
"success": true,
"model": {
"name": "llama2",
"summary": "Meta's Llama 2 model for general chat and text generation",
"downloads": "5.4M",
"tags": ["latest", "7b", "13b", "70b"],
"lastUpdated": "2024-01-10T15:30:00Z",
"sizes": ["3.8GB", "7.4GB", "40GB"],
"variants": [
{
"name": "llama2:7b",
"size": "3.8GB",
"parameters": "7B"
},
{
"name": "llama2:13b",
"size": "7.4GB",
"parameters": "13B"
}
],
"readme": "# Llama 2\n\nMeta's Llama 2...",
"command": "ollama run llama2",
"url": "https://ollama.com/library/llama2"
}
}
{
"success": false,
"error": "Unauthorized"
}
{
"success": false,
"error": "Failed to fetch model details"
}
Ollama
Get Model Details
Retrieves comprehensive details about a specific Ollama model from the registry
GET
/
api
/
v1
/
ollama
/
model-details
curl --request GET \
--url 'http://localhost:3000/api/v1/ollama/model-details?name=llama2&verbose=true' \
--header 'Authorization: Bearer <token>'
const response = await fetch(
'http://localhost:3000/api/v1/ollama/model-details?name=llama2&verbose=true',
{
method: 'GET',
headers: {
'Authorization': 'Bearer <token>'
}
}
);
const data = await response.json();
import requests
url = "http://localhost:3000/api/v1/ollama/model-details"
headers = {"Authorization": "Bearer <token>"}
params = {
"name": "llama2",
"verbose": True
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
{
"success": true,
"model": {
"name": "llama2",
"summary": "Meta's Llama 2 model for general chat and text generation",
"downloads": "5.4M",
"tags": ["latest", "7b", "13b", "70b"],
"lastUpdated": "2024-01-10T15:30:00Z",
"sizes": ["3.8GB", "7.4GB", "40GB"],
"variants": [
{
"name": "llama2:7b",
"size": "3.8GB",
"parameters": "7B"
},
{
"name": "llama2:13b",
"size": "7.4GB",
"parameters": "13B"
}
],
"readme": "# Llama 2\n\nMeta's Llama 2...",
"command": "ollama run llama2",
"url": "https://ollama.com/library/llama2"
}
}
{
"success": false,
"error": "Unauthorized"
}
{
"success": false,
"error": "Failed to fetch model details"
}
Query Parameters
string
required
Model name to get details for (e.g., “llama2”, “mistral”)
boolean
default:false
Include verbose information in the response
Response
boolean
Indicates if the request was successful
object
Detailed model information
Show model properties
Show model properties
string
Model name
string
Brief summary of the model
string
Number of downloads (formatted)
array
Available model tags/versions
string
Last update timestamp
array
Available model sizes
array
Model variants with different configurations
string
Model README/documentation
string
Command to pull the model
string
Model registry URL
curl --request GET \
--url 'http://localhost:3000/api/v1/ollama/model-details?name=llama2&verbose=true' \
--header 'Authorization: Bearer <token>'
const response = await fetch(
'http://localhost:3000/api/v1/ollama/model-details?name=llama2&verbose=true',
{
method: 'GET',
headers: {
'Authorization': 'Bearer <token>'
}
}
);
const data = await response.json();
import requests
url = "http://localhost:3000/api/v1/ollama/model-details"
headers = {"Authorization": "Bearer <token>"}
params = {
"name": "llama2",
"verbose": True
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
{
"success": true,
"model": {
"name": "llama2",
"summary": "Meta's Llama 2 model for general chat and text generation",
"downloads": "5.4M",
"tags": ["latest", "7b", "13b", "70b"],
"lastUpdated": "2024-01-10T15:30:00Z",
"sizes": ["3.8GB", "7.4GB", "40GB"],
"variants": [
{
"name": "llama2:7b",
"size": "3.8GB",
"parameters": "7B"
},
{
"name": "llama2:13b",
"size": "7.4GB",
"parameters": "13B"
}
],
"readme": "# Llama 2\n\nMeta's Llama 2...",
"command": "ollama run llama2",
"url": "https://ollama.com/library/llama2"
}
}
{
"success": false,
"error": "Unauthorized"
}
{
"success": false,
"error": "Failed to fetch model details"
}
Notes
- Use this endpoint to get comprehensive information before pulling a model
- The
readmefield contains full model documentation in Markdown format variantsshows all available sizes and configurations
⌘I

