Models
Get model ids and abilities from the API.
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 https://api.hoveydai.ir/v1/models \ -H "Authorization: Bearer $HOVEYDAI_API_KEY"
Each model has these fields:
| Field | Means |
|---|---|
id | The model id for the model field. |
owned_by | Always hoveydai. |
context_window | The longest input, in tokens (small pieces of text, roughly a short word or part of a word). |
max_output_tokens | The longest output, in tokens. |
supports_vision | Whether 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.