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

const client = new Telnyx({
  apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});

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

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

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