Chat

Get available models

Deprecated: Use GET /v2/ai/openai/models instead.

Returns the same ModelsResponse payload as the OpenAI-compatible endpoint — open-source LLMs hosted on Telnyx (e.g. moonshotai/Kimi-K2.6, zai-org/GLM-5.1-FP8, MiniMaxAI/MiniMax-M2.7), embedding models, and fine-tuned models — kept around for backwards compatibility. New integrations should use /v2/ai/openai/models.

Model ids follow the {organization}/{model_name} convention from Hugging Face.

get/ai/models

Response

Successful Response

objectstring

Example response

{
  "data": [
    {
      "id": "moonshotai/Kimi-K2.6",
      "owned_by": "Telnyx",
      "organization": "moonshotai",
      "task": "text-generation",
      "context_length": 262144,
      "parameters": 1000000000000,
      "parameters_str": "1.0T",
      "pricing": {
        "prompt": "0.300000",
        "completion": "1.200000",
        "cached_prompt": "0.060000",
        "currency": "USD",
        "unit": "1M_tokens"
      },
      "regions": [
        "us-central-1",
        "us-east-1"
      ]
    }
  ]
}

Changes

Changed in 2 of the 47 revisions of this API.117

  • 6e906ca0dcb6116See the full diff
    • the data/items/created response's property type/format changed from integer/ to string/date-time for status 200

      response-property-type-changed

    • added the optional property data/items/base_model to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/description to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/is_fine_tunable to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/is_vision_supported to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/max_completion_tokens to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/parameters_str to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/pricing to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/recommended_for_assistants to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/regions to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/task to the response with the 200 status

      response-optional-property-added

    • added the required property data/items/context_length to the response with the 200 status

      response-required-property-added

    • added the required property data/items/languages to the response with the 200 status

      response-required-property-added

    • added the required property data/items/license to the response with the 200 status

      response-required-property-added

    • added the required property data/items/organization to the response with the 200 status

      response-required-property-added

    • added the required property data/items/parameters to the response with the 200 status

      response-required-property-added

    • added the required property data/items/tier to the response with the 200 status

      response-required-property-added

    • endpoint deprecated

      endpoint-deprecated

    This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog