# List All Models

`GET https://api.vultrinference.com/v1/models/all`

**Deprecated.** The chat, speech and image models the API serves, in three lists. Deprecated: `GET /v1/models` lists every model the API serves with everything it accepts and costs, and needs no key; its `output_modalities` parameter (`text`, `speech` or `image`) narrows it to one list.

## Responses

- `200`: OK (all-models-response-payload)
- `400`: Bad Request, including a request that failed validation (the message names the rejected field) (error-payload)
- `401`: The API key is missing, unknown or not active. Send it as Authorization: Bearer <key>. (error-payload)
- `503`: The list of models being served could not be read, so the request's model could not be resolved. Retry shortly. (error-payload)

## Example

```bash
curl https://api.vultrinference.com/v1/models/all \
  -H "Authorization: Bearer $VULTR_INFERENCE_API_KEY"
```

```python
import os
import requests

response = requests.get(
    "https://api.vultrinference.com/v1/models/all",
    headers={"Authorization": f"Bearer {os.environ['VULTR_INFERENCE_API_KEY']}"},
)
print(response.json())
```

```javascript
const response = await fetch("https://api.vultrinference.com/v1/models/all", {
  headers: {
    Authorization: `Bearer ${process.env.VULTR_INFERENCE_API_KEY}`,
  },
});
console.log(await response.json());
```
