ai-image-gen
AI Image Generation
Generate images from text prompts using OpenAI or Stability AI.
Prerequisites
- OpenAI API key in
OPENAI_API_KEYenvironment variable (for GPT Image) - Stability AI API key in
STABILITY_API_KEYenvironment variable (optional, for Stable Diffusion) - Python 3 with
requestsandbase64(standard library)
OpenAI GPT Image (Recommended)
import os, requests, base64
def generate_image_openai(prompt, output_path, size="1024x1024", quality="auto", background="auto"):
"""Generate an image with OpenAI GPT Image (gpt-image-1)."""
resp = requests.post(
"https://api.openai.com/v1/images/generations",
More from openclaudia/openclaudia-skills
feishu-lark
>
1.2Kfacebook-ads
Create Facebook and Meta ad campaigns, write ad copy, define audiences, and plan budgets. Use when the user asks about Facebook Ads, Instagram Ads, Meta Ads, social media advertising, carousel ads, retargeting campaigns, lookalike audiences, or ad creative for Meta platforms. Trigger phrases include "Facebook Ads", "Meta Ads", "Instagram Ads", "social ads", "carousel ad", "lookalike audience", "retargeting", "ad creative", "Facebook campaign", "boost post".
466video-ad-analysis
Deconstruct and analyze video ad creatives for marketing insights. Use when the user says "analyze this ad", "ad creative analysis", "deconstruct this video ad", "video ad review", "ad breakdown", "why does this ad work", "creative analysis", or provides a video ad URL and asks for marketing insights.
314content-calendar
>
309reddit-marketing
Market and engage on Reddit authentically. Use when the user says "Reddit marketing", "Reddit strategy", "promote on Reddit", "Reddit post", "subreddit strategy", "Reddit outreach", "Reddit ads", or asks about marketing or building presence on Reddit.
198google-ads
Write Google Ads copy and build campaign structures. Use when the user asks to create Google Ads, write ad copy for search or display, set up PPC campaigns, optimize Quality Score, choose bidding strategies, or generate responsive search ads. Trigger phrases include "Google Ads", "PPC", "search ads", "display ads", "Performance Max", "ad copy", "headlines and descriptions", "keyword match types", "ad extensions", "Quality Score".
194