Models
Successful Response
Type of the object.
listInvalid authentication scheme.
Invalid API key.
Your account has expired. Please contact support to renew your account.
GET /v1/models HTTP/1.1
Host: albert.api.etalab.gouv.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"object": "list",
"data": [
{
"object": "model",
"id": "text",
"type": "text-generation",
"aliases": [
"model-alias",
"model-alias-2"
],
"created": 1,
"owned_by": "text",
"max_context_length": 1,
"costs": {
"prompt_tokens": 0,
"completion_tokens": 0,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
}The name of the model to get.
Successful Response
Type of the object.
modelThe model identifier, which can be referenced in the API endpoints.
The type of the model, which can be used to identify the model type.
text-generationPossible values: Aliases of the model. It will be used to identify the model by users.
["model-alias","model-alias-2"]Time of creation, as Unix timestamp.
The organization that owns the model.
Maximum amount of tokens a context could contains. Makes sure it is the same for all models.
Invalid authentication scheme.
Invalid API key.
Your account has expired. Please contact support to renew your account.
Model {name} not found.
Validation Error
GET /v1/models/{model} HTTP/1.1
Host: albert.api.etalab.gouv.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"object": "model",
"id": "text",
"type": "text-generation",
"aliases": [
"model-alias",
"model-alias-2"
],
"created": 1,
"owned_by": "text",
"max_context_length": 1,
"costs": {
"prompt_tokens": 0,
"completion_tokens": 0,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}Last updated
Was this helpful?