Skip to main content
Telnyx Inference exposes hosted language models through an OpenAI-compatible Chat Completions API. The plugin is a thin wrapper over the shared Chat Completions client pointed at https://api.telnyx.com/v2/ai, so streaming and tool calling work the same as any other Chat Completions provider.
Vision Agents uses Stream Video for real-time WebRTC transport by default. External WebRTC transports are supported as well. Most AI providers offer free tiers to get started.
Get your Telnyx API key from the Telnyx Mission Control Portal.
Telnyx also provides speech-to-text, text-to-speech, and PSTN telephony. You can use all four in the same agent.

Installation

Quick start

Set TELNYX_API_KEY in your environment or pass api_key directly.

Parameters

Model ids come from the Telnyx catalogue at GET /v2/ai/models and are not validated locally.

Function calling

See the Function Calling guide for details.

Next steps

Telnyx STT

Streaming speech-to-text

Telnyx TTS

Streaming text-to-speech

Telnyx Telephony

PSTN calls via Call Control

Function Calling

Register tools your LLM can invoke