Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/devchiniwala-image-generation
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/image-generation
What's inside
- Skill name
image-generation- Description
- Generate images using OpenAI (default) or Gemini. Use when asked to generate, create, or make images. Supports text-to-image and image editing with reference images.
- License
- MIT
- Instructions
- 147 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (2)
- SKILL.md
- generate_image.py · scripts/
SKILL.md (first lines)
# Image Generation
General-purpose image generation skill supporting **OpenAI** (default) and **Gemini**.
## Script
`scripts/generate_image.py` — zero external dependencies (stdlib only).
## Setup
API keys in `~/.heyclara/config.yaml`:
```yaml
openai_api_key: sk-...
gemini_api_key: AIza...
```
Or set via CLI or environment variables:
```bash
clara config set openai_api_key sk-...
clara config set gemini_api_key AIza...
```
Keys are resolved in order: `--api-key` flag > env var (`$OPENAI_API_KEY` / `$GEMINI_API_KEY`) > `config.yaml`.
## Providers & Models
| Provider | Default Model | Alternatives |
| -------------------- | ------------------------------------------------ | ----------------------------------------------------------------------------- |
| **OpenAI** (default) | `gpt-image-2` | `gpt-image-1.5`, `gpt-image-1-mini` |
| **Gemini** | `gemini-3.1-flash-image-preview` (Nano Banana 2) | `gemini-3-pro-image-preview` (Nano Banana Pro), `gemini-2.5-flash-image` (GA) |
`gpt-image-2` (Apr 2026) is the current OpenAI flagship — native reasoning, up to 16 reference images, native 2K. `dall-e-2`/`dall-e-3` were shut off on the API on May 12, 2026.
## Per-image pricing (May 2026)
| Model | Price |
| -------------------------------- | ------------------------------------------------------------------------------------ |
| `gpt-image-2` | ~$0.006 (low) → $0.053 (medium 1024) → $0.35 (high 4K). Token-based; Batch API −50%. |
| `gpt-image-1.5` | ~20% cheaper than gpt-image-1 across tiers |
| `gpt-image-1` | low $0.011, medium $0.042, high $0.167 (1024²) |
| `gemini-3-pro-image-preview` | $0.134 (1K/2K), $0.24 (4K) |
| `gemini-3.1-flash-image-preview` | $0.045 (512), $0.067 (1K), $0.101 (2K), $0.151 (4K) |
| `gemini-2.5-flash-image` | $0.039 standard, $0.0195 batch |
## Quick Reference
```bash
SCRIPT="$(dirname "$0")/scripts/generate_image.py" # or the absolute path under your skills dir
# Basic generation (OpenAI gpt-image-2, default)
python3 $SCRIPT --prompt "A sunset over mountains"
# High quality
python3 $SCRIPT --prompt "Oil painting of a forest" --quality high
# 2K output (OpenAI gpt-image-2; Gemini 2K via --resolution)
python3 $SCRIPT --prompt "Detailed cityscape" --resolution 2K
# Aspect ratio
python3 $SCRIPT --prompt "Portrait photo" --aspect-ratio 3:4
# With reference image (OpenAI edit mode)
python3 $SCRIPT --prompt "Add a rainbow to this scene" --reference photo.png
# Gemini provider
python3 $SCRIPT --provider gemini --prompt "Watercolor sunset" --aspect-ratio 16:9
# Gemini 4K (use Pro — 3.1 Flash currently ignores 2K/4K and returns ~1K)
python3 $SCRIPT --provider gemini --model gemini-3-pro-image-preview \
--prompt "Cinematic landscape" --resolution 4K --aspect-ratio 16:9
# Gemini with reference
python3 $SCRIPT --provider gemini --reference face.png \
--prompt "Same person sitting in a cafe, natural lighting" --aspect-ratio 9:16
# Custom output location
python3 $SCRIPT --prompt "A cat" --output /path/to/output/
```
## Aspect Ratios
| Use Case | Ratio | Notes |
| --------------- | --------------- | ------------- |
| Square / social | `1:1` | Default |
| Portrait | `3:4` or `2:3` | Vertical |
| Landscape | `4:3` or `16:9` | Wide |
| Phone / story | `9:16` | Vertical tall |
| Ultrawide | `21:9` | Cinematic |
OpenAI maps ratios to closest supported size. At `--resolution 1K` (default): `1024x1024`, `1024x1536`, `1536x1024`. At `--resolution 2K`: `2048x2048`, `1536x2048`, `2048x1536` (gpt-image-2 only; dims must be multiples of 16, max ~2048).
## Resolution (`--resolution`)
- OpenAI: `1K` (default) or `2K` (gpt-image-2 only).
- Gemini: `1K` (default), `2K`, or `4K`. **Caveat:** `gemini-3.1-flash-image-preview` currently ignores 2K/4K and returns ~1K — use `gemini-3-pro-image-preview` for true 2K/4K.
## OpenAI Quality (`--quality`)
Applies to all `gpt-image-*` models.
- `auto` (default) — let the model decide
- `high` — best quality, slower
- `medium` — balanced
- `low` — fastest, cheapest
## Structured Prompt Tips
For photorealistic results, use structured JSON prompts covering separate concerns:
```json
{
"subject": "description of the main subject, pose, expression",
"clothing": "specific garments, colors, fabrics",
"camera": "lens mm, aperture, shot type, angle",
"lighting": "source, direction, quality, shadows",
"environment": "setting, background elements, atmosphere",
"color_grading": "palette, contrast, mood",From DevChiniwala/HeyClara, MIT.
More from DevChiniwala/HeyClara
- 0.502score
agent-skill-creator
DevChiniwala
Create or improve AI agent skills with proper progressive disclosure, description optimization, and router patterns.
SkillCFreshness: C★ 1Claude Code +9 - 0.502score
marketing
DevChiniwala
When the user wants help with marketing, growth, GTM, or getting users.
SkillCFreshness: C★ 1Claude Code +9 - 0.502score
email
DevChiniwala
Write any kind of email: cold outreach, prospecting, follow-up sequences, drip campaigns, lifecycle emails, nurture sequences, onboarding emails, welcome…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
code-review
DevChiniwala
Review pull requests, code diffs, and changes for correctness, design, security, performance, and style.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
google-workspace-cli
DevChiniwala
Use when user wants to interact with Google Workspace APIs (Gmail, Drive, Calendar, Sheets, Docs, Chat, Admin) from the command line using `gws`.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
asc-cli
DevChiniwala
Use this skill for App Store Connect CLI (`asc`) usage, including install/auth setup, command families, CI/CD integration, and troubleshooting for releases…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
beads-tasks
DevChiniwala
Persistent task management via Beads CLI (bd).
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
gh-stamp
DevChiniwala
Stamp a GitHub PR with an LGTM approval comment.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
github-link-repo-explorer
DevChiniwala
Explore a GitHub repository from a link by cloning locally first, then inspecting files and history.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
modal-cli
DevChiniwala
Modal CLI for serverless GPU/cloud compute.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
clara-phone
DevChiniwala
Use when setting up, deploying, or debugging Clara's Twilio-based channels: voice (phone), SMS, and WhatsApp.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
codex
DevChiniwala
Consult OpenAI Codex CLI for a second opinion on plans, tests, code review, and more.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 5, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/DevChiniwala/HeyClara
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from DevChiniwala
- 0.502score
email
DevChiniwala
Write any kind of email: cold outreach, prospecting, follow-up sequences, drip campaigns, lifecycle emails, nurture sequences, onboarding emails, welcome…
SkillCFreshness: C★ 1Claude Code +9 - 0.502score
marketing
DevChiniwala
When the user wants help with marketing, growth, GTM, or getting users.
SkillCFreshness: C★ 1Claude Code +9 - 0.502score
agent-skill-creator
DevChiniwala
Create or improve AI agent skills with proper progressive disclosure, description optimization, and router patterns.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
beads-tasks
DevChiniwala
Persistent task management via Beads CLI (bd).
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
code-review
DevChiniwala
Review pull requests, code diffs, and changes for correctness, design, security, performance, and style.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
asc-cli
DevChiniwala
Use this skill for App Store Connect CLI (`asc`) usage, including install/auth setup, command families, CI/CD integration, and troubleshooting for releases…
SkillCFreshness: C★ 1Claude Code +9
Cite this page
image-generation skill. Agent Mart. https://agentmart.dev/skills/devchiniwala-image-generation (last updated 2026-10-24)