base_url and api_key in any framework that supports OpenAI.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Check out our upcoming events and meetups! View events →
Use the OpenAI-compatible Telnyx Inference API with popular AI frameworks by swapping base_url and api_key — works with LangChain, LlamaIndex, and others.
base_url and api_key in any framework that supports OpenAI.
| Framework | Swap Method | Guide |
|---|---|---|
| OpenAI SDK | base_url in client constructor | OpenAI Migration |
| LangChain | base_url in ChatOpenAI | LangChain |
| LlamaIndex | api_base in OpenAILike | LlamaIndex |
| CrewAI | OPENAI_BASE_URL env var or base_url in LLM | CrewAI |
| LiveKit | Telnyx as LLM provider | LiveKit |
export OPENAI_API_KEY=your_telnyx_api_key
export OPENAI_BASE_URL=https://api.telnyx.com/v2/ai/openai
Was this page helpful?