image-to-image

image-to-image is a skill for Claude Code from desirecore/market. It costs 115 tokens per session (3,103 once invoked), scanned A, original, MIT.

An image-editing workflow for changing an existing picture with an AI image-generation service. It covers transformations such as changing the background or visual style.

In plain words
What is it for?
Editing, transforming, restyling, or replacing parts of an existing image through the supported image-generation API.
Why use it?
It provides a defined way to submit a source image, request changes, and return the edited result in a usable format.

Skill for Claude Code

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

Good fit Editing, transforming, restyling, or replacing parts of an existing image through the supported image-generation API.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desirecore/market/image-to-image
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.

Any agent
npx skills add desirecore/market --skill image-to-image
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 image-to-image

README.md
[![agentmods](https://agentmods.dev/badge/skills/desirecore/market/image-to-image/github.svg)](https://agentmods.dev/skills/desirecore/market/image-to-image)
Your own site
<a href="https://agentmods.dev/skills/desirecore/market/image-to-image"><img src="https://agentmods.dev/badge/skills/desirecore/market/image-to-image/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for image-to-image

Your own site · 80×15
<a href="https://agentmods.dev/skills/desirecore/market/image-to-image"><img src="https://agentmods.dev/badge/skills/desirecore/market/image-to-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,103 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00115 $0.03103
Opus 5 $0.00057 $0.01551
Sonnet 5 $0.00023 $0.00621
Haiku 4.5 $0.00012 $0.00310

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

Security

Grade A, and why

image-to-image 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 9d 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 (except for the b64 extraction script)
skills/image-to-image/SKILL.md · 264 lines

How it starts

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

image-to-image 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 "本机 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 (except for the b64 extraction script)
  6. Use /images/generations endpoint with image field — same endpoint as text-to-image, the image field triggers image-to-image mode
  7. Only use gpt-image-2 model — do NOT try dall-e-3, wan2.7-image, or any other model for image-to-image

Provider & Default Compute

This skill uses the gpt-image-2 model through the DesireCore Cloud provider. You do NOT need to specify a provider — just pass "serviceType": "image_gen" and the system will automatically route to the correct provider.

  • DesireCore Cloud (default, always available): The built-in compute provider supports gpt-image-2 for image-to-image. Users can use it immediately without any configuration.

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

When to Use This Skill

This skill should be triggered when the user:

  • Sends an image and asks to modify/edit/transform it
  • Asks to change the style, background, or content of an existing image
  • Wants to use a reference image to generate a new image
  • Uses keywords like "图生图", "修改图片", "编辑图片", "基于这张图", "img2img"

Do NOT use this skill when the user simply asks to "generate an image" or "draw something" without providing a reference image — use the dashscope-image-gen skill instead.

Read the full file on GitHub · 264 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. 9d ago First seen · 264 lines · 115 tokens per session scan A d5ef2f8dbd7e

Subscribe to this mod's changes

image-to-image is a skill published in the GitHub repository desirecore/market (2 stars, last pushed today), licensed MIT. It adds 115 tokens to every session and 3,103 once invoked, about $0.0006 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.