ai-image
Enables text-to-image generation with support for various artistic themes and aspect ratios.
Install
mkdir -p .claude/skills/ai-image && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/256" && unzip -o skill.zip -d .claude/skills/ai-image && rm skill.zipInstalls to .claude/skills/ai-image
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Generate AI images using OpenAI's gpt-image-1 model with customizable aspect ratios and artistic themes. Use when the user wants to create images, generate artwork, or mentions image generation with specific styles like Ghibli, futuristic, Pixar, oil painting, or Chinese painting.Key capabilities
- →Generate images from text prompts
- →Apply artistic themes like Ghibli or Pixar
- →Configure aspect ratios for vertical or horizontal output
- →Save images to local file paths
How it works
The skill interfaces with the OpenAI gpt-image-1 model to generate images based on user-defined prompts and style parameters.
Inputs & outputs
When to use ai-image
- →Generate digital artwork from text
- →Create images in specific artistic styles
- →Produce portrait or landscape imagery
- →Develop visual assets for projects
About this skill
AI Image Generation Skill
Generate high-quality AI images using OpenAI's gpt-image-1 model with customizable styles and themes.
When to Use This Skill
Use this skill when the user wants to:
- Generate images from text descriptions
- Create artwork with specific artistic styles
- Generate images with particular aspect ratios (vertical, horizontal, square)
- Apply themed visual styles (Studio Ghibli, futuristic, Pixar, oil painting, Chinese painting)
Instructions
- Check for API Key: Verify that the OPENAI_API_KEY environment variable is set
- Gather Requirements: Ask the user for:
- Image prompt (required)
- Style/aspect ratio: vertical (1024x1536), horizontal (1536x1024), or square (1024x1024)
- Theme: ghibli, futuristic, pixar, oil-paint, or chinese-paint (optional)
- Output location (optional, defaults to ./generated_image.png)
- Run the CLI: Execute the main.py script with the appropriate parameters
- Report Results: Show the user where the image was saved and any relevant details
Available Options
Aspect Ratios (--style)
vertical: 1024x1536 pixels (portrait orientation)horizontal: 1536x1024 pixels (landscape orientation)square: 1024x1024 pixels (default)
Artistic Themes (--theme)
ghibli: Studio Ghibli animation style with whimsical, dreamlike aestheticsfuturistic: Sci-fi style with sleek designs and neon lightspixar: Vibrant 3D animation style with expressive charactersoil-paint: Classical oil painting with rich textures and brushstrokeschinese-paint: Traditional Chinese ink painting with delicate brushwork
Usage Examples
Basic Usage
uv run main.py --prompt "a cat sitting on a tree"
With Style and Theme
uv run main.py --prompt "a sunset over mountains" --style horizontal --theme oil-paint --output ./sunset.png
Futuristic Portrait
uv run main.py --prompt "a robot in a city" --style vertical --theme futuristic --output ./robot.png
Studio Ghibli Landscape
uv run main.py --prompt "a magical forest with spirits" --style horizontal --theme ghibli --output ./forest.png
Setup Requirements
This skill requires an OpenAI API key with access to the gpt-image-1 model:
export OPENAI_API_KEY='your-api-key-here'
Note: Using gpt-image-1 requires organization verification on the OpenAI platform.
Technical Details
- Model: OpenAI gpt-image-1 (released April 2025)
- Response Format: Base64 encoded images (b64_json)
- Supported Sizes: 1024x1024, 1024x1536, 1536x1024
- Maximum Resolution: Up to 4096x4096 pixels
- Dependencies: openai>=2.7.1
Pricing Information
Usage is priced per token:
- Text tokens: $5 per million
- Image input tokens: $10 per million
- Image output tokens: $40 per million
Approximate costs per generated image:
- Low quality square: ~$0.02
- Medium quality square: ~$0.07
- High quality square: ~$0.19
Troubleshooting
API Key Not Set
If you see "Error: OPENAI_API_KEY environment variable not set", ensure your API key is exported in your shell session.
Organization Not Verified
gpt-image-1 requires organization verification on platform.openai.com. Visit your OpenAI account settings to complete verification.
Invalid Size Error
Ensure you're using one of the supported sizes: 1024x1024, 1024x1536, or 1536x1024.
When not to use it
- →Generating non-visual content
- →Real-time image editing or manipulation
- →Use cases requiring non-OpenAI models
Prerequisites
Limitations
- →Requires organization verification
- →Supports only three specific aspect ratios
- →Priced per token based on image quality
How it compares
It automates the integration of specific artistic themes and aspect ratios into the image generation workflow.
Compared to similar skills
ai-image side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| ai-image (this skill) | 9 | 9mo | Review | Intermediate |
| jimeng-mcp-skill | 19 | 4mo | Caution | Intermediate |
| nano-image-generator | 1 | 6mo | Review | Beginner |
| midjourney-card-news-backgrounds | 1 | 9mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by tyrchen
View all by tyrchen →You might also like
jimeng-mcp-skill
wwwzhouhui
使用jimeng-mcp-server进行AI图像和视频生成。当用户请求从文本生成图像、合成多张图片、从文本描述创建视频或为静态图像添加动画时使用此技能。支持四大核心能力:文生图、图像合成、文生视频、图生视频。需要jimeng-mcp-server在本地运行或通过SSE/HTTP访问。
nano-image-generator
solidSpoon
Generate images using Nano Banana Pro (Gemini 3 Pro Preview). Use when creating app icons, logos, UI graphics, marketing banners, social media images, illustrations, diagrams, or any visual assets. Triggers include phrases like 'generate an image', 'create a graphic', 'make an icon', 'design a logo', 'create a banner', or any request needing visual content.
midjourney-card-news-backgrounds
bear2u
Generate Midjourney prompts for 600x600 card news background images based on topic, mood, and style preferences. Use when user requests card news backgrounds or Instagram post backgrounds.
vizcom
Anhvu1107
ALWAYS use this when the request matches Vizcom: AI-powered product design tool for transforming sketches into full-fidelity 3D renders.
lg-nanobanana-sprite
AshishYesale7
Leverage AI (Nano Banana/Imagen) to generate high-quality visual assets (icons, logos, placemark images, overlay graphics) and integrate them into Liquid Galaxy Flutter apps.
custom-icons-skill
JKc66
Professional workflow for creating bespoke vector and complex raster icons. Professional icon design workflow including Design (visual), Path (vector), Desire (conceptual), and 3D chroma-key modes. Features AI prompt engineering, automated binarization, alpha cleanup, and SVG optimization.