Langsung ke konten
Skillpedia
Gambar & ikon75k ยท #2650

dashscope

Fungsinya

Skill ini menghubungkan layanan gambar, suara, dan transkripsi Alibaba Cloud DashScope ke proyek video. Cocok untuk kreator yang punya akun DashScope dan ingin memakai layanan ini.

Kapan dipakai

  • โœ“Saat Anda ingin membuat gambar dengan model gambar Qwen melalui DashScope.
  • โœ“Saat Anda membutuhkan suara narasi dari layanan text-to-speech Qwen.
  • โœ“Saat Anda membutuhkan transkripsi dengan waktu per kata dari DashScope.

Link skill

https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/dashscope/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/dashscope/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œBuatkan gambar poster dengan pemandangan matahari terbit di gunung menggunakan DashScope dan simpan ke proyek saya.โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mengirim permintaan ke layanan DashScope dengan kunci API Anda, menunggu hasilnya, lalu mengunduh file dengan cepat karena tautan hasilnya kedaluwarsa sekitar satu hari.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

DashScope

Requires DASHSCOPE_API_KEY in .env. Get one at https://dashscope.aliyun.com/.

Current API

CRITICAL: DashScope's /compatible-mode/v1/ only supports /chat/completions and /embeddings. Image generation, TTS, and ASR all use DashScope-native endpoints โ€” not OpenAI-compatible paths.

All three tools use Authorization: Bearer $DASHSCOPE_API_KEY.

Image Generation

POST https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation
  • Model: qwen-image-2.0-pro (default), qwen-image-max, wan2.7-image, z-image-turbo
  • Body: {model, input: {messages: [{role: "user", content: [{text: "prompt"}]}]}, parameters: {size: "W*H", n, prompt_extend, watermark}}
  • Size format uses asterisk: "1024*1024" not "1024x1024"
  • Response: output.choices[0].message.content[0].image (URL, valid ~24h) โ€” must download separately

Text-to-Speech

POST https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation

Same endpoint as image gen, different body.

  • Model: qwen3-tts-flash (default), qwen3-tts-instruct-flash, qwen-tts-2025-05-22
  • Body: {model, input: {text, voice: "Cherry", language_type: "Auto"}}
  • Response: output.audio.url (WAV, valid ~24h) โ€” must download separately

ASR with Word-Level Timestamps

POST https://dashscope.aliyuncs.com/api/v1/services/audio/asr/transcription
Header: X-DashScope-Async: enable
  • Model: qwen3-asr-flash-filetrans (NOT qwen3-asr-flash โ€” the sync version has no word timestamps)
  • Body: {model, input: {file_url: "https://public-url/audio.mp3"}, parameters: {enable_words: true, language_hints: ["zh","en"]}}
  • Returns task_id โ†’ poll GET /api/v1/tasks/{task_id} until SUCCEEDED โ†’ download output.result.transcription_url โ†’ JSON with transcripts[].sentences[].words[]
  • Timestamps in begin_time/end_time are in milliseconds โ€” the tool normalizes to seconds

OpenMontage Usage

Image via selector

from tools.graphics.image_selector import ImageSelector

result = ImageSelector().execute({
    "preferred_provider": "dashscope",
    "prompt": "ไธ€ๅช็Œซๅๅœจๆฒ™ๅ‘ไธŠ",
    "output_path": "projects/my-video/assets/images/cat.png",
})

TTS via selector

from tools.audio.tts_selector import TTSSelector

result = TTSSelector().execute({
    "preferred_provider": "dashscope",
    "text": "ๅฆ‚ๆžœ AI ็œŸ็š„ไผšๆ”นๅ˜ๆœชๆฅ๏ผŒๆ™ฎ้€šไบบๅˆฐๅบ•่ฏฅๆ€Žไนˆๅ‚ไธŽ๏ผŸ",
    "voice": "Cherry",
    "output_path": "projects/my-video/assets/audio/narration.wav",
})

ASR directly (word timestamps for subtitles)

from tools.analysis.dashscope_asr import DashscopeAsr

result = DashscopeAsr().execute({
    "audio_url": "https://example.com/narration.wav",
    "output_path": "projects/my-video/assets/audio/transcription.json",
})

# result.data["words"] is a flat list of {text, begin_time_seconds, end_time_seconds}

Recommended Workflow

  1. Image: Generate a sample first. Check prompt_extend: true (default) โ€” DashScope rewrites your prompt for better results. Disable if you need literal prompt adherence.
  2. TTS: Generate a 10-15 second sample before full narration. Approve voice and pacing before committing to full generation.
  3. ASR: Audio must be at a publicly accessible URL. Upload to any public host (S3, etc.) first. Local paths are rejected with a clear error.
  4. Subtitles: Build from result.data["words"] โ€” each word has begin_time_seconds and end_time_seconds. Group words into caption phrases by language semantics, not fixed character count.

Parameters

Image (dashscope_image)

  • prompt (required): text prompt
  • model: default qwen-image-2.0-pro
  • size: default "1024*1024" โ€” asterisk separator, not "x"
  • n: 1-6 images
  • negative_prompt: things to avoid (max 500 chars)
  • prompt_extend: default true โ€” auto-rewrite prompt for better results
  • watermark: default false
  • seed: for reproducibility

TTS (dashscope_tts)

  • text (required): text to synthesize (max 600 chars for qwen3-tts-flash)
  • model: default qwen3-tts-flash
  • voice: default "Cherry" โ€” other voices: "Ethan", "Chelsie", etc.
  • language_type: default "Auto" โ€” "Chinese", "English", "Japanese", "Korean"
  • instructions: natural language delivery instructions (only for qwen3-tts-instruct-flash)

ASR (dashscope_asr)

  • audio_url (required): must be publicly accessible URL
  • model: `qwen3-asr-flas
Pertanyaan umum

Apa yang perlu saya siapkan?

Anda membutuhkan DASHSCOPE_API_KEY di file .env Anda, yang didapat dari situs DashScope.

Mengapa saya harus mengunduh hasil dengan cepat?

Tautan gambar dan audio kedaluwarsa sekitar satu hari, jadi file sebaiknya langsung disimpan.

Layanan apa saja yang tercakup?

Pembuatan gambar, text-to-speech, dan pengenalan suara dengan waktu per kata.

Detail

Deskripsi asli dari pembuat

DashScope (Alibaba Cloud Bailian / ้˜ฟ้‡Œไบ‘็™พ็‚ผ) integration โ€” image generation (qwen-image-2.0-pro), text-to-speech (qwen3-tts-flash), and ASR with word-level timestamps (qwen3-asr-flash-filetrans). Use when generating images via Qwen-Image, narrating via Qwen-TTS, or transcribing with word-level timestamps via Qwen-ASR.

repo: calesthio/OpenMontage

Popularitas

Bintang GitHub
75k
Peringkat
#2650
Lisensi
AGPL-3.0
Diperbarui
28/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa