generate-image
Qué hace
Esta herramienta usa inteligencia artificial para crear o modificar imágenes a partir de descripciones de texto. Puedes pedir fotos, ilustraciones, logotipos y más.
Cuándo usarla
- ✓Crear una imagen para una presentación.
- ✓Diseñar un logotipo para un proyecto nuevo.
- ✓Editar una foto que ya tienes, por ejemplo para cambiar los colores.
Link de la skill
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/generate-image/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Crea una imagen de un gato astronauta flotando en el espacio, con la Tierra de fondo.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Describes la imagen que quieres y la IA la genera. Si ya tienes una imagen, puedes pedir que la edite, por ejemplo que cambie el cielo a morado.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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.
…
Preguntas frecuentes
¿Puedo crear cualquier tipo de imagen?
Puedes crear fotos, ilustraciones, arte conceptual y logotipos, y también editar imágenes existentes. Para diagramas técnicos, como los diagramas de flujo, usa otra herramienta.
¿Necesito una clave de API para usarla?
Sí, necesitas una clave de API de OpenRouter. Las instrucciones para obtenerla están en la documentación.
¿Cómo sé qué modelo de IA debo usar?
Hay varios modelos disponibles, cada uno con sus especialidades. Algunos son mejores para fotos realistas, otros para ilustraciones vectoriales, y otros para generar varias imágenes a la vez. La documentación enumera las opciones.
Detalles
Descripción original del autor
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.
Popularidad
- Estrellas en GitHub
- 51 mil
- Posición en el ranking
- #3465
- Licencia
- MIT
- Actualizada
- 15/10/2026
Comentarios
- …
Más skills de este repositorio
13c-metabolic-flux
51 milEstima flujos metabólicos a partir de datos de trazado con isótopos de carbono-13. Es útil para analizar el metabolismo celular y las rutas bioquímicas.
adaptyv
51 milDiseña experimentos de caracterización de proteínas con la API de Adaptyv. Ayuda a estimar costos, enviar secuencias y seguir los resultados del laboratorio.
aeon
51 milRealiza tareas de aprendizaje automático con datos de series temporales. Es útil para clasificar, predecir, detectar anomalías y encontrar patrones en datos secuenciales.
alphagenome
51 milConsulta efectos genómicos precalculados de variantes genéticas. Ofrece puntuaciones y explicaciones para entender el impacto de las variantes en el genoma.
Skills parecidas
gifgrep
394 milPermite que tu agente busque GIF en bibliotecas, vea una vista previa de los resultados, descargue un GIF y extraiga un fotograma fijo o una hoja de contacto de fotogramas.
meme-maker
394 milPermite que tu agente elija una plantilla de meme, añada tus propios textos y cree el meme como imagen SVG o PNG.
ios-icon-gen
280 milPermite a tu agente generar iconos para apps de iOS. Usa símbolos de Apple u otras fuentes para crear los archivos correctos.