About image-creation
A command-line skill for generating and refining images with Seedream. It suits users who need text-to-image creation or prompt-guided edits to an existing image.
Key features
- 01Generate images from text prompts
- 02Refine images using instructions
- 03Choose style and output size
- 04Set watermark and output path
Use cases
- 01Create an image from a written description
- 02Edit an image by changing its background
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ cklxx/ elephant.ai --skill image-creationAfter installing, type/image-creationin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
run.pytest_run.pytests/__init__.pytest_image_creation.pyDetails
From the project READMEimage-creation
Generate images via Seedream.
Required Env
ARK_API_KEY(required)SEEDREAM_TEXT_ENDPOINT_ID(optional; fallback:SEEDREAM_TEXT_MODEL-> built-in default model)SEEDREAM_I2I_ENDPOINT_ID(required forrefine)
Constraints
- Backend minimum pixels:
1920*1920. Smaller inputs (for example1024x1024) are auto-upscaled. success=trueonly when the output file is actually written and non-empty.- Backend response must contain
b64_jsonorurl; otherwise the call fails. - Default output path is
/tmpunlessoutputis provided. watermarkdefaults tofalse(no "AI generated" watermark). Set totrueonly when you explicitly need watermark.
Usage
# Text to image
python3 skills/image-creation/run.py generate --prompt 'white cat in moonlight' --style realistic --watermark false
# Image to image
python3 skills/image-creation/run.py refine --image_path /tmp/cat.png --prompt 'add starry sky background' --watermark false
Parameters
generate
| name | type | required | notes |
|---|---|---|---|
| prompt | string | yes | image description |
| style | string | no | style tag (default: realistic) |
| size | string | no | WIDTHxHEIGHT, default 1920x1920 |
| watermark | bool | no | default false; whether to enable API watermark |
| output | string | no | output file path (default /tmp/seedream_<ts>.png) |
refine
| name | type | required | notes |
|---|---|---|---|
| image_path | string | yes | input image path |
| prompt | string | yes | refinement instruction |
| watermark | bool | no | default false; whether to enable API watermark |
| output | string | no | output path (default /tmp/seedream_refined_<ts>.png) |
Comments
Markdown supported