Placeholder Image API

Generate dynamic placeholder images via URL. Custom size, colors, text. No signup.

GET https://placeholder-api-liart.vercel.app/api/image

How It Works

Step 1
Build the URL
Set width, height, colors, and text in query params
Step 2
Embed Anywhere
Use the URL directly in <img> tags or CSS
Step 3
Instant Image
Get a dynamically generated placeholder on the fly

Playground

Click Generate to preview

API Documentation

Base URL
https://placeholder-api-liart.vercel.app
Authentication
X-API-Key: your_key (header) or ?key=your_key (query) Get your free key below
GET /api/image

Generate a dynamic placeholder image with custom dimensions, colors, and text.

Query Parameters

ParameterTypeRequiredDescription
w number no Width in pixels. Default: 400, max 2000
h number no Height in pixels. Default: 200, max 2000
bg string no Background hex color. Default: cccccc
color string no Text hex color. Default: 666666
text string no Display text. Default: WxH

Response

Content-Type
image/svg+xml
Body
SVG image data

Error Responses

// 401 โ€” Unauthorized
{ "error": "Invalid API key" }

// 429 โ€” Rate Limited
{ "error": "Daily limit reached. Upgrade your plan." }

Get API Key

Get a free API key for 6 requests/day. No credit card required.

Usage

  • Add header: X-API-Key: your_key
  • Or query param: ?key=your_key

Limits

  • Playground (no key): 3 req/day
  • Free tier (with key): 6 req/day
  • Paid plans: coming soon

Pricing

Start free. Pay only when you need more.

Free
$0
  • 6 requests/day
  • Max 800px
  • SVG format
Starter
๐Ÿš€ Launch Price
$12$5/mo
  • 500 requests/day
  • Max 2000px
  • SVG + PNG formats
Business
๐Ÿš€ Launch Price
$79$39/mo
  • 20,000 requests/day
  • All formats
  • Priority support
Pay as You Go

No monthly commitment. Pay only for what you use. All features included.