# Models

> GET /v1/models lists the models your key can use and describes each one.

## List models

`GET https://antarya.ai/v1/models`

Returns the models your key can use. `GET /v1/models/{id}` returns one. The [Models page](https://antarya.ai/docs/models.md) explains ids and aliases.

### Headers

| Header | Value |
|---|---|
| `Authorization` | `Bearer $ANTARYA_API_KEY` |

```bash
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"
```

```python
from antarya import Antarya

client = Antarya()

models = client.models.list()
model = client.models.get("antarya")
print(model.id)
```

```typescript
import Antarya from "antarya";

const client = new Antarya();

const models = await client.models.list();
const model = await client.models.get("antarya");
console.log(model.id);
```

Output:

```
{
  "object": "list",
  "data": [
    {"id": "antarya", "object": "model"}
  ]
}
```

Fetching one model returns its model object, with the fields below.

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

- `id` (text, required): The id or alias to send in the model field of a chat request.
- `object` (text, required): Always model.
- `created` (number, required): When the model was released, as a Unix time in seconds.
- `owned_by` (text, required): Always antarya.
- `max_output_tokens` (number, required): The longest reply, in tokens. Today 2,048.
- `inputs` (array, required): What a message can hold, from text, image and file.
- `capabilities` (object, required): 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.

## Next steps

- [Models](https://antarya.ai/docs/models.md): Ids, aliases and the model's limits.
- [Chat](https://antarya.ai/docs/api/chat.md): Send the id in a request.
- [Errors](https://antarya.ai/docs/api/errors.md): What a request for an unknown model returns.
