gpt-image-2-api
Installation
SKILL.md
gpt-image-2-api
Purpose
Generate and edit images with gpt-image-2 through a third-party OpenAI-compatible API using .env-configured OPENAI_API_KEY and OPENAI_BASE_URL values. Use when the user asks to create images, edit reference images, create visual assets, illustrations, or image variations with a configurable API endpoint.
Environment Variables & API Key
Two ways to configure API settings (priority: environment variable > .env):
- Environment variables:
OPENAI_API_KEY,OPENAI_BASE_URL, and optionalOPENAI_IMAGE_*overrides .envfile: Place in.env, can copy from.env.example
You can manage the .env file manually or through skill-master env set.