GET /v1/ai/models
GET
/v1/ai/models
const url = 'https://seu-endereco-da-api/v1/ai/models';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://seu-endereco-da-api/v1/ai/models \ --header 'Authorization: Bearer <token>'Permissão que a Chave de acesso precisa: Ler agentes de IA (agents:read).
Authorizations
Seção intitulada “Authorizations”Responses
Seção intitulada “Responses”Media typeapplication/json
Array<object>
object
id
required
string
label
required
string
vendor
required
string
costPerConversation
required
object
minCents
required
Estimated charge, in cents of real, of a short conversation (about 5 messages)
number
maxCents
required
Estimated charge, in cents of real, of a long conversation (about 20 messages)
number
Example
[ { "vendor": "anthropic" }]