Ollama-Compatible API
List Models
List all available models on AJ STUDIOZ Cloud Infra (Ollama-compatible)
GET
/
api
/
tags
List Models
curl --request GET \
--url https://api.ajstudioz.co.in/api/tags \
--header 'Authorization: <authorization>'import requests
url = "https://api.ajstudioz.co.in/api/tags"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.ajstudioz.co.in/api/tags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ajstudioz.co.in/api/tags",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ajstudioz.co.in/api/tags"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ajstudioz.co.in/api/tags")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ajstudioz.co.in/api/tags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"models": [
{
"name": "gpt-oss:120b",
"model": "gpt-oss:120b",
"modified_at": "2025-08-05T00:00:00Z",
"size": 65290180781,
"digest": "d98fe6ba01e6",
"details": { "parent_model": "", "format": "", "family": "", "families": null, "parameter_size": "", "quantization_level": "" }
},
{
"name": "gemma3:27b",
"model": "gemma3:27b",
"modified_at": "2025-03-12T00:00:00Z",
"size": 55000000000,
"digest": "c1d2e3f40004",
"details": { "parent_model": "", "format": "", "family": "", "families": null, "parameter_size": "", "quantization_level": "" }
},
{
"name": "kimi-k2:1t",
"model": "kimi-k2:1t",
"modified_at": "2025-09-05T00:00:00Z",
"size": 1118481408000,
"digest": "9665a13eb6f1",
"details": { "parent_model": "", "format": "", "family": "", "families": null, "parameter_size": "", "quantization_level": "" }
}
]
}
Overview
Returns a list of all models currently available on AJ STUDIOZ Cloud Infra. This endpoint is compatible with the OllamaGET /api/tags format.
Request
Headers
string
required
Bearer token:
Bearer YOUR_API_KEYResponse
array
Array of model objects, each containing:
string
The full model name including tag (e.g.
"gemma3:27b").string
Same as
name. The identifier to use in API requests.string
ISO 8601 timestamp when the model was added or updated.
integer
Model size in bytes.
string
Short content digest hash for the model.
object
Additional model details (may contain empty fields):
parent_model— parent model if derivedformat— model serialization formatfamily— model familyparameter_size— human-readable parameter countquantization_level— quantization format
Example
curl https://api.ajstudioz.co.in/api/tags \
-H "Authorization: Bearer YOUR_API_KEY"
from ollama import Client
client = Client(
host="https://api.ajstudioz.co.in",
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
models = client.list()
for model in models.models:
size_gb = model.size / 1e9
print(f"{model.model:<40} {size_gb:>8.1f} GB")
import requests
response = requests.get(
"https://api.ajstudioz.co.in/api/tags",
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
data = response.json()
for model in data["models"]:
print(model["name"])
{
"models": [
{
"name": "gpt-oss:120b",
"model": "gpt-oss:120b",
"modified_at": "2025-08-05T00:00:00Z",
"size": 65290180781,
"digest": "d98fe6ba01e6",
"details": { "parent_model": "", "format": "", "family": "", "families": null, "parameter_size": "", "quantization_level": "" }
},
{
"name": "gemma3:27b",
"model": "gemma3:27b",
"modified_at": "2025-03-12T00:00:00Z",
"size": 55000000000,
"digest": "c1d2e3f40004",
"details": { "parent_model": "", "format": "", "family": "", "families": null, "parameter_size": "", "quantization_level": "" }
},
{
"name": "kimi-k2:1t",
"model": "kimi-k2:1t",
"modified_at": "2025-09-05T00:00:00Z",
"size": 1118481408000,
"digest": "9665a13eb6f1",
"details": { "parent_model": "", "format": "", "family": "", "families": null, "parameter_size": "", "quantization_level": "" }
}
]
}
⌘I
List Models
curl --request GET \
--url https://api.ajstudioz.co.in/api/tags \
--header 'Authorization: <authorization>'import requests
url = "https://api.ajstudioz.co.in/api/tags"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.ajstudioz.co.in/api/tags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ajstudioz.co.in/api/tags",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ajstudioz.co.in/api/tags"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ajstudioz.co.in/api/tags")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ajstudioz.co.in/api/tags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"models": [
{
"name": "gpt-oss:120b",
"model": "gpt-oss:120b",
"modified_at": "2025-08-05T00:00:00Z",
"size": 65290180781,
"digest": "d98fe6ba01e6",
"details": { "parent_model": "", "format": "", "family": "", "families": null, "parameter_size": "", "quantization_level": "" }
},
{
"name": "gemma3:27b",
"model": "gemma3:27b",
"modified_at": "2025-03-12T00:00:00Z",
"size": 55000000000,
"digest": "c1d2e3f40004",
"details": { "parent_model": "", "format": "", "family": "", "families": null, "parameter_size": "", "quantization_level": "" }
},
{
"name": "kimi-k2:1t",
"model": "kimi-k2:1t",
"modified_at": "2025-09-05T00:00:00Z",
"size": 1118481408000,
"digest": "9665a13eb6f1",
"details": { "parent_model": "", "format": "", "family": "", "families": null, "parameter_size": "", "quantization_level": "" }
}
]
}
