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

# Qwen LLM

[Qwen](https://www.alibabacloud.com/en/solutions/generative-ai/qwen) provides powerful language models via the DashScope API. Use `ChatCompletionsLLM` from the OpenAI plugin with Qwen's OpenAI-compatible endpoint.

> [!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]
>
> Qwen also provides [Realtime speech-to-speech](https://visionagents.ai/integrations/realtime/qwen.md) with native audio I/O and built-in STT/TTS.

## 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, deepgram, getstream

agent = Agent(
    edge=getstream.Edge(),
    agent_user=User(name="Assistant", id="agent"),
    instructions="You are a helpful assistant.",
    llm=openai.ChatCompletionsLLM(
        model="qwen-plus",
        base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
        api_key="your_dashscope_api_key",
    ),
    stt=deepgram.STT(),
    tts=deepgram.TTS(),
)
```

> [!WARNING]
>
> Set `DASHSCOPE_API_KEY` in your environment.

## Next Steps

> [card] [Qwen Realtime](https://visionagents.ai/integrations/realtime/qwen.md)
>
> Native speech-to-speech with built-in STT/TTS

> [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.