Prerequisites
- Telnyx account
- API Key
- Python 3.8+
base_url swap.
Python
Core Concepts
Messages
Chat history passed to the model.Roles
Every message has a role: system, user, assistant, or tool.- system — model behavior instructions
- user — end-user input
- assistant — model output
- tool — function call results. See Function Calling.
Models
Available Models lists all hosted LLMs with context lengths and capabilities.Streaming
Server-sent events, same as OpenAI.What Next?
| I want to… | Go to |
|---|---|
| Build a voice assistant | No-Code Voice Assistant |
| Call custom code from the model | Function Calling / Streaming Functions |
| Ground responses in documents | Embeddings |
| Identify themes in data | Clusters |
| Migrate from OpenAI | OpenAI Migration |
| Browse all models | Available Models |