Get available AI models
GET/api/v2/aimodel
Returns the AI models the tenant can select for an agent, newest first. Only models that are configured, have a current price and are not deprecated within the next 30 days are listed.
Request
Query Parameters
Default value: 1
Default value: 20
Possible values: [0, 1, 2, 3, 4, 5, 6, 7]
Optional AIModelMode to filter by, as a name (e.g., "Chat", "Embedding", "Audio") or its numeric value
Optional filter: true returns only featured models, false only non-featured ones
Use this param to override the culture of the response. Options: - en (default) - es
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Success
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Array [
]
items
object[]
nullable
links
object[]
nullable
The model mode (e.g., "Chat", "Embedding", "Audio").
Whether the model is featured.
The date the model is scheduled to be deprecated, if any.
links
object[]
nullable
{
"items": [
{
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
],
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"modelId": "string",
"vendor": "string",
"mode": "string",
"featured": true,
"deprecationDate": "2024-07-29T15:51:28.071Z",
"caption": "string"
}
],
"total": 0,
"pageSize": 0,
"page": 0,
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
],
"defaultModelId": "string",
"getPageURL": "string",
"createURL": "string"
}
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Array [
]
items
object[]
nullable
links
object[]
nullable
The model mode (e.g., "Chat", "Embedding", "Audio").
Whether the model is featured.
The date the model is scheduled to be deprecated, if any.
links
object[]
nullable
{
"items": [
{
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
],
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"modelId": "string",
"vendor": "string",
"mode": "string",
"featured": true,
"deprecationDate": "2024-07-29T15:51:28.071Z",
"caption": "string"
}
],
"total": 0,
"pageSize": 0,
"page": 0,
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
],
"defaultModelId": "string",
"getPageURL": "string",
"createURL": "string"
}
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Array [
]
items
object[]
nullable
links
object[]
nullable
The model mode (e.g., "Chat", "Embedding", "Audio").
Whether the model is featured.
The date the model is scheduled to be deprecated, if any.
links
object[]
nullable
{
"items": [
{
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
],
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"modelId": "string",
"vendor": "string",
"mode": "string",
"featured": true,
"deprecationDate": "2024-07-29T15:51:28.071Z",
"caption": "string"
}
],
"total": 0,
"pageSize": 0,
"page": 0,
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
],
"defaultModelId": "string",
"getPageURL": "string",
"createURL": "string"
}
If the page size exceeds the limit or the mode is not valid.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
Array [
]
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
errors
object
nullable
Map of keys (an invalid request field or the rule that failed) to messages. Only present when the error has specific detail to report. Values are strings, except on input_validation_error, where each value is an array of messages for that field.
property name*
object
nullable
oneOf
string
string
{
"code": "string",
"message": "string",
"documentationUrl": "string",
"errors": {}
}
The user is unauthorized or the session expired
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}
The user does not have permission
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}
The entity was not found
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
Array [
]
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
errors
object
nullable
Map of keys (an invalid request field or the rule that failed) to messages. Only present when the error has specific detail to report. Values are strings, except on input_validation_error, where each value is an array of messages for that field.
property name*
object
nullable
oneOf
string
string
{
"code": "string",
"message": "string",
"documentationUrl": "string",
"errors": {}
}
There was an unexpected error
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}