dashscope-image-gen

dashscope-image-gen is a skill for Claude Code from desirecore/market. It costs 94 tokens per session (2,621 once invoked), scanned A, original, MIT.

An image-generation guide for creating pictures through an OpenAI-compatible image API. It supports the listed GPT Image and Wan models when the required service is configured.

In plain words
What is it for?
Use it when someone asks for a new image, such as an illustration, concept, mockup, or other generated visual.
Why use it?
It gives the coding agent a defined way to request generated images, handle the returned image data, and make the result available to the user.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/desirecore/market/dashscope-image-gen
Any agent
npx skills add desirecore/market --skill dashscope-image-gen
Clone the repo
git clone --depth 1 https://github.com/desirecore/market

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dashscope-image-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/desirecore/market/dashscope-image-gen.svg)](https://agentmods.dev/skills/desirecore/market/dashscope-image-gen)
Your own site
<a href="https://agentmods.dev/skills/desirecore/market/dashscope-image-gen"><img src="https://agentmods.dev/badge/skills/desirecore/market/dashscope-image-gen.svg" alt="Measured on agentmods" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,621 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00094 $0.02621
Opus 5 $0.00047 $0.01311
Sonnet 5 $0.00019 $0.00524
Haiku 4.5 $0.00009 $0.00262

Measured 5d ago against content hash 3be681fc6405, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

dashscope-image-gen scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

5. **Use Bash curl throughout** — do not use the HttpRequest tool or Python
skills/dashscope-image-gen/SKILL.md · 240 lines

How it starts

The opening of the file, as written. The whole thing — 240 lines — stays where its author put it; the contents beside it link to each section on GitHub.

dashscope-image-gen Skill

Mandatory Rules (violations cause failure)

  1. STRICTLY follow the execution steps below — do NOT improvise, explore alternative endpoints, or try models not listed in this document
  2. Must access agent-service over HTTPS — the API address is already provided in the system prompt under the local API section (e.g. https://127.0.0.1:PORT); use it directly with -k to skip certificate verification
  3. Must upload to media-store via /api/media/upload/tmp is only a transient download/decode location, never use a local path as the final output
  4. Must use the dc-media:// protocol to display images — the only form the frontend can render correctly
  5. Use Bash curl throughout — do not use the HttpRequest tool or Python
  6. Use /images/generations endpoint — synchronous call; the response contains b64_json image data
  7. Only use models listed below — do NOT try dall-e-3, qwen-vl, or any model not in the Model Selection table

Provider & Default Compute

You do NOT need to specify a provider — just pass "serviceType": "image_gen" and the system will automatically route to the correct provider.

Never try to query provider lists, read compute.json, or explore available models through API calls. The models listed below are guaranteed to work.

Model Selection

Model Characteristics When to use
gpt-image-2 High quality, fast, versatile styles Default — use when user does not specify a model
wan2.7-image Standard high quality (requires DashScope provider) Only when user explicitly asks for Wan / DashScope
wan2.7-image-pro Flagship, 4K resolution (requires DashScope provider) Only when user explicitly asks for top quality Wan model

Default rule: if the user does not specify a model, use gpt-image-2.

Note: wan2.7-image and wan2.7-image-pro only work when the user has configured their own Alibaba Cloud DashScope provider. If you get an error with these models, fall back to gpt-image-2.

Read the full file on GitHub · 240 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 240 lines · 94 tokens per session scan A 3be681fc6405

Subscribe to this mod's changes

dashscope-image-gen is a skill published in the GitHub repository desirecore/market (2 stars, last pushed today), licensed MIT. It adds 94 tokens to every session and 2,621 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

wegent-image-generation

Use this skill when the user asks to generate, draw, create, or revise an image. Supports text-to-image and image-reference generation.

wecode-ai/Wegent · 28 tokens

image-gen-tool

Image and 3D model generation tool using NovelAI, Flux, and Meshy for illustrations and 3D output. Use when: generating character art, bust or chibi images, avatars, or running image pipelines.

xuiltul/animaworks · 49 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, UI mockups, product shots, or transparent-background cutouts. Use when the result should be an image asset rather than repo-native SVG, HTML/CSS, or canvas.

nexus-research-lab/nexus · 65 tokens

rexai-image-generation

Use when the user wants to generate an image, edit an image, create visual artwork, produce text-to-image output, transform an existing image with image-to-image, or asks for 生图, 生成图片, 文生图, 图生图, text-to-image, image-to-image, AI image, picture generation, image result, image edit, or visual generation.

rexleimo/aios · 80 tokens

gemini-image-generator

Use when generating professional posed product images for e-commerce using Gemini AI with optimized prompts.

oyi77/1ai-skills · 21 tokens

image-gen

Use when aI image generation — Stable Diffusion, Midjourney, DALL-E, ComfyUI. Prompt engineering for images, inpainting, outpainting, ControlNet. Use when working with image gen.

oyi77/1ai-skills · 47 tokens