{
  "opencollection": "1.0.0",
  "info": {
    "name": "Telnyx Access Tokens OpenAI Chat API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "OpenAI Chat",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a chat completion (OpenAI-compatible)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.telnyx.com/v2/ai/openai/chat/completions",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Chat with a language model. This endpoint is consistent with the [OpenAI Chat Completions API](https://platform.openai.com/docs/api-reference/chat) and may be used with the OpenAI JS or Python SDK by setting the base URL to `https://api.telnyx.com/v2/ai/openai`."
        },
        {
          "info": {
            "name": "Get available models (OpenAI-compatible)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.telnyx.com/v2/ai/openai/models"
          },
          "docs": "This endpoint returns a list of Open Source and OpenAI models that are available for use. <br /><br /> **Note**: Model `id`'s will be in the form `{source}/{model_name}`. For example `openai/gpt-4` or `mistralai/Mistral-7B-Instruct-v0.1` consistent with HuggingFace naming conventions."
        }
      ]
    }
  ],
  "bundled": true
}