Skip to main content
GET
/
ai
/
openai
/
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.openai.listModels();

console.log(response.data);
{
  "data": [
    {
      "id": "moonshotai/Kimi-K2.6",
      "created": "2023-11-07T05:31:56Z",
      "owned_by": "Telnyx",
      "organization": "moonshotai",
      "context_length": 262144,
      "languages": [
        "<string>"
      ],
      "parameters": 1000000000000,
      "tier": "small",
      "license": "<string>",
      "object": "model",
      "base_model": "<string>",
      "task": "text-generation",
      "max_completion_tokens": 123,
      "parameters_str": "1.0T",
      "is_fine_tunable": false,
      "recommended_for_assistants": false,
      "is_vision_supported": false,
      "description": "<string>",
      "pricing": {
        "input": "0.60",
        "output": "2.50"
      },
      "regions": [
        "us-central-1",
        "us-east-1"
      ]
    }
  ],
  "object": "list"
}

Documentation Index

Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt

Use this file to discover all available pages before exploring further.

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