Skip to main content
GET
/
ai
/
models
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const response = await client.ai.retrieveModels();

console.log(response.data);
{
  "object": "list",
  "data": [
    {
      "id": "<string>",
      "object": "model",
      "created": 123,
      "owned_by": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Successful Response

data
ModelMetadata · object[]
required
object
string
default:list