# jimeng-api-image-gen

This skill creates images through the Volcengine Jimeng API 4.0 from text or source images. Use it when an agent needs generated artwork inside a project.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 501 installs · ★ 1
- Author: wvlvik
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/wvlvik/toy-skills/tree/HEAD/skills/jimeng-api-image-gen/SKILL.md
- Updated: 2026-05-26
- HTML: https://affpapa.org/en/nevibecode/skills/jimeng-api-image-gen

## What it does

The skill runs `scripts/generate_image.py` and sends the request to Volcengine Jimeng API 4.0. It covers text-to-image, edits based on image URLs, and batch creation. You can choose `1K`, `2K`, or `4K`, pass exact `--width` and `--height` values, add a watermark, or request the raw JSON response.

Generation uses an asynchronous API task. The script checks the task result, then exposes the PNG URL and can download the file with `--output`. Image-to-image input accepts JPEG or PNG URLs, with up to 10 files at 15MB per file. Result URLs remain valid for 24 hours.

Set `VOLC_ACCESSKEY` and `VOLC_SECRETKEY` before running the script. Without both variables, the request will fail. Text prompts have an 800-character limit, and output dimensions must stay between `1024×1024` and `4096×4096`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add wvlvik/toy-skills --skill jimeng-api-image-gen -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/jimeng-api-image-gen/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/jimeng-api-image-gen/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add wvlvik/toy-skills --skill jimeng-api-image-gen -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/jimeng-api-image-gen/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add wvlvik/toy-skills --skill jimeng-api-image-gen -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/jimeng-api-image-gen/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install wvlvik/toy-skills jimeng-api-image-gen
```

2. **Manually: put the files in place**
- File: `.github/skills/jimeng-api-image-gen/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add wvlvik/toy-skills --skill jimeng-api-image-gen -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/wvlvik/toy-skills --path skills/jimeng-api-image-gen
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/jimeng-api-image-gen/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add wvlvik/toy-skills --skill jimeng-api-image-gen -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/wvlvik/toy-skills/tree/HEAD/skills/jimeng-api-image-gen/SKILL.md

## When to use it
- create an image from a text prompt
- edit a source image by URL
- produce several images from one request
- download the generated PNG to a file
- set an exact output width and height

## Example prompts
- Generate a white Siamese cat on a windowsill and show the resulting image to me.
- Turn the image at this URL into a watercolor-style scene using `--images`.
- Create a sunset mountain landscape at `2K` and save it with `--output /generated_images/mountain.png`.

## Similar
- [skill-creator](https://affpapa.org/en/nevibecode/skills/skill-creator.md) — skill · 414180 installs
- [writing-for-agents](https://affpapa.org/en/nevibecode/skills/writing-for-agents.md) — skill · 466719 installs
- [media-use](https://affpapa.org/en/nevibecode/skills/media-use.md) — skill · 1100000 installs
- [mcp-builder](https://affpapa.org/en/nevibecode/skills/mcp-builder.md) — skill · 130949 installs
- [subagent-driven-development](https://affpapa.org/en/nevibecode/skills/subagent-driven-development.md) — skill · 237746 installs
- [orchestration](https://affpapa.org/en/nevibecode/skills/orchestration.md) — skill · 350300 installs

From the same set: [wvlvik/toy-skills](https://affpapa.org/en/nevibecode/by/wvlvik/toy-skills.md) — 2 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
