dashscope

Generate images, synthesize speech, and transcribe audio with word-level timestamps via DashScope APIs.

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/zamansepeti43/c-rak-agent --skill dashscope-zamansepeti43
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dashscope
Source: https://github.com/zamansepeti43/c-rak-agent/tree/main/video-engine/.agents/skills/dashscope
Command: npx skills add https://github.com/zamansepeti43/c-rak-agent --skill dashscope-zamansepeti43

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 its own quirks like asterisk size formats and async polling. This Skill documents the exact endpoints, request bodies, 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, retrieving the WAV URL from the response. - ASR with Word Timestamps: Transcribe publicly hosted audio via the async qwen3-asr-flash-filetrans model, poll the task until completion, and obtain per-word begin/end times in seconds for subtitle generation. - Use Case: Build a video narration pipeline — generate a voiceover with TTS, transcribe it with ASR to get word-level timestamps, and group words into subtitle cues for a video project. ## Quick Start Set DASHSCOPE_API_KEY in your .env file, then ask the agent to generate a sample image with the dashscope provider and a short TTS narration clip to verify both endpoints work.

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 audio transcription?

Use the async qwen3-asr-flash-filetrans model with enable_words set to true and a publicly accessible audio URL. Poll the returned task_id 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 generation?

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/ with a Bearer token.

Why does DashScope ASR reject my local audio file?

DashScope servers fetch the audio themselves, so the file_url must be publicly reachable. Local paths and auth-gated URLs fail; upload the file to a public host such as S3 first.

Why is my DashScope image size parameter rejected?

The size parameter uses an asterisk separator, not the letter x. Pass values like "2048*2048" instead of "2048x2048" to avoid the size format error.

What are the limits of qwen3-tts-flash text-to-speech?

qwen3-tts-flash accepts up to 600 characters per request and returns a WAV URL valid for roughly 24 hours. Generate a short 10-15 second sample first to approve the voice and pacing before full narration.