API reference
Models
List models
GET https://antarya.ai/v1/models
Returns the models your key can use. GET /v1/models/{id} returns one. The Models page explains ids and aliases.
Headers
| Header | Value |
|---|---|
Authorization |
Bearer $ANTARYA_API_KEY |
curl https://antarya.ai/v1/models \
-H "Authorization: Bearer $ANTARYA_API_KEY"
curl https://antarya.ai/v1/models/antarya \
-H "Authorization: Bearer $ANTARYA_API_KEY"Output
{
"object": "list",
"data": [
{"id": "antarya", "object": "model"}
]
}Fetching one model returns its model object, with the fields below.
curl https://antarya.ai/v1/models/antarya \
-H "Authorization: Bearer $ANTARYA_API_KEY"Output
{
"id": "antarya",
"object": "model",
"created": 1795737600,
"owned_by": "antarya",
"max_output_tokens": 2048,
"inputs": ["text", "image", "file"],
"capabilities": {
"conversations": true,
"images": true,
"files": true,
"streaming": true,
"thinking": true,
"system": false,
"tools": false,
"structured_output": false,
"artifacts": false
}
}The model object
| Name | Type | Required | Description |
|---|---|---|---|
id | text | YesRequired | The id or alias to send in the model field of a chat request. |
object | text | YesRequired | Always model. |
created | number | YesRequired | When the model was released, as a Unix time in seconds. |
owned_by | text | YesRequired | Always antarya. |
max_output_tokens | number | YesRequired | The longest reply, in tokens. Today 2,048. |
inputs | array | YesRequired | What a message can hold, from text, image and file. |
capabilities | object | YesRequired | A true or false flag for each of conversations, images, files, streaming, thinking, system, tools, structured_output and artifacts. A flag that is false is not available on this model yet. |