{ "opencollection": "1.0.0", "info": { "name": "Telnyx Access Tokens Chat API", "version": "2.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Chat", "type": "folder" }, "items": [ { "info": { "name": "Create a chat completion", "type": "http" }, "http": { "method": "POST", "url": "https://api.telnyx.com/v2/ai/chat/completions", "body": { "type": "json", "data": "{}" } }, "docs": "**Deprecated**: Use `POST /v2/ai/openai/chat/completions` instead. 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." }, { "info": { "name": "Get available models", "type": "http" }, "http": { "method": "GET", "url": "https://api.telnyx.com/v2/ai/models" }, "docs": "**Deprecated**: Use `GET /v2/ai/openai/models` instead. This endpoint returns a list of Open Source and OpenAI models that are available for use.

**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." }, { "info": { "name": "Summarize file content", "type": "http" }, "http": { "method": "POST", "url": "https://api.telnyx.com/v2/ai/summarize", "body": { "type": "json", "data": "{}" } }, "docs": "Generate a summary of a file's contents. \n\n Supports the following text formats: \n- PDF, HTML, txt, json, csv\n\n Supports the following media formats (billed for both the transcription and summary): \n- flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm\n- Up to 100 MB" } ] } ], "bundled": true }