List models
GET /v1/models
Returns the models your key can call: shared models, plus the fine-tuned models your organisation owns. This is not the list of base models you can train; that catalogue is shown in the console when you create a training job.
curl https://api.zalthar.com/v1/models \
-H "Authorization: Bearer $ZALTHAR_API_KEY"
{
"object": "list",
"data": [
{
"id": "acme/support-triage",
"object": "model",
"created": 1795286400,
"owned_by": "zalthar",
"name": "support-triage",
"description": "",
"context_length": 8192,
"modalities": ["text"],
"pricing": {"prompt": "0.0000002", "completion": "0.0000008", "input_cache_read": "0.00000005"}
}
]
}
| Field | Notes |
|---|---|
id |
The slug to pass as model. Fine-tuned models are named <org-slug>/<job-name>. |
context_length |
Maximum tokens of context. |
modalities |
For example text, or decisions for decision models. |
pricing |
USD per token, as strings, for prompt, completion and cached input. A model with variable pricing shows "-1" and "variable": true. |
The example values above are illustrative. Use the live response for real prices.
Retrieve a model
GET /v1/models/{model}
Returns one model in the same shape. Model slugs contain a /, so pass them as they are, for example /v1/models/acme/support-triage.
Requests to /v1/models count towards your key’s rate limit.
