curl --request GET \
--url https://api.nugen.in/api/v3/models/{model_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nugen.in/api/v3/models/{model_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nugen.in/api/v3/models/{model_id}', 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.nugen.in/api/v3/models/{model_id}",
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: Bearer <token>"
],
]);
$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.nugen.in/api/v3/models/{model_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.nugen.in/api/v3/models/{model_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nugen.in/api/v3/models/{model_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"model_id": "<string>",
"model_name": "<string>",
"base_model_id": "<string>",
"base_model_name": "<string>",
"deployment_status": "UNDEPLOYED",
"performance_metrics": {
"accuracy": 0.92,
"average_response_time": 1.2,
"domain_violations": 2,
"uncertainty": 0.15
},
"alignment_id": "<string>",
"error": "<string>",
"progress": 123,
"eta_seconds": 123,
"evaluation_data": {},
"usage_count": 0,
"downloadable": false,
"conversation_saving_enabled": false,
"created_at": "<string>",
"updated_at": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Get Model
Get one aligned model by ID.
Returns:
model_id,model_name,base_model_id,base_model_name,alignment_iddeployment_status(READY,DEPLOYING,DEPLOYED,UNDEPLOYING,FAILED), derived from the live deploymenterror: why the last deploy or undeploy failed, null when it succeededprogress,eta_seconds: not wired up yet, always nullperformance_metrics,evaluation_data: from the model’s latest evaluation, if anyusage_count,downloadable: not wired up yet, always 0 and falseconversation_saving_enabledcreated_at,updated_at
curl --request GET \
--url https://api.nugen.in/api/v3/models/{model_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nugen.in/api/v3/models/{model_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nugen.in/api/v3/models/{model_id}', 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.nugen.in/api/v3/models/{model_id}",
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: Bearer <token>"
],
]);
$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.nugen.in/api/v3/models/{model_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.nugen.in/api/v3/models/{model_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nugen.in/api/v3/models/{model_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"model_id": "<string>",
"model_name": "<string>",
"base_model_id": "<string>",
"base_model_name": "<string>",
"deployment_status": "UNDEPLOYED",
"performance_metrics": {
"accuracy": 0.92,
"average_response_time": 1.2,
"domain_violations": 2,
"uncertainty": 0.15
},
"alignment_id": "<string>",
"error": "<string>",
"progress": 123,
"eta_seconds": 123,
"evaluation_data": {},
"usage_count": 0,
"downloadable": false,
"conversation_saving_enabled": false,
"created_at": "<string>",
"updated_at": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Returns one aligned model: its model_id, model_name, base model, derived deployment status and timestamps.
One aligned model's full record: identity, lineage, live deployment status and everything on its status and list rows.
progress and eta_seconds mirror the deployment-status shape but are not wired up yet, so they are always null here too. created_at/updated_at are the model's own persisted timestamps, not the deployment status endpoint's per-request ones (that endpoint's timestamps mark when a status check ran, not real historical state, so they are not merged in here).
Unique identifier of the aligned model.
Display name of the aligned model.
Base model this model was aligned from.
Display name of the base model this model was aligned from.
Derived from the latest deployment. Only DEPLOYED serves inference.
UNDEPLOYED, DEPLOYING, DEPLOYED, UNDEPLOYING Performance statistics including accuracy, uncertainty, and domain violations
Show child attributes
Show child attributes
{
"accuracy": 0.92,
"average_response_time": 1.2,
"domain_violations": 2,
"uncertainty": 0.15
}
{
"accuracy": 0.88,
"average_response_time": 0.8,
"domain_violations": 3,
"uncertainty": 0.18
}
Alignment project that produced this model.
Why the last deploy or undeploy failed, null when it succeeded.
Completion progress, 0.0 to 100.0. Not wired up yet, always null.
Estimated time remaining in seconds. Not wired up yet, always null.
Benchmark evaluation results if the model has been evaluated (includes evaluation_id, status, metrics, and comparison data)
Number of times this model has been used for inference
Whether the model can be downloaded for local deployment
Whether conversation history is automatically saved for this model
Creation timestamp.
Last update timestamp.
Was this page helpful?