# Task: Rewrite Placeholder Images Guide
**Priority:** High
**Estimated time:** 1-2 hours
**Type:** Documentation rewrite
---
## Overview
Delete current `/docs/guides/placeholder-images/page.tsx` and create new guide with structure below.
**Tone:** Technical, professional, concise. No marketing fluff.
**Audience:** Developers who want practical examples they can copy-paste.
**Live examples:** Use `https://cdn.banatie.app/sys/demo/live/{scope}` for all images.
---
## SEO Metadata
Keep existing SEO config in `docs-seo.ts` for `guide-placeholder-images`:
```typescript
'guide-placeholder-images': {
path: '/docs/guides/placeholder-images/',
title: 'AI Placeholder Images Guide | Banatie',
description:
'Generate AI placeholder images for development. Replace gray boxes with contextual visuals. Sizes for avatars, thumbnails, heroes, and more.',
keywords: [
'placeholder images',
'ai placeholder generator',
'placeholder image api',
'image placeholder dark',
'profile placeholder image',
'placeholder image url',
'dummy image generator',
],
},
```
---
## Page Structure
```
tocItems = [
{ id: 'what-this-guide-covers', text: 'What This Guide Covers', level: 2 },
{ id: 'ai-generation-basics', text: 'AI Generation Basics', level: 2 },
{ id: 'quick-start', text: 'Quick Start', level: 2 },
{ id: 'organizing-placeholders', text: 'Organizing Placeholders', level: 2 },
{ id: 'prompt-tips', text: 'Prompt Tips', level: 2 },
{ id: 'avatar-placeholder', text: 'Avatar Placeholder', level: 2 },
{ id: 'product-image', text: 'Product Image', level: 2 },
{ id: 'hero-section', text: 'Hero Section', level: 2 },
{ id: 'og-image', text: 'OG Image', level: 2 },
{ id: 'features-block', text: 'Features Block', level: 2 },
{ id: 'file-based-workflow', text: 'File-based Workflow', level: 2 },
]
```
---
## Content
### Hero
**Title:** AI Placeholder Images
**Subtitle:** Generate contextual images for development. Copy-paste ready examples with Tailwind CSS.
---
### Section: What This Guide Covers
This guide shows how to generate placeholder images with Banatie:
- **Live URLs** — embed AI-generated images directly in HTML
- **Ready-to-use snippets** — copy into your project with Tailwind classes
- **File download** — save images locally via API
All examples use real Live URLs. Images you see on this page are generated by Banatie.
---
### Section: AI Generation Basics
Banatie generates images from text descriptions. Key concepts:
**Prompt → Image**
Describe what you need. The AI generates a matching image.
**Prompt Enhancement**
Short prompts are automatically expanded. "office" becomes a detailed description with lighting, composition, and style.
**Templates**
Control visual style with the `template` parameter:
- `photorealistic` — photo-like images
- `digital-art` — stylized illustrations
- `3d-render` — 3D graphics
**Caching**
Same prompt returns the same image. First request generates, subsequent requests serve from cache instantly.
---
### Section: Quick Start
Basic Live URL format:
```
https://cdn.banatie.app/{org}/{project}/live/{scope}?prompt={description}&aspectRatio={ratio}
```
Minimal example:
```html
```
Parameters:
| Parameter | Required | Description |
|-----------|----------|-------------|
| `prompt` | Yes | Image description (URL-encoded) |
| `aspectRatio` | No | Ratio like `1:1`, `16:9`, `4:3` (default: `16:9`) |
| `template` | No | Style template name |
For full parameter reference, see [Live URLs documentation](/docs/live-urls/).
---
### Section: Organizing Placeholders
Use scopes to group related images:
```
/live/avatars?prompt=... → team member photos
/live/products?prompt=... → product catalog
/live/blog?prompt=... → article images
/live/hero?prompt=... → hero sections
```
Scopes are created automatically on first use. Each scope maintains its own cache.
For scope configuration and limits, see [Live URLs → Scopes](/docs/live-urls/#scopes).
---
### Section: Prompt Tips
**Be specific**
```
❌ "office"
✅ "modern minimalist office with plants and natural light"
```
**Dark mode**
Include theme context in your prompt:
```
"abstract gradient background dark theme"
"product photo on dark surface moody lighting"
"avatar silhouette dark background"
```
**Consistent style**
Use the `template` parameter for visual consistency across multiple images:
```
?prompt=...&template=photorealistic
?prompt=...&template=digital-art
```
[TIP] All examples in this guide use prompt enhancement. Your short descriptions are automatically expanded into detailed prompts.
---
### Section: Avatar Placeholder
**Aspect ratio:** `1:1`
**Use case:** User profiles, team sections, testimonials.
#### Live Example
[LIVE_PREVIEW: testimonial-card]
Create a testimonial card component with:
- Dark card background (slate-800)
- Avatar image: 64x64px, rounded-full
- Quote text
- Author name and role
- Use this exact URL: `https://cdn.banatie.app/landing/demo/live/avatars?prompt=professional+studio+headshot+confident+woman+neutral+background&aspectRatio=1:1`
- Quote: "Banatie cut our design mockup time in half. No more hunting for stock photos."
- Author: "Sarah Chen"
- Role: "Product Designer at Acme"
[/LIVE_PREVIEW]
#### Code Snippet
```html
```
#### Team Grid Example
[LIVE_PREVIEW: team-grid]
Create a 3-column responsive grid with:
- 3 avatar cards side by side on desktop, stacked on mobile
- Each card: avatar (48x48, rounded-full), name, role
- Gap between cards
- Use these URLs:
1. `https://cdn.banatie.app/landing/demo/live/avatars?prompt=professional+headshot+young+man+friendly+smile&aspectRatio=1:1` — "Alex Rivera", "Engineering Lead"
2. `https://cdn.banatie.app/landing/demo/live/avatars?prompt=professional+headshot+woman+glasses+confident&aspectRatio=1:1` — "Maria Santos", "Design Director"
3. `https://cdn.banatie.app/landing/demo/live/avatars?prompt=professional+headshot+man+beard+casual&aspectRatio=1:1` — "James Wilson", "Product Manager"
[/LIVE_PREVIEW]
---
### Section: Product Image
**Aspect ratio:** `1:1` (square) or `4:5` (portrait)
**Use case:** E-commerce catalogs, product cards, listings.
#### Live Example
[LIVE_PREVIEW: product-card]
Create a product card with:
- White/light background card with subtle shadow
- Product image: square, rounded corners
- Product name
- Price
- "Add to Cart" button (small, secondary style)
- Use URL: `https://cdn.banatie.app/landing/demo/live/products?prompt=minimalist+wireless+headphones+white+background+product+photo&aspectRatio=1:1`
- Name: "Wireless Pro Headphones"
- Price: "$299"
[/LIVE_PREVIEW]
#### Code Snippet
```html
```
#### Product Grid Example
[LIVE_PREVIEW: product-grid]
Create a 2x2 product grid:
- 4 product cards
- Each: image (1:1), name, price
- Use these:
1. `?prompt=modern+smart+watch+product+photo` — "Smart Watch X1", "$199"
2. `?prompt=wireless+earbuds+case+product+photo` — "AirPods Pro", "$249"
3. `?prompt=portable+bluetooth+speaker+product+photo` — "Portable Speaker", "$79"
4. `?prompt=laptop+stand+aluminum+product+photo` — "Laptop Stand", "$129"
Base URL: `https://cdn.banatie.app/landing/demo/live/products` with `&aspectRatio=1:1`
[/LIVE_PREVIEW]
---
### Section: Hero Section
**Aspect ratio:** `16:9`
**Use case:** Landing page heroes, section backgrounds, feature highlights.
#### Live Example
[LIVE_PREVIEW: hero-section]
Create a full-width hero section:
- Full width, 400px height
- Background image with dark overlay (50% black)
- Centered white text: heading + subheading
- Rounded corners
- Use URL: `https://cdn.banatie.app/landing/demo/live/hero?prompt=aerial+view+modern+city+skyline+sunset+dramatic+lighting&aspectRatio=16:9`
- Heading: "Build the Future"
- Subheading: "Start your next project with AI-powered tools"
[/LIVE_PREVIEW]
#### Code Snippet
```html
Feature description goes here.