flux-image

Solid

Generate images using AI models via Replicate API. Supports Nano Banana 2 (Google DeepMind, default) and FLUX.2 max (Black Forest Labs). Use when the user asks to generate, create, or produce an actual image from a prompt. This skill creates real image files on disk - not just text descriptions. Trigger when the user says "generate an image", "create an image", "flux-image", or asks to turn a prompt into an actual picture. Works standalone or as a follow-up to the image-prompt skill which produces text prompts.

AI & Automation 10 stars 1 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 82/100

Stars 20%
35
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# AI Image Generator Generate images using Nano Banana 2 (Google DeepMind) or FLUX.2 max (Black Forest Labs) via the Replicate API. Runs a Python script that calls the API and saves images locally. ## Prerequisites The `REPLICATE_API_TOKEN` must be set in the workspace `.env` file (root directory). The script auto-loads it from `.env` using `python-dotenv` -- no manual export needed. If the token is missing or invalid, instruct the user to add it to `.env`: ``` # In the workspace root .env file: REPLICATE_API_TOKEN=r8_your_token_here ``` Get a token at: https://replicate.com/account/api-tokens **Security:** Never hardcode API tokens in skill files, scripts, or documentation. All secrets live in `.env` only. ## Workflow ### 1. Determine the prompt Either: - Use the image prompt from a preceding `/image-prompt` skill invocation - Use a prompt the user provides directly - Craft a prompt from context (article, post, etc.) using the image prompt guidelines ### 2. Run the generation script Run from the workspace root (the script path is root-relative). The image is a DATA artifact -- it must land in the DATA overlay, never the engine tree. `generate_image.py` writes `--output` literally relative to the current directory (the engine root after the `cd`), so a bare `outputs/...` would create a stray image inside the engine. Resolve the data outputs dir first and pass an absolute path: ```bash cd "$(git rev-parse --show-toplevel)" OUTPUTS_DIR="$(python3 -c "import sys; sy...

Details

Author
mishahanin
Repository
mishahanin/heading-os
Created
4 weeks ago
Last Updated
today
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

generate-image

Generate or edit images using AI models (FLUX, Nano Banana 2). Use for general-purpose image generation including photos, illustrations, artwork, visual assets, concept art, and any image that is not a technical diagram or schematic. For flowcharts, circuits, pathways, and technical diagrams, use the scientific-schematics skill instead.

726 Updated 1 weeks ago
LeonChaoX
AI & Automation Listed

flux-image

Generate and edit images with Flux (Black Forest Labs) via AceDataCloud API. Use when creating images from text prompts, editing existing images with text instructions, or when high-quality image generation is needed. Supports multiple Flux models including dev, pro, Flux 2 variants, and kontext for editing.

13 Updated today
AceDataCloud
Data & Documents Listed

image-generate

Generates an image from a text prompt via a pluggable provider backend, writing the image plus a `<image>.meta.json` sidecar to an operator-chosen path. Backends are swappable via `--provider`: cloudflare (Cloudflare Workers AI FLUX.1-schnell, real free tier, DEFAULT), pollinations (auth-free, but public-feed/undocumented-licence — the tool forces private=true and shows a disclaimer), gemini (gemini-2.5-flash-image, requires billing). Wraps the bundled, stdlib-only `scripts/image_generate.py`. Invoke when the user asks to "generate an image", "create a hero image or icon from a prompt", "render this prompt to a PNG", "turn a graphic-prompt-generator document into an image", or equivalent German-language requests. Don't use for image editing, in-painting, or multi-turn refinement; for batch pipelines; or to author the prompt itself (use graphic-prompt-generator). Supports resume is not applicable: a generation is a single terminal call.

0 Updated today
nolte