image_generationlisted
Install: claude install-skill serejaris/kimi-skills
# Image Generation
Use this skill to create an image from a text description with AI image
generation, then save it locally and display it to the user.
## Setup
Before the first use, ensure the agent-gw Python SDK (version 0.2.6 or newer) is installed. This checks the current environment and installs or upgrades it only when needed:
```bash
python3 scripts/image_generation_tool.py ensure-deps
```
The SDK needs an API key from `api_key=...`, `KIMI_API_KEY`, or
`~/.kimi/agent-gw.json`.
## Parameters
- `description` (required): detailed text description of the image to generate.
- `ratio`: one of `1:1, 3:2, 2:3, 16:9, 9:16`. Default `1:1`.
- `resolution`: one of `1K, 2K, 4K`. Default `1K`.
Opaque background supports only these combinations:
`1K`: `1:1` (`1024x1024`), `3:2` (`1536x1024`), `2:3` (`1024x1536`);
`2K`: `1:1` (`2048x2048`), `16:9` (`2048x1152`);
`4K`: `16:9` (`3840x2160`), `9:16` (`2160x3840`).
Transparent background only supports `1K` with `1:1, 3:2, 2:3`.
- `background`: `opaque` (default) or `transparent`.
- `reference_image`: public URL(s) that guide the generation. Repeat
`--reference-image` for multiple. The gateway only accepts public URLs, so a
local image must be converted with `image-to-url` first (see "Reference
images" below); passing a local path to `generate` is rejected.
- `output` (required): local output path ending in `.jpg`, `.jpeg`, or `.png`.
Transparent background must use `.png`.
## Workflow
1. Build a detailed, descri