dashscope

Generates images, speech, and word-level ASR transcriptions via DashScope APIs.

Updated Jul 16, 2026
One-click install
npx skills add https://github.com/X-manist/Cohmira --skill dashscope-x-manist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dashscope
Source: https://github.com/X-manist/Cohmira/tree/main/src/builtin-plugins/openmontage/.agents/skills/dashscope
Command: npx skills add https://github.com/X-manist/Cohmira --skill dashscope-x-manist

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Integrating Alibaba Cloud DashScope (Bailian) media models is error-prone because image generation, TTS, and ASR use DashScope-native endpoints rather than the OpenAI-compatible path, each with different request bodies, size formats, and async polling patterns. This Skill documents the exact endpoints, parameters, and pitfalls so you can call Qwen-Image, Qwen-TTS, and Qwen-ASR correctly on the first attempt. ## Core Features & Use Cases - Image Generation: Call qwen-image-2.0-pro and related models with correct size formatting ("1024*1024"), prompt extension, negative prompts, and seed control. - Text-to-Speech: Synthesize narration with qwen3-tts-flash using selectable voices and language types, returning a downloadable WAV URL. - ASR with Word Timestamps: Transcribe publicly hosted audio via the async qwen3-asr-flash-filetrans model, polling the task endpoint and normalizing millisecond timestamps to seconds for subtitle generation. - Use Case: Build a video pipeline where you generate cover images, narrate a script with TTS, then transcribe the narration to produce word-timed subtitles. ## Quick Start Set DASHSCOPE_API_KEY in your .env file, then ask the agent to generate an image with the dashscope provider, synthesize narration with a chosen voice, or transcribe a public audio URL with word-level timestamps.

Frequently Asked Questions about dashscope

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate images with the DashScope API?

POST to the DashScope multimodal-generation endpoint with model qwen-image-2.0-pro and a messages-style body. Sizes use an asterisk separator like "1024*1024", and the response contains a temporary image URL you must download within about 24 hours.

How to get word-level timestamps from DashScope ASR?

Use the qwen3-asr-flash-filetrans model with enable_words set to true and the X-DashScope-Async header. Poll the task endpoint until it succeeds, then download the transcription JSON containing per-word begin and end times in milliseconds.

Does DashScope support OpenAI-compatible endpoints for image and audio?

No. The compatible-mode endpoint only supports chat completions and embeddings. Image generation, TTS, and ASR all require DashScope-native endpoints under /api/v1/services/.

Why does DashScope ASR reject my audio file?

The audio_url must be publicly accessible because DashScope servers fetch the file directly. Local paths and auth-gated URLs fail, so upload the audio to a public host such as S3 first.

Why is my DashScope image request failing with a size error?

The size parameter uses an asterisk separator, for example "2048*2048", not "2048x2048". Passing the x format triggers a validation error from the API.