ai-image
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.
What this skill does
# 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 ```bash uv run main.py --prompt "a cat sitting on a tree" ``` ### With Style and Theme ```bash uv run main.py --prompt "a sunset over mountains" --style horizontal --theme oil-paint --output ./sunset.png ``` ### Futuristic Portrait ```bash uv run main.py --prompt "a robot in a city" --style vertical --theme futuristic --output ./robot.png ``` ### Studio Ghibli Landscape ```bash 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: ```bash 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.
Related in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.