/v1/models
Enumerating models
Models
The models endpoint gives the listing of all models in the catalogue, as well as current state. This endpoint can be called from either an authenticated or unauthenticated context.
HTTP request
GET https://api.featherless.ai/v1/models
Query Parameters
Parameter | Type | Description |
---|---|---|
| integer | Set this parameter to limit the results to match the currently authenticated user’s plan. set to |
Response body
If successful, the response body will contain data with the following structure:
{
"data": [
{
"id": "vicgalle/Roleplay-Llama-3-8B",
"name": "vicgalle/Roleplay-Llama-3-8B",
"model_class": "llama3-8b-8k",
"context_length": 8192,
"max_completion_tokens": 4096
},
// and more models ..
]
}
Model Attributes
Parameter | Type | Description |
---|---|---|
| string | use this value when calling a completion endpoint |
| string | |
| integer | Maximum context length (i.e. prompt + completion) supported by the model. Clients that call a completion endpoint wit this model and a prompt of this length or longer should expect an error |
| integer | Maximum amount of output that will be generated in a single call. Calls to completion endpoints with |
| boolean | Will return Users must have ungated the model in their connected HuggingFace account before a completion call will be accepted for this model on featherless. Otherwise the completion call will return Note this a property of the model. It does not report the currently authenticated user’s relationship to that model. |
| boolean | returned if and only if the request was authenticated. If the value is |
Example request
curl "https://api.featherless.ai/v1/models?available_on_current_plan=true" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $FEATHERLESS_API_KEY"