ai-image-generator

Generate images via Gemini and OpenAI GPT Image APIs with model selection and prompting guidance.

1|Updated Aug 18, 2026
One-click install
npx skills add https://github.com/scsm-unrestrict/dsh-frontend-engineer-agent --skill ai-image-generator-scsm-unrestrict
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-image-generator
Source: https://github.com/scsm-unrestrict/dsh-frontend-engineer-agent/tree/main/frontend-engineer/skills/ai-image-generator
Command: npx skills add https://github.com/scsm-unrestrict/dsh-frontend-engineer-agent --skill ai-image-generator-scsm-unrestrict

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pillow, and includes references (resource) components.

What problem does it solve? Choosing the right image generation model and writing effective prompts is error-prone: text rendering fails on some models, transparency is unsupported on others, and vague prompts produce unusable results. This Skill provides model selection rules, a structured prompting framework, and working API call patterns for Gemini and OpenAI image generation. ## Core Features & Use Cases - Model Selection Matrix: Routes tasks to the right model — Gemini for photorealistic scenes, GPT Image 2 for text rendering, batch variations, and multi-reference compositing, GPT Image 1.5 for transparent icons. - 5-Part Prompting Framework: Structures prompts by image type, subject, environment, technical specs, and constraints, with photography parameters (lighting, lens, aperture) in the references guide. - Ready-to-Run API Patterns: Python snippets for Gemini and OpenAI image generation, multi-turn editing with thought signatures, WebP conversion, and vision-model quality checks. - Use Case: When building a landing page that needs a hero image with a headline, an OG share image, and a transparent icon set, use this Skill to pick the correct model for each asset and generate them via API calls. ## Quick Start Generate a hero image for my website using the ai-image-generator skill with a prompt describing a modern office interior in warm natural light.

Frequently Asked Questions about ai-image-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate images with the Gemini API in Python?

Send a POST request to the Gemini generateContent endpoint with your prompt and responseModalities set to TEXT and IMAGE, then base64-decode the inlineData from the response. Use Python instead of curl to avoid shell escaping issues with apostrophes.

Which AI image model renders text on images reliably?

GPT Image 2 renders readable text reliably, including non-Latin scripts like Japanese and Korean, making it suitable for posters, OG images with headlines, and infographics. Gemini does not render readable text.

Can GPT Image 2 generate transparent background PNGs?

No, GPT Image 2 cannot produce transparent backgrounds. Use gpt-image-1.5 with the background parameter set to transparent for icons and logos that need RGBA alpha channels.

How do I generate multiple image variations in one API call?

Set the n parameter to up to 10 in a GPT Image 2 request to get batch variations sharing composition and palette. Review the variants side by side, pick the best, and regenerate with a tighter prompt if needed.

Why does my image generation request time out?

GPT Image 2 can take up to 2 minutes on complex prompts, so set the request timeout to at least 180 seconds. For user-facing applications, build asynchronous UX with progress indicators instead of blocking on the response.

How do I edit a generated image without changing everything?

Use Gemini multi-turn editing by preserving all thought signatures from prior responses, and explicitly state what to keep unchanged in the edit prompt. Unspecified elements are treated as free to modify.