generate-image
Что он делает
Этот инструмент использует искусственный интеллект, чтобы создавать или изменять изображения по текстовому описанию. Вы можете попросить фотографии, иллюстрации, логотипы и многое другое.
Когда использовать
- ✓Создание изображения для презентации.
- ✓Разработка логотипа для нового проекта.
- ✓Редактирование существующей фотографии, например изменение цветов.
Ссылка на скилл
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/generate-image/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Создай изображение кота-космонавта, который парит в космосе, а на заднем плане видна Земля.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Вы описываете нужное изображение, а ИИ его генерирует. Если у вас уже есть изображение, можно попросить его отредактировать, например поменять небо на фиолетовое.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Generate Image
Generate and edit images through OpenRouter's Image API, which reaches Gemini, Seedream, Recraft, GPT-Image, Riverflow, and other models behind one request shape.
When to use
Use this skill for: photos and photorealistic images, illustrations and artwork, concept art, presentation and poster visuals, logos and vector marks, image editing, and compositing from reference images.
Use scientific-schematics instead for: flowcharts, circuit diagrams, biological pathways,
system architecture diagrams, CONSORT diagrams, and other technical schematics.
API key
Generation requires an OpenRouter key. The script resolves it in this order:
--api-key- the
OPENROUTER_API_KEYenvironment variable OPENROUTER_API_KEY=in a.envfile, searching the working directory upward, then the script's own directory
If none is present the script exits with setup instructions. Keys: https://openrouter.ai/keys
--list-models, --model-info, and --dry-run need no key.
Quick start
# Generate
python scripts/generate_image.py "A beautiful sunset over mountains"
# Edit an existing image
python scripts/generate_image.py "Make the sky purple" -i photo.jpg -o edited.png
Run these commands from the skill directory; input and output paths resolve from the working
directory. Output defaults to generated_image.<ext>, using each image's returned media type
(or .bin when unknown). An explicit output suffix is kept, with a warning on mismatch; the
script does not transcode. OpenRouter and upstream costs are printed separately when supplied.
Then look at the image. Read the file back and check it before using it anywhere: composition, aspect ratio, and any text are all things models get wrong silently.
Choosing a model
Default: google/gemini-3.1-flash-image.
| Need | Model |
|---|---|
| General quality, prompt adherence | google/gemini-3.1-flash-image |
| Highest Gemini tier | google/gemini-3-pro-image |
| Cheap iteration | google/gemini-3.1-flash-lite-image (1K only), openai/gpt-image-1-mini |
| Photoreal control, seeded generation | bytedance-seed/seedream-4.5 |
| Several images per request | bytedance-seed/seedream-4.5, openai/gpt-image-2 (up to 10) |
| Vector / SVG output | recraft/recraft-v4.1-vector |
| Transparent background | openai/gpt-image-1 with --background transparent |
| Legible text inside the image | recraft/recraft-v4.1, sourceful/riverflow-v2.5-pro — see the caveat below |
references/models.md carries the reviewed capability and pricing snapshot. The live listing is authoritative and free:
python scripts/generate_image.py --list-models # every model and its allowed values
python scripts/generate_image.py --list-models gemini # filtered by substring
python scripts/generate_image.py --model-info openai/gpt-image-1 # one model, plus pricing
Parameter support varies by model
This is the main thing to get right. Models advertise different parameter sets and different allowed values. The CLI conservatively rejects unadvertised options; individual providers may ignore or normalize some fields. The generic guide can lag the discovery records.
The script checks the model catalogue and requires at least one provider endpoint to accept the complete combination before generation. Model capabilities are a union across endpoints, not a promise that every provider supports them. Unsupported requests fail locally with legal values:
$ python scripts/generate_image.py "abstract pattern" -m openai/gpt-image-2 --background transparent
Error: Request rejected before billing (1 problem):
- background=transparent is not allowed; this model accepts: auto, opaque
Current examples of capability differences (reviewed 2026-09-30):
--resolution: Gemini 3.1 Flash accepts512,1K,2K,4K; Flash Lite and Krea accept only1K. Seedream 5.0 Lite accepts2K/4K, while 5.0 Pro accepts1K/2K.--output-format: Riverflow 2.5 Pro acceptspng/jpeg/webp; its Fast variant accepts onlyjpeg. Recraft vector models acceptsvg. OpenAI models do not advertise this flag.--quality: GPT Image 2.5 Flare/Sunburst also acceptxhigh/max; Grok 2.0 accepts onlylow/medium. Inspect the specific model before selecting a quality value.--background transparentis not available ongpt-image-2orgpt-5.4-image-2.
…
Частые вопросы
Можно ли создать любое изображение?
Вы можете создавать фотографии, иллюстрации, концепт-арт и логотипы, а также редактировать существующие изображения. Для технических схем, например блок-схем, используйте другой инструмент.
Нужен ли API-ключ для использования?
Да, нужен ключ OpenRouter API. Инструкция по его получению есть в документации.
Как понять, какую модель ИИ выбрать?
Доступно несколько моделей, и у каждой свои сильные стороны. Одни лучше подходят для реалистичных фотографий, другие для векторных иллюстраций, а некоторые для генерации сразу нескольких изображений. Все варианты перечислены в документации.
Подробности
Оригинальное описание автора
Generates or edits images with AI models through the OpenRouter Image API (Gemini, Seedream, Recraft, GPT-Image, Riverflow). Use for photos, illustrations, artwork, concept art, visual assets, logos, and image editing or compositing from reference images. For flowcharts, circuits, pathways, and other technical diagrams, use the scientific-schematics skill instead.
Популярность
- Звёзды на GitHub
- 51k
- Место в рейтинге
- #3465
- Лицензия
- MIT
- Обновлён
- 15.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
13c-metabolic-flux
51kОценивает метаболические потоки по данным изотопной метки углерода-13 для анализа клеточного метаболизма.
adaptyv
51kПланирует эксперименты по характеристике белков через API Adaptyv: стоимость, отправка последовательностей и результаты.
aeon
51kРешает задачи машинного обучения на временных рядах: классификация, прогноз, аномалии и паттерны.
alphagenome
51kНаходит заранее рассчитанные эффекты генетических вариантов с оценками и объяснениями.
Похожие скиллы
gifgrep
394kПозволяет агенту искать GIF-анимации, просматривать результаты, скачивать GIF и вытаскивать отдельный кадр или таблицу кадров.
meme-maker
394kПозволяет агенту выбрать шаблон мема, добавить свои подписи и создать мем в виде изображения SVG или PNG.
ios-icon-gen
280kАгент генерирует иконки для приложений iOS из символов Apple или других источников и создаёт нужные файлы.