gpt-image-2

Generate images from text prompts via the GPT Image 2 API.

Updated May 25, 2026
One-click install
npx skills add https://github.com/fuyucn/skills --skill gpt-image-2-fuyucn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gpt-image-2
Source: https://github.com/fuyucn/skills/tree/main/gpt-image-2
Command: npx skills add https://github.com/fuyucn/skills --skill gpt-image-2-fuyucn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill solves the friction of manually accessing image generation models by providing a streamlined CLI interface to interact with GPT Image 2 through a third-party Token Hub.

Core Features & Use Cases

  • Direct Generation: Convert text prompts into high-quality images with configurable dimensions and formats.
  • Workflow Integration: Supports both URL-based image retrieval and base64 local saving for automated pipelines.
  • Use Case: Use this tool to generate consistent visual assets for storyboards or marketing materials by piping prompts directly from your terminal.

Quick Start

Run the generate script with your prompt to create a 1024x1024 image saved to your local output directory.

Frequently Asked Questions about gpt-image-2

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

FAQPage Schema
How do I generate AI images from the command line using a text prompt?

Yes, you can automate image creation workflows by piping text prompts directly through the CLI. The tool supports parameter-driven size selection and outputs images via URL or base64 local saving for automated pipelines.

What do I need to connect to the GPT Image 2 API proxy for image generation?

To connect to the GPT Image 2 API proxy, you need a valid Token Hub base URL and an authentication token. These credentials are required to execute API requests and successfully generate images through the CLI interface.

Can I save AI generated images locally as base64 files for automated pipelines?

Yes, you can save AI generated images locally as base64 files. The CLI tool supports both URL-based image retrieval and base64 local saving to facilitate seamless integration into automated image creation workflows and pipelines.

Does the CLI image generation tool support configurable output dimensions?

Yes, the CLI image generation tool supports configurable output dimensions. It facilitates automated image creation workflows including parameter-driven size selection, allowing you to generate assets like 1024x1024 images directly from your terminal.

Why does my API request to generate images via Token Hub fail?

Your API request to generate images via Token Hub fails if the authentication token or base URL is missing or invalid. Successful image generation requires a valid Token Hub base URL and authentication token to execute the API requests.