Get Model
Retrieve detailed information about a specific model.
Endpoint
GET https://api.platform.knowledgator.com/models/{model_id}/
Public Endpoint: This catalog endpoint is publicly accessible and does not require authentication. Do not pass
KnowledgatorAPI-KeyorAuthorization: Bearerheaders (sending auth headers causes401 Unauthorized: auth.invalid_token).
Base Models vs. Your Custom Models
GET /models/{model_id}/ retrieves information about a public base model or open model from the catalog. To retrieve details and status for your own custom fine-tuned model, see Get Training (GET /trainings/{training_id}/).
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type | String | No | application/json |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model_id | String | Yes | Unique model identifier (2-64 chars, alphanumeric with hyphens) |
Response
{
"id": "comprehend-it",
"name": "comprehend-it",
"type": "text-classification",
"description": "Zero-shot text classification and reasoning model",
"num_of_parameters": "494M",
"training_model": true,
"training_adapter": true,
"inference": "comprehend-it",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"is_base": true
}
Response Fields
id: Unique model identifiername: Model nametype: Service type (ner,text-classification, etc.)num_of_parameters: Number of parameters (e.g."494M","1.1B", or numeric)training_model: Boolean indicating if full model training is supportedtraining_adapter: Boolean indicating if LoRA adapter training is supportedinference: Inference service compatibilityfine_tuned: Boolean indicating if this is a fine-tuned model/adapterparent_model: Parent base model ID if fine-tuneddescription: Full markdown model descriptionshort_description: Brief summary descriptioncreated_at: ISO 8601 timestamp of creationupdated_at: ISO 8601 timestamp of last updateis_base: Whether this is a base model (not trained by customer)
Error Codes
| Status Code | Description |
|---|---|
| 200 | OK – Request successful. |
| 400 | Bad Request – Invalid input or model doesn't exist. |
| 401 | Unauthorized – Invalid API key or email verification required. |
| 500 | Internal Server Error – Server-side issue. |
| 503 | Service Unavailable – Service temporarily unavailable. |
Example Usage
SDK Usage
💡 Dedicated SDK Guides: See Python SDK | TypeScript SDK
TypeScript/JavaScript
import { createClient } from '@knowledgator/typescript-sdk';
const kg = createClient(); // API key optional for public catalog
// Get model details
const model = await kg.finetuning.getModel('comprehend-it');
console.log(`Model: ${model.name}`);
console.log(`Parameters: ${model.num_of_parameters}`);
console.log(`Trainable Adapter: ${model.training_adapter}`);
Python
from knowledgator import Knowledgator
kg = Knowledgator() # API key optional for public catalog
# Get model details
model = kg.finetuning.get_model("comprehend-it")
print(f"Model: {model.name}")
print(f"Parameters: {model.num_of_parameters}")
print(f"Trainable Adapter: {model.training_adapter}")
Expected SDK Output
Model: comprehend-it
Parameters: 494M
Trainable Adapter: true
Python
import requests
url = "https://api.platform.knowledgator.com/models/comprehend-it/"
response = requests.get(url)
print(response.json())
cURL
# Public endpoint - no API key needed
curl -X GET "https://api.platform.knowledgator.com/models/comprehend-it/"
Expected Response (cURL)
{
"id": "comprehend-it",
"name": "comprehend-it",
"type": "text-classification",
"description": "Zero-shot text classification and reasoning model",
"num_of_parameters": "494M",
"training_model": true,
"training_adapter": true,
"inference": "comprehend-it",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"is_base": true
}
Additional Information
- Model IDs: Use the ID returned from create or list operations
- Use Cases:
- Verify model details before starting training
- Check model metadata and configuration
- Confirm model type matches your dataset