Skip to content

eddielueng/gptimage

Repository files navigation

GPT-Image Prompt Gallery by XidaoAPI

GPT-Image Prompt Gallery & Generator | Powered by XidaoAPI

Stars Forks XidaoAPI

English | 简体中文

Browse 400+ GPT-Image prompt cases, fill in your own API Key, and generate images directly. Based on awesome-gpt-image-2 by freestylefly.

Features

  • Your Own API Key — Fill in your API key from XidaoAPI.com, generate images using your own quota
  • Email & Google Login — Register with email/password or Google OAuth
  • Model Selector — Choose between gpt-image, gpt-image-2, gpt-image-2-c
  • 400+ Prompt Cases — Browse and copy structured prompts across 12 categories
  • 20+ Templates — Industrial-grade prompt templates for various use cases
  • Local Favorites & History — Works even without backend, saved in browser

Quick Start

1. Get Your API Key

Visit XidaoAPI.com to create an account and get your API key.

2. Deploy or Run Locally

# Clone the repo
git clone https://github.com/eddielueng/gptimage.git
cd gptimage
npm install

# Copy env file and fill in your values
cp .env.example .env

# Run locally
npm run dev

3. Configure Environment

Key variables in .env:

# Supabase (for auth)
VITE_SUPABASE_URL=
VITE_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=

# Admin emails (comma-separated)
VITE_SUPER_ADMIN_EMAILS=
SUPER_ADMIN_EMAILS=

# Image generation API
CIYUAN_BASE_URL=https://hk.xidaoapi.com
IMAGE_MODEL=gpt-image-2

# App URL
APP_URL=http://localhost:5173

See .env.example for the full list.

4. Setup Supabase Database

Run the SQL migrations in supabase/combined_migration.sql via the Supabase SQL Editor.

Category Overview

UI & Interfaces

UI
View Cases

Charts & Infographics

Infographic
View Cases

Posters & Typography

Poster
View Cases

Products & E-commerce

Product
View Cases

Brand & Logos

Brand
View Cases

Photography & Realism

Photo
View Cases

Illustration & Art

Illustration
View Cases

Architecture & Spaces

Architecture
View Cases

Full Gallery

Gallery
Open Gallery

Quick Links

Attributions

This project is based on awesome-gpt-image-2 by freestylefly, licensed under MIT.

The original project organizes 400+ GPT-Image prompt cases and 20+ industrial templates into structured, reusable protocols (Prompt-as-Code). We customized it for XidaoAPI with:

  • User API Key support (generate with your own key)
  • Email/password registration & login
  • Model selector (gpt-image, gpt-image-2, gpt-image-2-c)
  • API endpoint: https://hk.xidaoapi.com

Original prompt cases reference public content from YouMind and OpenNana for learning and research. Copyright belongs to the original authors.

License

MIT License — Free to use, modify, and distribute with license notice preserved.

About

Prompt as Code | GPT-Image2 工业级提示词引擎与模板库,370+ 个案例逆向工程,20+ 套工业级模板,并提炼出Skills,持续更新中

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors