flatkey-ai/awesome-images
Try flatkey.ai for 40% saving! Generate practical images ready for all your work needs!!!
What is this?
Flatkey Image Prompt Library (also called Image Buddy) is a GitHub project that gives you ready-made text prompts for generating marketing-style images with Flatkey.ai, an image-generation service. The README describes it as a “commercial prompt library and CLI.”
The main idea: instead of starting from a blank prompt box, you use proven templates for product shots, ads, avatars, app screenshots, posters, and similar business images. The README also claims Flatkey can be “about 40% cheaper than common direct image API routes.”
What does it include?
The project has three main pieces:
- A skill for AI agents — a copy-paste instruction you can give to an AI assistant. The assistant then installs Image Buddy and runs the CLI for you when you ask for an image.
- A command-line tool (CLI) — called
image-buddy. It handles setup and image generation from your terminal. - A template library — 12 ready-made image prompt templates, plus a web gallery with 20 demo images.
How do you use it?
You can run it with npx, so you don’t need to install anything separately. The basic flow is:
- Run
npx @flatkey-ai/image-buddy onboard— this asks for your Flatkey API key and saves it locally. - Run
npx @flatkey-ai/image-buddy generate --prompt "your description"— this creates an image from a plain sentence. - Or run
npx @flatkey-ai/image-buddy generate avatar-pack "地雷妹"— this uses a template plus a short hint.
The CLI can also read the key from the environment variables FLATKEY_IMAGE_API_KEY or FLATKEY_API_KEY. It calls Flatkey’s image generation and saves the resulting images on your computer. No web server is needed for normal use.
There is also an optional web gallery:
npx @flatkey-ai/image-buddy web
This opens a local demo page where you can browse templates and generate images with your key.
What templates are included?
The README lists 12 templates:
- Premium product hero visual
- White-background ecommerce main image
- UGC ad cover frame
- Liquid glass Bento infographic
- Founder quote card
- Consistent avatar pack
- App Store screenshot poster
- YouTube thumbnail
- Event poster key visual
- Game prop concept sheet
- Subject-preserving background replacement
- Fashion lookbook collage
Each template includes a title, use case, category, recommended model, replaceable variables, full prompt text, an API use-case note, a copy-prompt button, and a Flatkey API key registration link.
The templates are also exported as a machine-readable catalog at catalog/prompts.json. There is an industry index at docs/prompt-index.md for browsing use cases. The README notes that the catalog is content-only — it is not a prompt-generation API.
How do templates work?
Templates use placeholders like {{product_name}}, {{core_benefit}}, or {{brand_color}}. You can fill them in two ways:
- Pass explicit variables:
--var "产品名称=Image Buddy" - Or just type a hint after the template ID, and missing variables are filled from that hint.
For example:
npx @flatkey-ai/image-buddy generate premium-product-hero \
--var "产品名称=Image Buddy" \
--var "品牌调性=clean SaaS" \
--var "核心卖点=one-command image generation" \
--var "主色=teal" \
--size 1536x1024
The default generation model is called Nano Banana and goes through router.flatkey.ai. You can explicitly choose the OpenAI-compatible GPT Image 2 endpoint with --model gpt.
What is the demo gallery?
The web gallery ships with 20 generated demo images included in the npm package. They cover categories like product, ecommerce, social ads, apps, posters, infographics, fashion, game assets, food, travel, portraits, real estate, entertainment, education, finance, beauty, architecture, pets, sports, and publishing.
How are templates structured in the code?
All templates live in src/prompts.js. A new template is added as an object with fields like:
id— unique identifiertitle— human-readable titleindustry— business contextcategory— visual production patternbadge,aspectRatio,modelapiUseCase— best-fit API use casedescription— human-facing explanationvariables— list of placeholdersprompt— the actual text sent to the image model
The README says to keep the human-facing description separate from the model-facing prompt. After adding templates, you run npm test, and a validator checks template count, categories, variables, prompt length, and Flatkey registration links.
For developers and maintainers
Developer commands include:
npm install
npm test
npm run build:catalog
npm run build
Publishing is done through GitHub Releases. A maintainer adds an npm automation token as NPM_PUBLISH_TOKEN, creates a GitHub Release with a version tag like v1.2.3, and the workflow sets the package version, runs validation and build, then publishes to npm.
Key caveats
The README makes a cost claim (“about 40% cheaper”) but this is the project’s own statement, not an independent comparison. Also, the project is tied to Flatkey.ai: you need a Flatkey API key to generate images, and the README includes links to register for one.
Related
- Project
- Dispatch
- Project
- Project
- Project