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.zip

Installs 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.
281 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

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

You give it
Text prompt and optional style/theme parameters
You get back
Base64 encoded image saved to local file

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

  1. Check for API Key: Verify that the OPENAI_API_KEY environment variable is set
  2. 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)
  3. Run the CLI: Execute the main.py script with the appropriate parameters
  4. 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 aesthetics
  • futuristic: Sci-fi style with sleek designs and neon lights
  • pixar: Vibrant 3D animation style with expressive characters
  • oil-paint: Classical oil painting with rich textures and brushstrokes
  • chinese-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

OPENAI_API_KEY environment variableOrganization verification on OpenAI platformopenai>=2.7.1

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.

SkillInstallsUpdatedSafetyDifficulty
ai-image (this skill)99moReviewIntermediate
jimeng-mcp-skill194moCautionIntermediate
nano-image-generator16moReviewBeginner
midjourney-card-news-backgrounds19moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

jimeng-mcp-skill

wwwzhouhui

使用jimeng-mcp-server进行AI图像和视频生成。当用户请求从文本生成图像、合成多张图片、从文本描述创建视频或为静态图像添加动画时使用此技能。支持四大核心能力:文生图、图像合成、文生视频、图生视频。需要jimeng-mcp-server在本地运行或通过SSE/HTTP访问。

19158

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.

110

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.

11

vizcom

Anhvu1107

ALWAYS use this when the request matches Vizcom: AI-powered product design tool for transforming sketches into full-fidelity 3D renders.

00

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.

00

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.

00

Search skills

Search the agent skills registry