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
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

NameTypeRequiredDescription
idtextYesRequiredThe id or alias to send in the model field of a chat request.
objecttextYesRequiredAlways model.
creatednumberYesRequiredWhen the model was released, as a Unix time in seconds.
owned_bytextYesRequiredAlways antarya.
max_output_tokensnumberYesRequiredThe longest reply, in tokens. Today 2,048.
inputsarrayYesRequiredWhat a message can hold, from text, image and file.
capabilitiesobjectYesRequiredA 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.

Next steps