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. The special value auto lets Hoveydai pick the default model.

cURL
curl https://api.hoveydai.ir/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 (small pieces of text, roughly a short word or part of a word).
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

Models are added and removed over time, and the list changes with them. Keep the model id in your app's settings, not in the middle of the code, so you can change it without a new release.

Did this page not help? Tell us.