Category: provider
Model Studio Qwen Text Generation
Validation
mkdir -p output/aliyun-qwen-generation
python -m py_compile skills/ai/text/aliyun-qwen-generation/scripts/prepare_generation_request.py && echo "py_compile_ok" > output/aliyun-qwen-generation/validate.txt
Pass criteria: command exits 0 and output/aliyun-qwen-generation/validate.txt is generated.
Output And Evidence
- Save prompt templates, normalized request payloads, and response summaries under
output/aliyun-qwen-generation/.
- Keep one reproducible request example with model name, region, and key parameters.
Use this skill for general text generation, reasoning, tool-calling, and long-context chat on Alibaba Cloud Model Studio.
Critical model names
Prefer the current flagship families:
qwen3-max
qwen3-max-2026-01-23
qwen3.5-plus
qwen3.5-plus-2026-02-15
qwen3.5-flash
qwen3.5-flash-2026-02-23
Common related variants listed in the official model catalog:
qwen3.5-397b-a17b
qwen3.5-122b-a10b
qwen3.5-35b-a3b
qwen3.5-27b
Prerequisites
- Install SDK in a virtual environment:
python3 -m venv .venv
. .venv/bin/activate
python -m pip install dashscope
- Set
DASHSCOPE_API_KEY in your environment, or add dashscope_api_key to ~/.alibabacloud/credentials.
Normalized interface (text.generate)
Request
messages (array, required): standard chat turns.
model (string, optional): default qwen3.5-plus.
temperature (number, optional)
top_p (number, optional)
max_tokens (int, optional)
enable_thinking (bool, optional)
tools (array, optional)
response_format (object, optional)
stream (bool, optional)
Response
text (string): assistant output.
finish_reason (string, optional)
usage (object, optional)
raw (object, optional)
Quick start (OpenAI-compatible endpoint)
curl -sS https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.5-plus",
"messages": [
{"role": "system", "content": "You are a concise assistant."},
{"role": "user", "content": "Summarize why object storage helps media pipelines."}
],
"stream": false
}'
Local helper script
python skills/ai/text/aliyun-qwen-generation/scripts/prepare_generation_request.py \
--prompt "Draft a concise architecture summary for a media ingestion pipeline." \
--model qwen3.5-plus
Operational guidance
- Use snapshot IDs when reproducibility matters.
- Prefer
qwen3.5-flash for lower-latency simple tasks and qwen3-max for harder multi-step tasks.
- Keep tool schemas minimal and explicit when enabling tool calls.
- For multimodal input, route to dedicated VL or Omni skills unless the task is primarily text-centric.
Output location
- Default output:
output/aliyun-qwen-generation/requests/
- Override base dir with
OUTPUT_DIR.
References
1---2name: aliyun-qwen-generation3description: Use when generating or reasoning over text with Alibaba Cloud Model Studio Qwen flagship text models (`qwen3-max`, `qwen3.5-plus`, `qwen3.5-flash`, snapshots, and compatible open-source variants). Use when building chat, agent, tool-calling, or long-context text generation workflows on Model Studio.4---5
6Category: provider
7
8# Model Studio Qwen Text Generation
9
10## Validation
11
12```bash
13mkdir -p output/aliyun-qwen-generation
14python -m py_compile skills/ai/text/aliyun-qwen-generation/scripts/prepare_generation_request.py && echo "py_compile_ok" > output/aliyun-qwen-generation/validate.txt
15```
16
17Pass criteria: command exits 0 and `output/aliyun-qwen-generation/validate.txt` is generated.
18
19## Output And Evidence
20
21- Save prompt templates, normalized request payloads, and response summaries under `output/aliyun-qwen-generation/`.
22- Keep one reproducible request example with model name, region, and key parameters.
23
24Use this skill for general text generation, reasoning, tool-calling, and long-context chat on Alibaba Cloud Model Studio.
25
26## Critical model names
27
28Prefer the current flagship families:
29- `qwen3-max`
30- `qwen3-max-2026-01-23`
31- `qwen3.5-plus`
32- `qwen3.5-plus-2026-02-15`
33- `qwen3.5-flash`
34- `qwen3.5-flash-2026-02-23`
35
36Common related variants listed in the official model catalog:
37- `qwen3.5-397b-a17b`
38- `qwen3.5-122b-a10b`
39- `qwen3.5-35b-a3b`
40- `qwen3.5-27b`
41
42## Prerequisites
43
44- Install SDK in a virtual environment:
45
46```bash
47python3 -m venv .venv
48. .venv/bin/activate
49python -m pip install dashscope
50```
51
52- Set `DASHSCOPE_API_KEY` in your environment, or add `dashscope_api_key` to `~/.alibabacloud/credentials`.
53
54## Normalized interface (text.generate)
55
56### Request
57- `messages` (array<object>, required): standard chat turns.
58- `model` (string, optional): default `qwen3.5-plus`.
59- `temperature` (number, optional)
60- `top_p` (number, optional)
61- `max_tokens` (int, optional)
62- `enable_thinking` (bool, optional)
63- `tools` (array<object>, optional)
64- `response_format` (object, optional)
65- `stream` (bool, optional)
66
67### Response
68- `text` (string): assistant output.
69- `finish_reason` (string, optional)
70- `usage` (object, optional)
71- `raw` (object, optional)
72
73## Quick start (OpenAI-compatible endpoint)
74
75```bash
76curl -sS https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions \
77 -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
78 -H "Content-Type: application/json" \
79 -d '{
80 "model": "qwen3.5-plus",
81 "messages": [
82 {"role": "system", "content": "You are a concise assistant."},
83 {"role": "user", "content": "Summarize why object storage helps media pipelines."}
84 ],
85 "stream": false
86 }'
87```
88
89## Local helper script
90
91```bash
92python skills/ai/text/aliyun-qwen-generation/scripts/prepare_generation_request.py \
93 --prompt "Draft a concise architecture summary for a media ingestion pipeline." \
94 --model qwen3.5-plus
95```
96
97## Operational guidance
98
99- Use snapshot IDs when reproducibility matters.
100- Prefer `qwen3.5-flash` for lower-latency simple tasks and `qwen3-max` for harder multi-step tasks.
101- Keep tool schemas minimal and explicit when enabling tool calls.
102- For multimodal input, route to dedicated VL or Omni skills unless the task is primarily text-centric.
103
104## Output location
105
106- Default output: `output/aliyun-qwen-generation/requests/`
107- Override base dir with `OUTPUT_DIR`.
108
109## References
110
111- `references/sources.md`