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

<Info>
  Vision Agents requires a [Stream](https://getstream.io/try-for-free/) account
  for real-time transport. Most providers offer free tiers to get started.
</Info>

<Tip>
  Qwen also provides [Realtime speech-to-speech](/integrations/realtime/qwen) with native audio I/O and built-in STT/TTS.
</Tip>

## 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.</Warning>

## Next Steps

<CardGroup cols={2}>
  <Card title="Qwen Realtime" icon="bolt" href="/integrations/realtime/qwen">
    Native speech-to-speech with built-in STT/TTS
  </Card>

  <Card title="Build a Voice Agent" icon="microphone" href="/introduction/voice-agents">
    Get started with voice
  </Card>
</CardGroup>
