Hoveydai

Models

Get model ids and abilities from the API.

Reading time: 1 min

List models

The models your plan may use come from GET /v1/models. The id is what you put in the model field of a request.

cURL
curl https://<HOVEYDAI_BASE_URL>/v1/models \  -H "Authorization: Bearer $HOVEYDAI_API_KEY"

Each model has these fields:

FieldMeans
idThe model id for the model field.
owned_byAlways hoveydai.
context_windowThe longest input, in tokens.
max_output_tokensThe longest output, in tokens.
supports_visionWhether the model accepts images.

You can also read one model with GET /v1/models/{model_id}. If we do not know the id, the answer is 404 with model_not_found.

Prices are not in the API

The price of a model is not part of this response. See prices on models and prices.

Models change

When a provider adds or removes a model, the list changes too. Keep the model id in your app's settings, not in the middle of the code, so it can change without a new release.

Did this page not help? Tell us.