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

Cron Expression

Cron表达式生成、解释、常用示例、验证、下次执行时间、平台转换(Linux/AWS/GitHub Actions). Use when you need cron expression capabilities. Triggers on: cron expression.

Registry SourceRecently Updated
Coding

Coze Studio

An AI agent development platform with all-in-one visual tools, simplifying agent creation, debugging coze studio, typescript, agent, agent-platform, ai-plugi...

Registry SourceRecently Updated
Coding

Auto Document Generator

自动从代码生成技术文档,支持 Python/JavaScript/Bash,AI 增强文档质量

Registry SourceRecently Updated
Coding

Core

AdonisJS is a TypeScript-first web framework for building web apps and API servers. It comes with su core, typescript, core, framework, mvc-framework, nodejs...

Registry SourceRecently Updated