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.openai.embeddings.listEmbeddingModels();console.log(response.data);
Returns a list of available embedding models. This endpoint is compatible with the OpenAI Models API format.
GET
/
ai
/
openai
/
embeddings
/
models
JavaScript
Copy
Ask AI
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.openai.embeddings.listEmbeddingModels();console.log(response.data);