# Qwen

> Connect Qwen AI by Alibaba Cloud to answer questions, write, and summarize with models like Qwen Max and Qwen Plus.

App · AI Models · 1 action. Web page: https://docs.lodol.com/docs/integrations/qwen

## Actions

### Query Model

Send a message or question to a Qwen AI model and get a written response back.

**Inputs**

- Message (`prompt`, text, required): The message or question you want to send to Qwen.
- Model (`model`, text): Choose which Qwen model answers your message. One of: `qwen-max` (Qwen Max (most capable)), `qwen-plus` (Qwen Plus (balanced, recommended)), `qwen-flash` (Qwen Flash (fastest, lowest cost)), `qwen-turbo` (Qwen Turbo (fast, low cost)), `qwen-long` (Qwen Long (long documents)). Default: `qwen-plus`.
- System instructions (`system_prompt`, text): Optional. Guidance that shapes how the model responds, for example 'You are a concise assistant that replies in bullet points.'
- Region (`region`, text): The Model Studio region your API key belongs to. Use International unless you created your key on the China (Beijing) console. One of: `international` (International (Singapore)), `china` (China (Beijing)). Default: `international`.

**Outputs**

- `model` (text): The model identifier used for generation
- `response_text` (text): The generated text response from Qwen

**Example output**

```json
{
  "model": "qwen-plus",
  "response_text": "Hello! How can I help you today?"
}
```
