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

# OpenAI Realtime

[OpenAI](https://openai.com) provides native speech-to-speech over WebRTC with built-in STT/TTS. No separate speech services required.

> [!NOTE]
>
> Vision Agents uses [Stream Video](https://getstream.io/video/) for real-time WebRTC transport by default. [External WebRTC transports](https://visionagents.ai/integrations/introduction-to-integrations.md#edge-transport) are supported as well. Most AI providers offer free tiers to get started.

> [!TIP]
>
> OpenAI also provides a traditional [LLM](https://visionagents.ai/integrations/llm/openai.md) (Responses API and ChatCompletions) and standalone [text-to-speech](https://visionagents.ai/integrations/tts/openai.md).

## Installation

```sh theme={null}
uv add "vision-agents[openai]"
```

## Quick Start

```python theme={null}
from vision_agents.core import Agent, User
from vision_agents.plugins import openai, getstream

agent = Agent(
    edge=getstream.Edge(),
    agent_user=User(name="Assistant", id="agent"),
    instructions="You are a helpful voice assistant.",
    llm=openai.Realtime(model="gpt-realtime", voice="marin", fps=1),
)
```

## Parameters

| Name | Type | Default | Description |
| - | - | - | - |
| `model` | `str` | `"gpt-realtime-2"` | OpenAI realtime model |
| `voice` | `str` | `"marin"` | Voice ("marin", "alloy", "echo", etc.) |
| `fps` | `int` | `1` | Video frames per second |

## Next Steps

> [card] [OpenAI LLM](https://visionagents.ai/integrations/llm/openai.md)
>
> Responses API and ChatCompletions

> [card] [Build a Voice Agent](https://visionagents.ai/introduction/voice-agents.md)
>
> Get started with voice


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.