One-click install
npx skills add https://github.com/NITRR-Official/CampusOS --skill imagegen-nitrr-official
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagegen
Source: https://github.com/NITRR-Official/CampusOS/tree/main/.agents/skills/frontend-design/creative/imagegen
Command: npx skills add https://github.com/NITRR-Official/CampusOS --skill imagegen-nitrr-official

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openai, pillow, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows users to generate new images or edit existing images using the OpenAI Image API, offering a structured prompt system to guide the image creation process.

Core Features & Use Cases

  • Image Generation: Create new images based on user-defined prompts.
  • Image Editing: Edit existing images by modifying aspects such as background, objects, or lighting.
  • Batch Processing: Generate multiple images or edits simultaneously from a provided list of prompts.
  • Use Case: For a graphic designer who needs to quickly create concept art for a project, this Skill can generate a series of images based on a prompt and style guide.

Quick Start

Run the image_gen.py script with the following command:

python scripts/image_gen.py generate --prompt "A futuristic cityscape" --size 1024x1024

Frequently Asked Questions about imagegen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate images using the OpenAI Image API with a structured prompt?

To generate images using the OpenAI Image API, run the `image_gen.py` script with the generate command, specifying your structured prompt and desired size like 1024x1024. This provides a guided system for creating new images directly from the command line.

Can I batch process multiple image generation prompts simultaneously?

Yes, batch processing for image generation is supported. You can provide a list of structured prompts to simultaneously generate multiple images or apply edits, streamlining bulk content creation workflows.

Do I need an OpenAI API key to edit existing images and replace backgrounds?

Yes, you need an OpenAI API key to edit existing images and replace backgrounds. The script requires the `openai` package and the `OPENAI_API_KEY` environment variable to authenticate and execute image editing API calls.

What image editing options are available beyond generating new images?

Beyond generating new images, available image editing options include modifying aspects like replacing backgrounds, adding text, and altering objects or lighting. These edits are processed through the OpenAI Image API using structured prompts.