Documentation
Everything you need to know about using Fallback.pics in your projects
Quick Navigation
Getting Started
Fallback.pics is a lightning-fast placeholder image service that requires zero setup. Simply use our URLs directly in your HTML, and we'll generate images on-demand.
HTML
<img src="https://fallback.pics/api/v1/400x300" alt="Placeholder">
Result:
Basic Examples
Basic Rectangle
/600x400 Custom Colors
/400x300/3B82F6/FFFFFF Custom Text
/400x300?text=Product+Image Avatar
/avatar/100?text=JD Color Options
Pro Tip
Colors can be customized using path segments or query parameters. Hex codes should be provided without the # symbol.
Path-based Colors
/400x300/FF6B6B/FFFFFF Format: /width×height/bgColor/textColor
Query Parameter Colors
/400x300?bg=4ECDC4&textcolor=000000 Params: bg, bgcolor, textcolor, text_color
AI-Powered Generation
EXCLUSIVEe-commerce
Mood: energetic
/ai/400x300?context=e-commerce&mood=energetic tech
Mood: calm
/ai/400x300?context=tech&mood=calm healthcare
Mood: professional
/ai/400x300?context=healthcare&mood=professional fashion
Mood: vibrant
/ai/400x300?context=fashion&mood=vibrant finance
Mood: corporate
/ai/400x300?context=finance&mood=corporate food
Mood: warm
/ai/400x300?context=food&mood=warm Animated Placeholders
CSS ONLYskeleton
/animated/skeleton/300x200
pulse
/animated/pulse/300x200
wave
/animated/wave/300x200
shimmer
/animated/shimmer/300x200
gradient
/animated/gradient/300x200
dots
/animated/dots/300x200
Chart Mockups
DATA VIZbar Chart
/chart/bar/600x400
pie Chart
/chart/pie/600x400
line Chart
/chart/line/600x400
area Chart
/chart/area/600x400
donut Chart
/chart/donut/600x400
scatter Chart
/chart/scatter/600x400
API Reference
Base URL
https://fallback.pics/api/v1 Basic Image
GET /{width}x{height}[.{format}]
Parameters:
width- Image width (10-4000)height- Image height (10-4000)format- Optional: svg, png, jpg, webp
Query Parameters
text- Custom text to displaybg/bgcolor- Background color (hex)textcolor/text_color- Text color (hex)font- Font familysize- Font size
Special Routes
/avatar/{size} - Circular avatar/banner/{width}x{height} - Banner preset/skeleton/{width}x{height} - Skeleton loader/ai/{width}x{height} - AI-generated/animated/{type}/{width}x{height} - Animated/chart/{type}/{width}x{height} - Chart mockup