> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Framework Integrations

> Use the OpenAI-compatible Telnyx Inference API with popular AI frameworks by swapping base_url and api_key — works with LangChain, LlamaIndex, and others.

OpenAI-compatible API. Swap `base_url` and `api_key` in any framework that supports OpenAI.

## Quick Reference

| Framework  | Swap Method                                    | Guide                                              |
| ---------- | ---------------------------------------------- | -------------------------------------------------- |
| OpenAI SDK | `base_url` in client constructor               | [OpenAI Migration](/docs/inference/openai)         |
| LangChain  | `base_url` in `ChatOpenAI`                     | [LangChain](/docs/inference/langchain-integration) |
| LlamaIndex | `api_base` in `OpenAILike`                     | [LlamaIndex](/docs/inference/llama-index)          |
| CrewAI     | `OPENAI_BASE_URL` env var or `base_url` in LLM | [CrewAI](/docs/inference/crewai)                   |
| LiveKit    | Telnyx as LLM provider                         | [LiveKit](/docs/inference/livekit)                 |

## Environment Variables

Route all OpenAI SDK calls through Telnyx with no code changes:

```shell theme={null}
export OPENAI_API_KEY=your_telnyx_api_key
export OPENAI_BASE_URL=https://api.telnyx.com/v2/ai/openai
```
