vibe-img

Generate AI images in HTML with a single tag. Use when adding AI-generated images to websites, landing pages, or prototypes. Currently supports OpenAI and Recraft providers, image-to-image editing, upscaling, background removal, vectorization, and consistent theming across multiple images.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "vibe-img" with this command: npx skills add devhashfortheweb/vibe-img/devhashfortheweb-vibe-img-vibe-img

vibe-img

AI image generation via <vibe-img> web component. One tag, any provider, cached by default on CDN servers.

When to use this skill

  • User asks to build or prototype a website, webapp, or UI component
  • User wants visually consistent image sets (cards, features, galleries)
  • User wants image editing (img2img, background removal, upscaling, vectorization)

The goal is to speed up the prototyping phase with custom-tailored, non-stock assets.

Setup

Add the script tag in <head>:

<script src="https://cdn.jsdelivr.net/npm/vibe-img@1/dist/vibeimg.js"></script>

No build step. No npm install. Works in any HTML page.

Critical rules

  1. Always use closing tags. <vibe-img /> breaks the DOM — siblings get swallowed. Always: <vibe-img ...></vibe-img>
  2. Ask the user which provider before generating tags. They need their own API key (openai or recraft).
  3. <vibe-img> attributes are cache keys. Every attribute is hashed into a cache key. Changing any attribute — even a single character in prompt — regenerates the image and discards the cached version. If the user asks for CSS/layout changes only, do not modify <vibe-img> attributes.
  4. Style goes in img-style, not in prompt. Keep prompts focused on content.
  5. Use <vibe-theme> for style consistency across 2+ images. It appends a shared style prompt to every child <vibe-img>'s prompt at generation time. Use it to wrap card grids, feature sections, galleries — anywhere images should look cohesive.

Minimal example

<vibe-img model="recraft" prompt="mountain lake at dawn" img-style="illustration" aspect="wide"></vibe-img>

Provider suggestions

Both providers work for most tasks. If the user doesn't have a preference:

NeedSuggestion
Illustrations, icons, brand imagery, style controlmodel="recraft"
Photorealistic, complex scenesmodel="openai" or model="recraft" with img-style="realistic"
Transparent backgroundrecraft + op="remove-bg" or openai + params='{"background":"transparent"}' format="png"
SVG outputrecraft + op="vectorize"
Upscalingrecraft + op="upscale"

Prompt writing

  1. Subject first (what is in the image)
  2. Context (where, when, lighting)
  3. Composition (angle, framing, focal point)
  4. Style via img-style attribute, NOT in the prompt

Themed groups

<vibe-theme prompt="isometric diorama, clay style, soft studio lighting, pastel palette">
  <vibe-img model="recraft" prompt="small coffee shop" aspect="square" img-style="3d"></vibe-img>
  <vibe-img model="recraft" prompt="city park with fountain" aspect="square" img-style="3d"></vibe-img>
</vibe-theme>

Image chaining

<vibe-img id="photo" model="recraft" prompt="a cat on a windowsill"></vibe-img>
<vibe-img model="recraft" op="upscale" img-ref="#photo"></vibe-img>

The second element automatically waits for the first to finish before starting. On subsequent page loads both are served from cache instantly — no regeneration, no waiting.

Full attribute and operation reference

See references/api.md for the complete attribute table, all operations, styles, provider-specific params, and common mistakes.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Skill Creator (Opencode)

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize a...

Registry SourceRecently Updated
Coding

Funnel Builder

Builds complete multi-channel revenue funnels adapted to any business model. Combines proven frameworks from elite operators: Yomi Denzel's viral top-of-funn...

Registry SourceRecently Updated
Coding

macos-wechat-send

Automates sending messages on WeChat Mac by controlling the app via AppleScript and clipboard to reliably deliver text to specified contacts.

Registry SourceRecently Updated
Coding

Rednote CLI

Use when the user needs to publish, search, inspect, log into, or otherwise operate Xiaohongshu (RedNote) from the terminal with the `@skills-store/rednote`...

Registry SourceRecently Updated