List available AI models
GET
/api/v1/ai/models
const url = 'https://app.avera.io/api/v1/ai/models?refresh=false';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.avera.io/api/v1/ai/models?refresh=false'A read-only catalog sourced live from the provider’s models API, cached and overlaid with curated labels. Under BYOK the list is per tenant: it reflects what that tenant’s own provider account can see. Pass refresh=true to bypass the cache.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”refresh
boolean
Responses
Section titled “Responses”OK
Media type*/*
Array<object>
object
id
required
string
label
required
string
recommended
required
boolean
sortOrder
required
integer format: int32
maxInputTokens
integer | null format: int32
maxOutputTokens
integer | null format: int32